Error while building BIND 9.11 on linux host

blrmaani blrmaani at gmail.com
Mon Nov 21 01:18:51 UTC 2016


Good to know Mark. I retried again using openssl 1.0.2j as below (as a root user):

./config
make
make install

and then tried building BIND 9.11 P1 as below:
./configure --with-openssl=/usr/local/ssl
make

I see these errors now after several minutes ...
------

gcc -shared -o sample.so db.o driver.o instance.o lock.o log.o syncptr.o zone.o \
                ../../../../../lib/dns/libdns.a ../../../../../lib/isc/libisc.a  -lgssapi_krb5 -L/usr/local/ssl/lib -lcrypto -ldl ../../../../../lib/dns/libdns.a ../../../../../lib/isc/libisc.a -ldl -lz -lrt -lpthread 
/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(cryptlib.o): relocation R_X86_64_32 against `OPENSSL_ia32cap_P' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libcrypto.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[5]: *** [sample.so] Error 1
make[5]: Leaving directory `/root/BIND911ETC/bind-9.11.0-P1/bin/tests/system/dyndb/driver'
make[4]: *** [subdirs] Error 1
make[4]: Leaving directory `/root/BIND911ETC/bind-9.11.0-P1/bin/tests/system/dyndb'
make[3]: *** [subdirs] Error 1
make[3]: Leaving directory `/root/BIND911ETC/bind-9.11.0-P1/bin/tests/system'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/root/BIND911ETC/bind-9.11.0-P1/bin/tests'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/root/BIND911ETC/bind-9.11.0-P1/bin'
make: *** [subdirs] Error 1


-----------

Investigating....




On Sunday, November 20, 2016 at 4:40:47 PM UTC-8, Mark Andrews wrote:
> What version of OpenSSL are you trying to compile against?  OpenSSL
> broken backwards API compatibility with OpenSSL 1.1.0.  This has
> forced every application that uses OpenSSL to update their code to
> cope and OpenSSL took a long time to provide a fully working API.
> 
> We tried building with the early releases and the necessary code
> just wasn't yet written.  Named uses the low level APIs.
> 
> The next maintainence release of BIND has support for OpenSSL 1.1.0
> but you loose support for GOST.
> 
> Mark
> 
> In message <800c7d82-63b4-4aec-9f12-5e259f48c6f6 at googlegroups.com>, blrmaani wr
> ites:
> > I am trying to build BIND 9.11 on RHEL linux host and see this error.
> > What am I missing?
> >
> > ./configure
> > make
> > ....
> > ....
> > make4: Leaving directory
> > `/root/BIND911ETC/bind-9.11.0-P1/lib/isc/x86_32/include'
> > make3: Leaving directory `/root/BIND911ETC/bind-9.11.0-P1/lib/isc/x86_32'
> > gcc  -I/root/BIND911ETC/bind-9.11.0-P1 -I../.. -I./unix/include
> > -I./pthreads/include -I./x86_32/include -I./include -I./include
> > -I/root/BIND911ETC/bind-9.11.0-P1/lib/dns/include -I../../lib/dns/include
> >  -D_REENTRANT -DOPENSSL -DPK11_LIB_LOCATION=\"undefined\" -D_GNU_SOURCE
> > -g -O2  -fPIC  -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings
> > -Wformat -Wpointer-arith -fno-strict-aliasing
> > -fno-delete-null-pointer-checks  -c aes.c
> > aes.c: In function isc_aes128_crypt:
> > aes.c:31: error: storage size of c isnt known
> > aes.c:31: warning: unused variable c
> >
> >
> > Thanks
> > Blr
> > _______________________________________________
> > Please visit https://lists.isc.org/mailman/listinfo/bind-users to
> > unsubscribe from this list
> >
> > bind-users mailing list
> > bind-users at lists.isc.org
> > https://lists.isc.org/mailman/listinfo/bind-users
> 
> -- 
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org



More information about the bind-users mailing list