9.9.4rc1 Linux compile error

Luther, Dan Dan.Luther at Level3.com
Wed Aug 21 18:00:33 UTC 2013


Having a very interesting error compiling BIND 9.9.4-rc1 on a Fedora Core 10 device:

bind-9.9.4rc1/lib/isc/include -I../../../lib/isc -I../../../lib/isc/include -I../../../lib/isc/unix/include -I../../../lib/isc/pthreads/include -I../../../lib/isc/x86_32/include  -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -march=native -O3  -I/usr/include/libxml2  -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing  -c os.c
os.c:166: error: expected ')' before 'caps'
os.c: In function 'linux_initialprivs':
os.c:242: error: 'cap_t' undeclared (first use in this function)
os.c:242: error: (Each undeclared identifier is reported only once
os.c:242: error: for each function it appears in.)
os.c:242: error: expected ';' before 'caps'
os.c:244: error: expected ';' before 'curcaps'
os.c:245: error: 'cap_value_t' undeclared (first use in this function)
os.c:245: error: expected ';' before 'capval'
os.c:255: error: 'caps' undeclared (first use in this function)
os.c:255: warning: implicit declaration of function 'cap_init'
os.c:255: error: 'curcaps' undeclared (first use in this function)
os.c:255: warning: implicit declaration of function 'cap_get_proc'
os.c:260: error: 'capval' undeclared (first use in this function)
os.c:260: error: 'cap_flag_value_t' undeclared (first use in this function)
os.c:260: error: expected ';' before 'curval'
os.c:260: warning: implicit declaration of function 'cap_get_flag'
os.c:260: error: 'CAP_PERMITTED' undeclared (first use in this function)
os.c:260: error: 'curval' undeclared (first use in this function)
os.c:260: warning: implicit declaration of function 'cap_set_flag'
os.c:260: error: 'CAP_EFFECTIVE' undeclared (first use in this function)
os.c:260: error: 'CAP_SET' undeclared (first use in this function)
os.c:265: error: expected ';' before 'curval'
os.c:274: error: expected ';' before 'curval'
os.c:280: error: expected ';' before 'curval'
os.c:286: error: expected ';' before 'curval'
os.c:295: error: expected ';' before 'curval'
os.c:301: error: expected ';' before 'curval'
os.c:303: warning: implicit declaration of function 'linux_setcaps'
os.c:306: warning: implicit declaration of function 'cap_free'
os.c: In function 'linux_minprivs':
os.c:312: error: 'cap_t' undeclared (first use in this function)
os.c:312: error: expected ';' before 'caps'
os.c:314: error: expected ';' before 'curcaps'
os.c:315: error: 'cap_value_t' undeclared (first use in this function)
os.c:315: error: expected ';' before 'capval'
os.c:320: error: 'caps' undeclared (first use in this function)
os.c:320: error: 'curcaps' undeclared (first use in this function)
os.c:329: error: 'capval' undeclared (first use in this function)
os.c:329: error: 'cap_flag_value_t' undeclared (first use in this function)
os.c:329: error: expected ';' before 'curval'
os.c:329: error: 'CAP_PERMITTED' undeclared (first use in this function)
os.c:329: error: 'curval' undeclared (first use in this function)
os.c:329: error: 'CAP_EFFECTIVE' undeclared (first use in this function)
os.c:329: error: 'CAP_SET' undeclared (first use in this function)
os.c:338: error: expected ';' before 'curval'
make[3]: *** [os.o] Error 1
make[3]: Leaving directory `/home/luther/bind-9.9.4rc1/bin/named/unix'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/home/luther/bind-9.9.4rc1/bin/named'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/luther/bind-9.9.4rc1/bin'
make: *** [subdirs] Error 1

Configure was:

env CFLAGS="-march=native -O3 $CFLAGS" ./configure --prefix=/usr/local/dns \
--sbindir=/usr/local/dns/bin --libexecdir=/usr/local/dns/bin \
--includedir=/usr/local/include --docdir=/usr/local/man --datarootdir=/usr/local \
--enable-largefile --enable-threads

Has anyone encountered this before?

Dan Luther
Level 3 Communications


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20130821/ab06a0a5/attachment.html>


More information about the bind-users mailing list