[systemd-devel] systemd m4 library complex systemd example, and coccinelle conversion

Luis R. Rodriguez mcgrof at do-not-panic.com
Wed Jun 25 10:00:06 PDT 2014


On Wed, Jun 25, 2014 at 9:45 AM, Cristian Rodríguez
<crrodriguez at opensuse.org> wrote:
> El 12/06/14 21:04, Luis R. Rodriguez escribió:
>
>>     - If you want to use the dynamic link loader you should use
>>       AX_AVAILABLE_SYSTEMD() but must then ensure to use -rdynamic -ldl
>>       when linking, if using automake autotools will deal with this for you,
>>       otherwise you must ensure this is in place on your Makefile.
>
> I urge you not to do that, this is unsuitable for distributions in a
> number of ways.
>
> - RPM does not handle this kind of dependencies.
>
> - Applications must only dlopen stuff they have control of, like..the X
> server loading its drivers, PHP loading its modules, apache loading
> mod_ssl.. etc.. dlopening system libraries like libsystemd-whatever is a
> no-no.. applications that do this constantly break, are a pain in the
> ass to maintain. I have been fighting with this madness for years.

Thanks for the details! When I looked into this I didn't find any of
the issues you have laid out, any chance you have pointers to a full
fledged rant and technical details? I'd like to include it on my code
and documentation :)

  Luis


More information about the systemd-devel mailing list