[libdispatch-dev] [PATCH] missing kqueue libs in testing/Makefile.am

Mario Schwalbe schwalbe at inf.tu-dresden.de
Tue Nov 17 04:55:53 PST 2009


Robert Watson schrieb:
> On Mon, 16 Nov 2009, Mario Schwalbe wrote:
>> added libkqueue library variable to testing/Makefile.am.
> In general, the testing tools don't directly depend on kqueue (with the
> exception of dispatch_cffd, which is not portable off of Mac OS X).
> Normally, libdispatch should depend on libkqueue, meaning that
> applications linked aginst libdispatch shouldn't need their own
> dependency declared unless they might use libkqueue but no libdispatch. 
> If you run ldd on libdispatch as built on your system, does it not list
> libkqueue as a dependency in the same way it lists libpthread, etc?

Indeed, it does:
# ldd libdispatch.so
linux-vdso.so.1 =>  (0x00007fff6fde6000)
libkqueue.so => not found
librt.so.1 => /lib/librt.so.1 (0x00007fb4d09bd000)
libc.so.6 => /lib/libc.so.6 (0x00007fb4d064d000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fb4d0431000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb4d0e05000)

But $(KQUEUE_LIBS) does not only contain -lkqueue but also -L<path_to_libkqueue>
which I need to link the application, since defaults of /lib,/usr/lib,... do not
suffice, because I installed to a non-standard prefix.


More information about the libdispatch-dev mailing list