Red Hat Bugzilla – Bug 467795
isc-config.sh returns "-lcap" instead of "-lpcap"
Last modified: 2013-04-30 19:41:18 EDT
Description of problem:
While trying to compile a program (dnsperf) against some bind libraries, which uses isc-config.sh, this call results in the wrong list of libraries required.
Instead of -lcap which does not exist on Fedora, it should return -lpcap instead.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.isc-config.sh --libs dns bind9
-L/usr/lib -lbind9 -ldns -L/usr/lib -lgssapi_krb5 -lcrypto -lisccfg -lisc -lcap -lnsl -lpthread
-L/usr/lib -lbind9 -ldns -L/usr/lib -lgssapi_krb5 -lcrypto -lisccfg -lisc -lpcap -lnsl -lpthread
libcap and libpcap are two different libraries. libpcap is used for network monitoring and libcap is used as POSIX capabilities API:
$ rpm -qa |grep 'lib.*cap'
you have to install libcap-devel package.