[Buildroot] [PATCH] syslog-ng: Link against librt

Chris Packham judge.packham at gmail.com
Mon Oct 26 06:53:44 UTC 2015


Hi Thomas,

On Mon, Oct 26, 2015 at 4:54 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Dear Chris Packham,
>
> On Mon, 26 Oct 2015 13:02:13 +1300, Chris Packham wrote:
>
>> +# rabbit-mq needs -lrt
>> +SYSLOG_NG_CONF_ENV = LIBS=-lrt
>
> While this works, I believe a better solution is to fix the
> configure.ac. It already checks if nanosleep is in librt, and if so,
> links against librt.
>
> It should the same for those functions, if the rabbitmq support is
> enabled.

Hmm. Syslog-ng distributes rabbitmq-c as a sub package. The looking at
included rabbitmq-c sources and the upstream package[1] it is checking
for clock_gettime which it thinks it should find in librt. But looking
at the config.log[2] for rabbitmq-c it has decided that no library is
required. Is there something unexpected about clock_gettime with
uclibc?

[1] - https://github.com/alanxz/rabbitmq-c/blob/master/configure.ac#L104
[2] - http://autobuild.buildroot.net/results/a3d/a3dfdebd76d47df11a8e26a215bb88fbce8dc6f7/syslog-ng-3.7.1/modules/afamqp/rabbitmq-c/config.log


>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com



More information about the buildroot mailing list