[OpenIndiana-discuss] Building ISC Bind 9.11.2 and 9.12.01b
russell
stream at willows7.myzen.co.uk
Fri Oct 20 20:04:51 UTC 2017
Hi,
Bind 9.11.2 and Bind 9.12.0b1 can both be successfully built using the
following command without the dynamically loaded drivers
CC=gcc CXX=g++ F77=gfortran FC=gfortran CFLAGS='-m64 -O3' CXXFLAGS=-m64
FFLAGS=-m64 FCFLAGS=-m64 LDFLAGS=-m64 PKG_CONFIG_PATH=/usr/lib/pkgconfig
./configure --prefix=/usr --mandir=/usr/share/man --bindir=/usr/sbin
--libdir=/usr/lib/dns --enable-static=no --with-libtool
--sbindir=/usr/sbin --sysconfdir=/etc --localstatedir=/var
--with-openssl --enable-threads=yes --enable-devpoll=yes
--disable-openssl-version-check --enable-fixed-rrset --with-pkcs11
--with-libxml2=/usr --enable-seccomp --enable-ipv6 --enable-querytrace
--with-geoip --with-dlopen=no
If I attempt to build with the dynamically loaded drivers ( removing the
--with-dlopen=no ) then build fails during the building of the dlz
library, the build reports the following errors
gmake[5]: Entering directory
'/tmp/bind-9.11.2/bin/tests/system/dyndb/driver'
/bin/sh /tmp/bind-9.11.2/libtool --mode=compile --tag=CC gcc
-I/tmp/bind-9.11.2 -I../../../../.. -I/tmp/bind-9.11.2/lib/dns/include
-I../../../../../lib/dns/include -I/tmp/bind-9.11.2/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 -DOPENSSL
-D_XPG4_2 -D__EXTENSIONS__ -m64 -O3 -I/usr/include
-I/usr/include/libxml2 -fPIC -fPIC -W -Wall -Wmissing-prototypes
-Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith
-fno-strict-aliasing -fno-delete-null-pointer-checks -c db.c
libtool: compile: gcc -I/tmp/bind-9.11.2 -I../../../../..
-I/tmp/bind-9.11.2/lib/dns/include -I../../../../../lib/dns/include
-I/tmp/bind-9.11.2/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 -DOPENSSL -D_XPG4_2
-D__EXTENSIONS__ -m64 -O3 -I/usr/include -I/usr/include/libxml2 -fPIC
-fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat
-Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks -c
db.c -fPIC -DPIC -o .libs/db.o
/bin/sh /tmp/bind-9.11.2/libtool --mode=compile --tag=CC gcc
-I/tmp/bind-9.11.2 -I../../../../.. -I/tmp/bind-9.11.2/lib/dns/include
-I../../../../../lib/dns/include -I/tmp/bind-9.11.2/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 -DOPENSSL
-D_XPG4_2 -D__EXTENSIONS__ -m64 -O3 -I/usr/include
-I/usr/include/libxml2 -fPIC -fPIC -W -Wall -Wmissing-prototypes
-Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith
-fno-strict-aliasing -fno-delete-null-pointer-checks -c driver.c
libtool: compile: gcc -I/tmp/bind-9.11.2 -I../../../../..
-I/tmp/bind-9.11.2/lib/dns/include -I../../../../../lib/dns/include
-I/tmp/bind-9.11.2/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 -DOPENSSL -D_XPG4_2
-D__EXTENSIONS__ -m64 -O3 -I/usr/include -I/usr/include/libxml2 -fPIC
-fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat
-Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks -c
driver.c -fPIC -DPIC -o .libs/driver.o
/bin/sh /tmp/bind-9.11.2/libtool --mode=compile --tag=CC gcc
-I/tmp/bind-9.11.2 -I../../../../.. -I/tmp/bind-9.11.2/lib/dns/include
-I../../../../../lib/dns/include -I/tmp/bind-9.11.2/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 -DOPENSSL
-D_XPG4_2 -D__EXTENSIONS__ -m64 -O3 -I/usr/include
-I/usr/include/libxml2 -fPIC -fPIC -W -Wall -Wmissing-prototypes
-Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith
-fno-strict-aliasing -fno-delete-null-pointer-checks -c instance.c
libtool: compile: gcc -I/tmp/bind-9.11.2 -I../../../../..
-I/tmp/bind-9.11.2/lib/dns/include -I../../../../../lib/dns/include
-I/tmp/bind-9.11.2/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 -DOPENSSL -D_XPG4_2
-D__EXTENSIONS__ -m64 -O3 -I/usr/include -I/usr/include/libxml2 -fPIC
-fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat
-Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks -c
instance.c -fPIC -DPIC -o .libs/instance.o
/bin/sh /tmp/bind-9.11.2/libtool --mode=compile --tag=CC gcc
-I/tmp/bind-9.11.2 -I../../../../.. -I/tmp/bind-9.11.2/lib/dns/include
-I../../../../../lib/dns/include -I/tmp/bind-9.11.2/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 -DOPENSSL
-D_XPG4_2 -D__EXTENSIONS__ -m64 -O3 -I/usr/include
-I/usr/include/libxml2 -fPIC -fPIC -W -Wall -Wmissing-prototypes
-Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith
-fno-strict-aliasing -fno-delete-null-pointer-checks -c lock.c
libtool: compile: gcc -I/tmp/bind-9.11.2 -I../../../../..
-I/tmp/bind-9.11.2/lib/dns/include -I../../../../../lib/dns/include
-I/tmp/bind-9.11.2/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 -DOPENSSL -D_XPG4_2
-D__EXTENSIONS__ -m64 -O3 -I/usr/include -I/usr/include/libxml2 -fPIC
-fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat
-Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks -c
lock.c -fPIC -DPIC -o .libs/lock.o
/bin/sh /tmp/bind-9.11.2/libtool --mode=compile --tag=CC gcc
-I/tmp/bind-9.11.2 -I../../../../.. -I/tmp/bind-9.11.2/lib/dns/include
-I../../../../../lib/dns/include -I/tmp/bind-9.11.2/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 -DOPENSSL
-D_XPG4_2 -D__EXTENSIONS__ -m64 -O3 -I/usr/include
-I/usr/include/libxml2 -fPIC -fPIC -W -Wall -Wmissing-prototypes
-Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith
-fno-strict-aliasing -fno-delete-null-pointer-checks -c log.c
libtool: compile: gcc -I/tmp/bind-9.11.2 -I../../../../..
-I/tmp/bind-9.11.2/lib/dns/include -I../../../../../lib/dns/include
-I/tmp/bind-9.11.2/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 -DOPENSSL -D_XPG4_2
-D__EXTENSIONS__ -m64 -O3 -I/usr/include -I/usr/include/libxml2 -fPIC
-fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat
-Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks -c
log.c -fPIC -DPIC -o .libs/log.o
/bin/sh /tmp/bind-9.11.2/libtool --mode=compile --tag=CC gcc
-I/tmp/bind-9.11.2 -I../../../../.. -I/tmp/bind-9.11.2/lib/dns/include
-I../../../../../lib/dns/include -I/tmp/bind-9.11.2/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 -DOPENSSL
-D_XPG4_2 -D__EXTENSIONS__ -m64 -O3 -I/usr/include
-I/usr/include/libxml2 -fPIC -fPIC -W -Wall -Wmissing-prototypes
-Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith
-fno-strict-aliasing -fno-delete-null-pointer-checks -c syncptr.c
libtool: compile: gcc -I/tmp/bind-9.11.2 -I../../../../..
-I/tmp/bind-9.11.2/lib/dns/include -I../../../../../lib/dns/include
-I/tmp/bind-9.11.2/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 -DOPENSSL -D_XPG4_2
-D__EXTENSIONS__ -m64 -O3 -I/usr/include -I/usr/include/libxml2 -fPIC
-fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat
-Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks -c
syncptr.c -fPIC -DPIC -o .libs/syncptr.o
/bin/sh /tmp/bind-9.11.2/libtool --mode=compile --tag=CC gcc
-I/tmp/bind-9.11.2 -I../../../../.. -I/tmp/bind-9.11.2/lib/dns/include
-I../../../../../lib/dns/include -I/tmp/bind-9.11.2/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 -DOPENSSL
-D_XPG4_2 -D__EXTENSIONS__ -m64 -O3 -I/usr/include
-I/usr/include/libxml2 -fPIC -fPIC -W -Wall -Wmissing-prototypes
-Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith
-fno-strict-aliasing -fno-delete-null-pointer-checks -c zone.c
libtool: compile: gcc -I/tmp/bind-9.11.2 -I../../../../..
-I/tmp/bind-9.11.2/lib/dns/include -I../../../../../lib/dns/include
-I/tmp/bind-9.11.2/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 -DOPENSSL -D_XPG4_2
-D__EXTENSIONS__ -m64 -O3 -I/usr/include -I/usr/include/libxml2 -fPIC
-fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat
-Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks -c
zone.c -fPIC -DPIC -o .libs/zone.o
CLEANED=`echo "../../../../../lib/dns/libdns.la
../../../../../lib/isc/libisc.la -lgss -lkrb5 -lcrypto
../../../../../lib/dns/libdns.la ../../../../../lib/isc/libisc.la -ldl
-lnsl -lsocket -lscf -ljson-c -lpthread -lm -lGeoIP -L/usr/lib
-Wl,-rpath=/usr/lib -lthread -L/usr/lib -R/usr/lib -lxml2 -lz -llzma
-lpthread -lm -lsocket -lnsl" | cat`; \
/bin/sh /tmp/bind-9.11.2/libtool --mode=link --tag=CC ld -m64 -G -z text
-o sample.so db.lo driver.lo instance.lo lock.lo log.lo syncptr.lo zone.lo \
${CLEANED}
libtool: link: ld -m64 -G -z text -o .libs/sample.so .libs/db.o
.libs/driver.o .libs/instance.o .libs/lock.o .libs/log.o .libs/syncptr.o
.libs/zone.o -Wl,-rpath=/usr/lib -L/usr/lib
../../../../../lib/dns/.libs/libdns.so
/tmp/bind-9.11.2/lib/isc/.libs/libisc.so -lgss -lkrb5
../../../../../lib/isc/.libs/libisc.so -lcrypto -ldl -lscf -ljson-c
-lGeoIP -lthread -lxml2 -lz -llzma -lpthread -lm -lsocket -lnsl
-R/usr/lib/dns -R/usr/lib
ld: fatal: -z[text|textwarn|textoff] option is incompatible with
building a static object (-dn, -r, --relocatable)
ld: fatal: shared object option (-G, -shared) is incompatible with
building a static object (-dn, -r, --relocatable)
ld: fatal: flags processing errors
Can anyone assist in getting the build to complete with the dynamic
libraries, even though I am disabling the static libraries they appear
to be built.
Thanks
Russell
More information about the openindiana-discuss
mailing list