From pvlaar at afilias.info Wed Mar 16 12:21:49 2016 From: pvlaar at afilias.info (Paul Vlaar) Date: Wed, 16 Mar 2016 13:21:49 +0100 Subject: [dnstap] trouble compiling BIND 9.9.8-S6 w/ dnstap Message-ID: <56E94FDD.4070000@afilias.info> Hi all, having some trouble trying to compile my first dnstap-enabled BIND. After a simple "./configure --enable-dnstap", and a "gmake": [...] gcc -pthread -I/tmp/bind-9.9.8-S6 -I. -Iinclude -I/tmp/bind-9.9.8-S6/lib/dns/include -I../../lib/dns/include -I/tmp/bind-9.9.8-S6/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 -I/usr/include -D_REENTRANT -DUSE_MD5 -DOPENSSL -DGSSAPI -DUSE_ISC_SPNEGO -D_THREAD_SAFE -g -O2 -I/usr/local/include/libxml2 -I/usr/local/include -I /usr/local/include -I/usr/local/include/google -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks -c dnstap.c dnstap.c:90: error: redefinition of typedef 'dns_dtmsg_t' include/dns/types.h:77: error: previous declaration of 'dns_dtmsg_t' was here Makefile:319: recipe for target 'dnstap.o' failed gmake[2]: *** [dnstap.o] Error 1 gmake[2]: Leaving directory '/tmp/bind-9.9.8-S6/lib/dns' Makefile:98: recipe for target 'subdirs' failed gmake[1]: *** [subdirs] Error 1 gmake[1]: Leaving directory '/tmp/bind-9.9.8-S6/lib' Makefile:102: recipe for target 'subdirs' failed gmake: *** [subdirs] Error 1 Any help greatly appreciated. Thanks, -- Paul Vlaar DNS Infrastructure Group Afilias e-mail: pvlaar at afilias.info From pvlaar at afilias.info Wed Mar 16 12:36:55 2016 From: pvlaar at afilias.info (Paul Vlaar) Date: Wed, 16 Mar 2016 13:36:55 +0100 Subject: [dnstap] trouble compiling BIND 9.9.8-S6 w/ dnstap In-Reply-To: <56E94FDD.4070000@afilias.info> References: <56E94FDD.4070000@afilias.info> Message-ID: <56E95367.5000509@afilias.info> Please disregard the previous message, I was on an ancient version of GCC (4.2.1 20070831 patched [FreeBSD]). Upgrading to 4.8.5 seems to have fixed the issue. ~paul From edmonds at mycre.ws Wed Mar 16 19:48:45 2016 From: edmonds at mycre.ws (Robert Edmonds) Date: Wed, 16 Mar 2016 15:48:45 -0400 Subject: [dnstap] trouble compiling BIND 9.9.8-S6 w/ dnstap In-Reply-To: <56E95367.5000509@afilias.info> References: <56E94FDD.4070000@afilias.info> <56E95367.5000509@afilias.info> Message-ID: <20160316194845.GA19965@mycre.ws> Paul Vlaar wrote: > Please disregard the previous message, I was on an ancient version of GCC > (4.2.1 20070831 patched [FreeBSD]). Upgrading to 4.8.5 seems to have fixed > the issue. Hi, Paul: You might try reporting the build failure to ISC anyway, I know they try to support old compilers. -- Robert Edmonds