[quagga-dev 10290] Re: [PATCH] build: reference libcap from libzebra (BZ#393, 626)

Greg Troxel gdt at ir.bbn.com
Fri Mar 1 12:05:12 GMT 2013

David Lamparter <equinox at opensourcerouting.org> writes:

> While the actual build failures have been fixed independently by
> d1d3ac9 "build: reorder libraries to address linker error", libzebra
> still does not reference libcap.  This will lead to more build failures
> if someone else tries to use libzebra and doesn't add libcap.
> Let's just add libcap here and be done with it.
> I've not added libcap to the _DEPENDENCIES variable above since libcap
> is a system library.  Actually, the whole _DEPENDENCIES thing is rather
> fishy; automake automatically sets _DEPENDENCIES from _LIBADD.  For the
> sake of not breaking stuff that works (especially since most autotools
> stuff is arcane magic), I'm leaving it alone...

I misread as libpcap and was boggled at first :-)

Presumably this affects Linux only, as libcap is not POSIX.  But I agree
that if libzebra references libcap, it needs to have it in LIBADD.
One could be able to link a null program (bare main(){}) with -lzebra
and not have issues.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20130301/878ea682/attachment-0001.sig>

More information about the Quagga-dev mailing list