Hi!
Im running Directadmin 1.332000 on a CentOS release 5 (Final), with BIND 9.2.4
I was having some downs in my named service lately, so i want to upgrade BIND to the lastest stable version (9.6.0).
I've downloaded the "bind-9.6.0.tar.gz" and i've try to compile/install it, in the bind-9.6.0 directory:
--------------------------------------------------------------
# ./configure --prefix=/usr --sysconfdir=/etc --enable-threads --with-libtool --disable-ipv6 --with-openssl --localstatedir=/var
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ar... /usr/bin/ar
checking for etags... no
checking for emacs-etags... no
checking for perl5... no
checking for perl... /usr/bin/perl
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for sys/sockio.h... no
checking for sys/select.h... yes
checking for sys/param.h... yes
checking for sys/sysctl.h... yes
checking for net/if6.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working volatile... yes
checking for sysctlbyname... no
checking for static inline breakage... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... (cached) yes
checking for size_t... yes
checking for ssize_t... yes
checking for uintptr_t... yes
checking for socklen_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for long long... yes
checking for struct lifconf... no
checking for kqueue... no
checking epoll support... yes
checking sys/devpoll.h usability... no
checking sys/devpoll.h presence... no
checking for sys/devpoll.h... no
checking if unistd.h or sys/types.h defines fd_set... yes
checking whether byte ordering is bigendian... no
checking for OpenSSL library... using OpenSSL from /usr/lib and /usr/include
checking whether linking with OpenSSL works... yes
checking whether linking with OpenSSL requires -ldl... no
checking OpenSSL library version... ok
checking for OpenSSL DSA support... yes
checking for PKCS11 support... disabled
checking for GSSAPI library... disabled
checking for random device... /dev/random
checking for /dev/random... yes
checking for arc4random... no
checking whether to build with thread support... yes
checking for pthread_create in -lpthread... yes
checking for sigwait... yes
checking for pthread_attr_getstacksize... yes
checking for pthread_attr_setstacksize... yes
checking for sysconf... yes
checking for libxml2 library... yes
checking for smf_enable_instance in -lscf... no
checking for flockfile... yes
checking for getc_unlocked... yes
checking whether to build with threads... yes
checking if "gcc" supports -fno-strict-aliasing... yes
checking for catgets... yes
checking for socket in -lsocket... no
checking for inet_ntoa in -lnsl... yes
checking whether to use purify... no
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... /usr/bin/ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for IPv6 structures... yes
checking for Kame IPv6 support... no
checking for in6_addr... yes
checking for in6addr_any... yes
checking for in6addr_loopback... yes
checking for sin6_scope_id in struct sockaddr_in6... yes
checking for in6_pktinfo... yes
checking for struct if_laddrreq... no
checking for struct if_laddrconf... no
checking for inet_ntop with IPv6 support... yes
checking for working inet_pton with IPv6 support... yes
checking for inet_aton... yes
checking for sa_len in struct sockaddr... no
checking for struct msghdr flavor... 4.4BSD
checking for type in_port_t... yes
checking for struct addrinfo... yes
checking for struct rrsetinfo... no
checking for int sethostent... no
checking for int endhostent... no
checking for getnetbyaddr(in_addr_t, ...)... yes
checking for int setnetent... no
checking for int endnetent... no
checking for gethostbyaddr(const void *, size_t, ...)... no
checking for h_errno in netdb.h... yes
checking for getipnodebyname... no
checking for getnameinfo... yes
checking for getaddrinfo... yes
checking for gai_strerror... yes
checking for getifaddrs... yes
checking for interface list sysctl... no
checking for correctly declared strsep()... yes
checking for memmove... yes
checking for strtoul... yes
checking for strlcpy... no
checking for strlcat... no
checking sprintf... checking for vsnprintf... yes
checking for strerror... yes
checking printf format modifier for 64-bit integers... ll
checking for chroot... yes
checking linux/capability.h usability... yes
checking linux/capability.h presence... yes
checking for linux/capability.h... yes
checking sys/capability.h usability... no
checking sys/capability.h presence... no
checking for sys/capability.h... no
checking for cap_set_proc in -lcap... no
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for tzset... yes
checking for optarg decarartion... yes
checking for type rlim_t... yes
checking for strings.h... (cached) yes
checking for if_nametoindex... yes
checking architecture type for atomic operations... x86_64
checking compiler support for inline assembly code... gcc
checking for latex... no
checking for pdflatex... no
checking for w3m... no
checking for xsltproc... /usr/local/bin/xsltproc
checking for xmllint... /usr/local/bin/xmllint
checking for doxygen... doxygen
checking for Docbook-XSL path... auto
checking for html/docbook.xsl... "not found"
checking for xhtml/docbook.xsl... "not found"
checking for manpages/docbook.xsl... "not found"
checking for html/chunk.xsl... "not found"
checking for xhtml/chunk.xsl... "not found"
checking for html/chunktoc.xsl... "not found"
checking for xhtml/chunktoc.xsl... "not found"
checking for html/maketoc.xsl... "not found"
checking for xhtml/maketoc.xsl... "not found"
checking for db2latex/xsl/docbook.xsl... "not found"
checking for db2latex/xsl/figures... not found
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for setlocale... yes
checking for Postgres DLZ driver... no
checking for MySQL DLZ driver... no
checking for Berkeley DB DLZ driver... no
checking for file system DLZ driver... no
checking for LDAP DLZ driver... no
checking for ODBC DLZ driver... no
checking for stub DLZ driver... no
checking for DLZ... no
configure: creating ./config.status
config.status: creating make/rules
config.status: creating make/includes
config.status: creating Makefile
config.status: creating make/Makefile
config.status: creating make/mkdep
config.status: creating lib/Makefile
config.status: creating lib/isc/Makefile
config.status: creating lib/isc/include/Makefile
config.status: creating lib/isc/include/isc/Makefile
config.status: creating lib/isc/include/isc/platform.h
config.status: creating lib/isc/unix/Makefile
config.status: creating lib/isc/unix/include/Makefile
config.status: creating lib/isc/unix/include/isc/Makefile
config.status: creating lib/isc/nls/Makefile
config.status: creating lib/isc/pthreads/Makefile
config.status: creating lib/isc/pthreads/include/Makefile
config.status: creating lib/isc/pthreads/include/isc/Makefile
config.status: creating lib/isc/x86_32/Makefile
config.status: creating lib/isc/x86_32/include/Makefile
config.status: creating lib/isc/x86_32/include/isc/Makefile
config.status: creating lib/isccc/Makefile
config.status: creating lib/isccc/include/Makefile
config.status: creating lib/isccc/include/isccc/Makefile
config.status: creating lib/isccfg/Makefile
config.status: creating lib/isccfg/include/Makefile
config.status: creating lib/isccfg/include/isccfg/Makefile
config.status: creating lib/dns/Makefile
config.status: creating lib/dns/include/Makefile
config.status: creating lib/dns/include/dns/Makefile
config.status: creating lib/dns/include/dst/Makefile
config.status: creating lib/bind9/Makefile
config.status: creating lib/bind9/include/Makefile
config.status: creating lib/bind9/include/bind9/Makefile
config.status: creating lib/lwres/Makefile
config.status: creating lib/lwres/include/Makefile
config.status: creating lib/lwres/include/lwres/Makefile
config.status: creating lib/lwres/include/lwres/netdb.h
config.status: creating lib/lwres/include/lwres/platform.h
config.status: creating lib/lwres/man/Makefile
config.status: creating lib/lwres/unix/Makefile
config.status: creating lib/lwres/unix/include/Makefile
config.status: creating lib/lwres/unix/include/lwres/Makefile
config.status: creating lib/tests/Makefile
config.status: creating lib/tests/include/Makefile
config.status: creating lib/tests/include/tests/Makefile
config.status: creating bin/Makefile
config.status: creating bin/check/Makefile
config.status: creating bin/named/Makefile
config.status: creating bin/named/unix/Makefile
config.status: creating bin/rndc/Makefile
config.status: creating bin/rndc/unix/Makefile
config.status: creating bin/dig/Makefile
config.status: creating bin/nsupdate/Makefile
config.status: creating bin/tests/Makefile
config.status: creating bin/tests/names/Makefile
config.status: creating bin/tests/master/Makefile
config.status: creating bin/tests/rbt/Makefile
config.status: creating bin/tests/db/Makefile
config.status: creating bin/tests/tasks/Makefile
config.status: creating bin/tests/timers/Makefile
config.status: creating bin/tests/dst/Makefile
config.status: creating bin/tests/mem/Makefile
config.status: creating bin/tests/net/Makefile
config.status: creating bin/tests/sockaddr/Makefile
config.status: creating bin/tests/system/Makefile
config.status: creating bin/tests/system/conf.sh
config.status: creating bin/tests/system/lwresd/Makefile
config.status: creating bin/tests/system/tkey/Makefile
config.status: creating bin/tests/headerdep_test.sh
config.status: creating bin/dnssec/Makefile
config.status: creating doc/Makefile
config.status: creating doc/arm/Makefile
config.status: creating doc/misc/Makefile
config.status: creating isc-config.sh
config.status: creating doc/xsl/Makefile
config.status: creating doc/xsl/isc-docbook-chunk.xsl
config.status: creating doc/xsl/isc-docbook-html.xsl
config.status: creating doc/xsl/isc-docbook-latex.xsl
config.status: creating doc/xsl/isc-manpage.xsl
config.status: creating doc/doxygen/Doxyfile
config.status: creating doc/doxygen/Makefile
config.status: creating doc/doxygen/doxygen-input-filter
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing chmod commands
# make
making all in /usr/local/src/bind-9.6.0/make
make[1]: Entering directory `/usr/local/src/bind-9.6.0/make'
make[1]: Leaving directory `/usr/local/src/bind-9.6.0/make'
making all in /usr/local/src/bind-9.6.0/lib
make[1]: Entering directory `/usr/local/src/bind-9.6.0/lib'
making all in /usr/local/src/bind-9.6.0/lib/isc
make[2]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc'
making all in /usr/local/src/bind-9.6.0/lib/isc/include
make[3]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/include'
making all in /usr/local/src/bind-9.6.0/lib/isc/include/isc
make[4]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/include/isc'
make[4]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/include/isc'
make[3]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/include'
making all in /usr/local/src/bind-9.6.0/lib/isc/unix
make[3]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/unix'
making all in /usr/local/src/bind-9.6.0/lib/isc/unix/include
make[4]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/unix/include'
making all in /usr/local/src/bind-9.6.0/lib/isc/unix/include/isc
make[5]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/unix/include/isc'
make[5]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/unix/include/isc'
make[4]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/unix/include'
make[3]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/unix'
making all in /usr/local/src/bind-9.6.0/lib/isc/nls
make[3]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/nls'
make[3]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/nls'
making all in /usr/local/src/bind-9.6.0/lib/isc/pthreads
make[3]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/pthreads'
making all in /usr/local/src/bind-9.6.0/lib/isc/pthreads/include
make[4]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/pthreads/include'
making all in /usr/local/src/bind-9.6.0/lib/isc/pthreads/include/isc
make[5]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/pthreads/include/isc'
make[5]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/pthreads/include/isc'
make[4]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/pthreads/include'
make[3]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/pthreads'
making all in /usr/local/src/bind-9.6.0/lib/isc/x86_32
make[3]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/x86_32'
making all in /usr/local/src/bind-9.6.0/lib/isc/x86_32/include
make[4]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/x86_32/include'
making all in /usr/local/src/bind-9.6.0/lib/isc/x86_32/include/isc
make[5]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/x86_32/include/isc'
make[5]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/x86_32/include/isc'
make[4]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/x86_32/include'
make[3]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/x86_32'
make[2]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc'
making all in /usr/local/src/bind-9.6.0/lib/isccc
make[2]: Entering directory `/usr/local/src/bind-9.6.0/lib/isccc'
making all in /usr/local/src/bind-9.6.0/lib/isccc/include
make[3]: Entering directory `/usr/local/src/bind-9.6.0/lib/isccc/include'
making all in /usr/local/src/bind-9.6.0/lib/isccc/include/isccc
make[4]: Entering directory `/usr/local/src/bind-9.6.0/lib/isccc/include/isccc'
make[4]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isccc/include/isccc'
make[3]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isccc/include'
make[2]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isccc'
making all in /usr/local/src/bind-9.6.0/lib/dns
make[2]: Entering directory `/usr/local/src/bind-9.6.0/lib/dns'
making all in /usr/local/src/bind-9.6.0/lib/dns/include
make[3]: Entering directory `/usr/local/src/bind-9.6.0/lib/dns/include'
making all in /usr/local/src/bind-9.6.0/lib/dns/include/dns
make[4]: Entering directory `/usr/local/src/bind-9.6.0/lib/dns/include/dns'
make[4]: Leaving directory `/usr/local/src/bind-9.6.0/lib/dns/include/dns'
making all in /usr/local/src/bind-9.6.0/lib/dns/include/dst
make[4]: Entering directory `/usr/local/src/bind-9.6.0/lib/dns/include/dst'
make[4]: Leaving directory `/usr/local/src/bind-9.6.0/lib/dns/include/dst'
make[3]: Leaving directory `/usr/local/src/bind-9.6.0/lib/dns/include'
/bin/sh /usr/local/src/bind-9.6.0/libtool --mode=link \
gcc -I/usr/local/src/bind-9.6.0 -I. -Iinclude -I/usr/local/src/bind-9.6.0/lib/dns/include -I../../lib/dns/include -I/usr/local/src/bind-9.6.0/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 -DUSE_MD5 -DOPENSSL -D_GNU_SOURCE -g -O2 -I/usr/local/include/libxml2 -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -o libdns.la -rpath /usr/lib \
-version-info 50:2:0 \
acache.lo acl.lo adb.lo byaddr.lo cache.lo callbacks.lo compress.lo db.lo dbiterator.lo dbtable.lo diff.lo dispatch.lo dlz.lo dnssec.lo ds.lo forward.lo iptable.lo journal.lo keytable.lo lib.lo log.lo lookup.lo master.lo masterdump.lo message.lo name.lo ncache.lo nsec.lo nsec3.lo order.lo peer.lo portlist.lo rbt.lo rbtdb.lo rbtdb64.lo rcode.lo rdata.lo rdatalist.lo rdataset.lo rdatasetiter.lo rdataslab.lo request.lo resolver.lo result.lo rootns.lo sdb.lo sdlz.lo soa.lo ssu.lo stats.lo tcpmsg.lo time.lo timer.lo tkey.lo tsig.lo ttl.lo validator.lo version.lo view.lo xfrin.lo zone.lo zonekey.lo zt.lo dst_api.lo dst_lib.lo dst_parse.lo dst_result.lo gssapi_link.lo gssapictx.lo hmac_link.lo key.lo openssl_link.lo openssldh_link.lo openssldsa_link.lo opensslrsa_link.lo ../../lib/isc/libisc.la -lcrypto -lnsl -lpthread -L/usr/local/lib -lxml2 -lz -lm
gcc -shared .libs/acache.o .libs/acl.o .libs/adb.o .libs/byaddr.o .libs/cache.o .libs/callbacks.o .libs/compress.o .libs/db.o .libs/dbiterator.o .libs/dbtable.o .libs/diff.o .libs/dispatch.o .libs/dlz.o .libs/dnssec.o .libs/ds.o .libs/forward.o .libs/iptable.o .libs/journal.o .libs/keytable.o .libs/lib.o .libs/log.o .libs/lookup.o .libs/master.o .libs/masterdump.o .libs/message.o .libs/name.o .libs/ncache.o .libs/nsec.o .libs/nsec3.o .libs/order.o .libs/peer.o .libs/portlist.o .libs/rbt.o .libs/rbtdb.o .libs/rbtdb64.o .libs/rcode.o .libs/rdata.o .libs/rdatalist.o .libs/rdataset.o .libs/rdatasetiter.o .libs/rdataslab.o .libs/request.o .libs/resolver.o .libs/result.o .libs/rootns.o .libs/sdb.o .libs/sdlz.o .libs/soa.o .libs/ssu.o .libs/stats.o .libs/tcpmsg.o .libs/time.o .libs/timer.o .libs/tkey.o .libs/tsig.o .libs/ttl.o .libs/validator.o .libs/version.o .libs/view.o .libs/xfrin.o .libs/zone.o .libs/zonekey.o .libs/zt.o .libs/dst_api.o .libs/dst_lib.o .libs/dst_parse.o .libs/dst_result.o .libs/gssapi_link.o .libs/gssapictx.o .libs/hmac_link.o .libs/key.o .libs/openssl_link.o .libs/openssldh_link.o .libs/openssldsa_link.o .libs/opensslrsa_link.o -Wl,--rpath -Wl,/usr/local/src/bind-9.6.0/lib/isc/.libs -L/usr/local/lib ../../lib/isc/.libs/libisc.so -lcrypto -lnsl -lpthread /usr/local/lib/libxml2.so -lz -lm -Wl,-soname -Wl,libdns.so.50 -o .libs/libdns.so.50.0.2
/usr/bin/ld: /usr/local/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/lib/libcrypto.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libdns.la] Error 1
make[2]: Leaving directory `/usr/local/src/bind-9.6.0/lib/dns'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/local/src/bind-9.6.0/lib'
make: *** [subdirs] Error 1
As you can see, when i run "make" command, i get the error:
"/usr/bin/ld: /usr/local/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"
How can i recompile the libcrypto.a library with -fPIC?
Can somone help me?
Bye!
PD: Sorry for my poor English, im from Argentina.
Im running Directadmin 1.332000 on a CentOS release 5 (Final), with BIND 9.2.4
I was having some downs in my named service lately, so i want to upgrade BIND to the lastest stable version (9.6.0).
I've downloaded the "bind-9.6.0.tar.gz" and i've try to compile/install it, in the bind-9.6.0 directory:
--------------------------------------------------------------
# ./configure --prefix=/usr --sysconfdir=/etc --enable-threads --with-libtool --disable-ipv6 --with-openssl --localstatedir=/var
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ar... /usr/bin/ar
checking for etags... no
checking for emacs-etags... no
checking for perl5... no
checking for perl... /usr/bin/perl
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for sys/sockio.h... no
checking for sys/select.h... yes
checking for sys/param.h... yes
checking for sys/sysctl.h... yes
checking for net/if6.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working volatile... yes
checking for sysctlbyname... no
checking for static inline breakage... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... (cached) yes
checking for size_t... yes
checking for ssize_t... yes
checking for uintptr_t... yes
checking for socklen_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for long long... yes
checking for struct lifconf... no
checking for kqueue... no
checking epoll support... yes
checking sys/devpoll.h usability... no
checking sys/devpoll.h presence... no
checking for sys/devpoll.h... no
checking if unistd.h or sys/types.h defines fd_set... yes
checking whether byte ordering is bigendian... no
checking for OpenSSL library... using OpenSSL from /usr/lib and /usr/include
checking whether linking with OpenSSL works... yes
checking whether linking with OpenSSL requires -ldl... no
checking OpenSSL library version... ok
checking for OpenSSL DSA support... yes
checking for PKCS11 support... disabled
checking for GSSAPI library... disabled
checking for random device... /dev/random
checking for /dev/random... yes
checking for arc4random... no
checking whether to build with thread support... yes
checking for pthread_create in -lpthread... yes
checking for sigwait... yes
checking for pthread_attr_getstacksize... yes
checking for pthread_attr_setstacksize... yes
checking for sysconf... yes
checking for libxml2 library... yes
checking for smf_enable_instance in -lscf... no
checking for flockfile... yes
checking for getc_unlocked... yes
checking whether to build with threads... yes
checking if "gcc" supports -fno-strict-aliasing... yes
checking for catgets... yes
checking for socket in -lsocket... no
checking for inet_ntoa in -lnsl... yes
checking whether to use purify... no
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... /usr/bin/ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for IPv6 structures... yes
checking for Kame IPv6 support... no
checking for in6_addr... yes
checking for in6addr_any... yes
checking for in6addr_loopback... yes
checking for sin6_scope_id in struct sockaddr_in6... yes
checking for in6_pktinfo... yes
checking for struct if_laddrreq... no
checking for struct if_laddrconf... no
checking for inet_ntop with IPv6 support... yes
checking for working inet_pton with IPv6 support... yes
checking for inet_aton... yes
checking for sa_len in struct sockaddr... no
checking for struct msghdr flavor... 4.4BSD
checking for type in_port_t... yes
checking for struct addrinfo... yes
checking for struct rrsetinfo... no
checking for int sethostent... no
checking for int endhostent... no
checking for getnetbyaddr(in_addr_t, ...)... yes
checking for int setnetent... no
checking for int endnetent... no
checking for gethostbyaddr(const void *, size_t, ...)... no
checking for h_errno in netdb.h... yes
checking for getipnodebyname... no
checking for getnameinfo... yes
checking for getaddrinfo... yes
checking for gai_strerror... yes
checking for getifaddrs... yes
checking for interface list sysctl... no
checking for correctly declared strsep()... yes
checking for memmove... yes
checking for strtoul... yes
checking for strlcpy... no
checking for strlcat... no
checking sprintf... checking for vsnprintf... yes
checking for strerror... yes
checking printf format modifier for 64-bit integers... ll
checking for chroot... yes
checking linux/capability.h usability... yes
checking linux/capability.h presence... yes
checking for linux/capability.h... yes
checking sys/capability.h usability... no
checking sys/capability.h presence... no
checking for sys/capability.h... no
checking for cap_set_proc in -lcap... no
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for tzset... yes
checking for optarg decarartion... yes
checking for type rlim_t... yes
checking for strings.h... (cached) yes
checking for if_nametoindex... yes
checking architecture type for atomic operations... x86_64
checking compiler support for inline assembly code... gcc
checking for latex... no
checking for pdflatex... no
checking for w3m... no
checking for xsltproc... /usr/local/bin/xsltproc
checking for xmllint... /usr/local/bin/xmllint
checking for doxygen... doxygen
checking for Docbook-XSL path... auto
checking for html/docbook.xsl... "not found"
checking for xhtml/docbook.xsl... "not found"
checking for manpages/docbook.xsl... "not found"
checking for html/chunk.xsl... "not found"
checking for xhtml/chunk.xsl... "not found"
checking for html/chunktoc.xsl... "not found"
checking for xhtml/chunktoc.xsl... "not found"
checking for html/maketoc.xsl... "not found"
checking for xhtml/maketoc.xsl... "not found"
checking for db2latex/xsl/docbook.xsl... "not found"
checking for db2latex/xsl/figures... not found
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for setlocale... yes
checking for Postgres DLZ driver... no
checking for MySQL DLZ driver... no
checking for Berkeley DB DLZ driver... no
checking for file system DLZ driver... no
checking for LDAP DLZ driver... no
checking for ODBC DLZ driver... no
checking for stub DLZ driver... no
checking for DLZ... no
configure: creating ./config.status
config.status: creating make/rules
config.status: creating make/includes
config.status: creating Makefile
config.status: creating make/Makefile
config.status: creating make/mkdep
config.status: creating lib/Makefile
config.status: creating lib/isc/Makefile
config.status: creating lib/isc/include/Makefile
config.status: creating lib/isc/include/isc/Makefile
config.status: creating lib/isc/include/isc/platform.h
config.status: creating lib/isc/unix/Makefile
config.status: creating lib/isc/unix/include/Makefile
config.status: creating lib/isc/unix/include/isc/Makefile
config.status: creating lib/isc/nls/Makefile
config.status: creating lib/isc/pthreads/Makefile
config.status: creating lib/isc/pthreads/include/Makefile
config.status: creating lib/isc/pthreads/include/isc/Makefile
config.status: creating lib/isc/x86_32/Makefile
config.status: creating lib/isc/x86_32/include/Makefile
config.status: creating lib/isc/x86_32/include/isc/Makefile
config.status: creating lib/isccc/Makefile
config.status: creating lib/isccc/include/Makefile
config.status: creating lib/isccc/include/isccc/Makefile
config.status: creating lib/isccfg/Makefile
config.status: creating lib/isccfg/include/Makefile
config.status: creating lib/isccfg/include/isccfg/Makefile
config.status: creating lib/dns/Makefile
config.status: creating lib/dns/include/Makefile
config.status: creating lib/dns/include/dns/Makefile
config.status: creating lib/dns/include/dst/Makefile
config.status: creating lib/bind9/Makefile
config.status: creating lib/bind9/include/Makefile
config.status: creating lib/bind9/include/bind9/Makefile
config.status: creating lib/lwres/Makefile
config.status: creating lib/lwres/include/Makefile
config.status: creating lib/lwres/include/lwres/Makefile
config.status: creating lib/lwres/include/lwres/netdb.h
config.status: creating lib/lwres/include/lwres/platform.h
config.status: creating lib/lwres/man/Makefile
config.status: creating lib/lwres/unix/Makefile
config.status: creating lib/lwres/unix/include/Makefile
config.status: creating lib/lwres/unix/include/lwres/Makefile
config.status: creating lib/tests/Makefile
config.status: creating lib/tests/include/Makefile
config.status: creating lib/tests/include/tests/Makefile
config.status: creating bin/Makefile
config.status: creating bin/check/Makefile
config.status: creating bin/named/Makefile
config.status: creating bin/named/unix/Makefile
config.status: creating bin/rndc/Makefile
config.status: creating bin/rndc/unix/Makefile
config.status: creating bin/dig/Makefile
config.status: creating bin/nsupdate/Makefile
config.status: creating bin/tests/Makefile
config.status: creating bin/tests/names/Makefile
config.status: creating bin/tests/master/Makefile
config.status: creating bin/tests/rbt/Makefile
config.status: creating bin/tests/db/Makefile
config.status: creating bin/tests/tasks/Makefile
config.status: creating bin/tests/timers/Makefile
config.status: creating bin/tests/dst/Makefile
config.status: creating bin/tests/mem/Makefile
config.status: creating bin/tests/net/Makefile
config.status: creating bin/tests/sockaddr/Makefile
config.status: creating bin/tests/system/Makefile
config.status: creating bin/tests/system/conf.sh
config.status: creating bin/tests/system/lwresd/Makefile
config.status: creating bin/tests/system/tkey/Makefile
config.status: creating bin/tests/headerdep_test.sh
config.status: creating bin/dnssec/Makefile
config.status: creating doc/Makefile
config.status: creating doc/arm/Makefile
config.status: creating doc/misc/Makefile
config.status: creating isc-config.sh
config.status: creating doc/xsl/Makefile
config.status: creating doc/xsl/isc-docbook-chunk.xsl
config.status: creating doc/xsl/isc-docbook-html.xsl
config.status: creating doc/xsl/isc-docbook-latex.xsl
config.status: creating doc/xsl/isc-manpage.xsl
config.status: creating doc/doxygen/Doxyfile
config.status: creating doc/doxygen/Makefile
config.status: creating doc/doxygen/doxygen-input-filter
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing chmod commands
# make
making all in /usr/local/src/bind-9.6.0/make
make[1]: Entering directory `/usr/local/src/bind-9.6.0/make'
make[1]: Leaving directory `/usr/local/src/bind-9.6.0/make'
making all in /usr/local/src/bind-9.6.0/lib
make[1]: Entering directory `/usr/local/src/bind-9.6.0/lib'
making all in /usr/local/src/bind-9.6.0/lib/isc
make[2]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc'
making all in /usr/local/src/bind-9.6.0/lib/isc/include
make[3]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/include'
making all in /usr/local/src/bind-9.6.0/lib/isc/include/isc
make[4]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/include/isc'
make[4]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/include/isc'
make[3]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/include'
making all in /usr/local/src/bind-9.6.0/lib/isc/unix
make[3]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/unix'
making all in /usr/local/src/bind-9.6.0/lib/isc/unix/include
make[4]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/unix/include'
making all in /usr/local/src/bind-9.6.0/lib/isc/unix/include/isc
make[5]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/unix/include/isc'
make[5]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/unix/include/isc'
make[4]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/unix/include'
make[3]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/unix'
making all in /usr/local/src/bind-9.6.0/lib/isc/nls
make[3]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/nls'
make[3]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/nls'
making all in /usr/local/src/bind-9.6.0/lib/isc/pthreads
make[3]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/pthreads'
making all in /usr/local/src/bind-9.6.0/lib/isc/pthreads/include
make[4]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/pthreads/include'
making all in /usr/local/src/bind-9.6.0/lib/isc/pthreads/include/isc
make[5]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/pthreads/include/isc'
make[5]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/pthreads/include/isc'
make[4]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/pthreads/include'
make[3]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/pthreads'
making all in /usr/local/src/bind-9.6.0/lib/isc/x86_32
make[3]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/x86_32'
making all in /usr/local/src/bind-9.6.0/lib/isc/x86_32/include
make[4]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/x86_32/include'
making all in /usr/local/src/bind-9.6.0/lib/isc/x86_32/include/isc
make[5]: Entering directory `/usr/local/src/bind-9.6.0/lib/isc/x86_32/include/isc'
make[5]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/x86_32/include/isc'
make[4]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/x86_32/include'
make[3]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc/x86_32'
make[2]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isc'
making all in /usr/local/src/bind-9.6.0/lib/isccc
make[2]: Entering directory `/usr/local/src/bind-9.6.0/lib/isccc'
making all in /usr/local/src/bind-9.6.0/lib/isccc/include
make[3]: Entering directory `/usr/local/src/bind-9.6.0/lib/isccc/include'
making all in /usr/local/src/bind-9.6.0/lib/isccc/include/isccc
make[4]: Entering directory `/usr/local/src/bind-9.6.0/lib/isccc/include/isccc'
make[4]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isccc/include/isccc'
make[3]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isccc/include'
make[2]: Leaving directory `/usr/local/src/bind-9.6.0/lib/isccc'
making all in /usr/local/src/bind-9.6.0/lib/dns
make[2]: Entering directory `/usr/local/src/bind-9.6.0/lib/dns'
making all in /usr/local/src/bind-9.6.0/lib/dns/include
make[3]: Entering directory `/usr/local/src/bind-9.6.0/lib/dns/include'
making all in /usr/local/src/bind-9.6.0/lib/dns/include/dns
make[4]: Entering directory `/usr/local/src/bind-9.6.0/lib/dns/include/dns'
make[4]: Leaving directory `/usr/local/src/bind-9.6.0/lib/dns/include/dns'
making all in /usr/local/src/bind-9.6.0/lib/dns/include/dst
make[4]: Entering directory `/usr/local/src/bind-9.6.0/lib/dns/include/dst'
make[4]: Leaving directory `/usr/local/src/bind-9.6.0/lib/dns/include/dst'
make[3]: Leaving directory `/usr/local/src/bind-9.6.0/lib/dns/include'
/bin/sh /usr/local/src/bind-9.6.0/libtool --mode=link \
gcc -I/usr/local/src/bind-9.6.0 -I. -Iinclude -I/usr/local/src/bind-9.6.0/lib/dns/include -I../../lib/dns/include -I/usr/local/src/bind-9.6.0/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 -DUSE_MD5 -DOPENSSL -D_GNU_SOURCE -g -O2 -I/usr/local/include/libxml2 -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -o libdns.la -rpath /usr/lib \
-version-info 50:2:0 \
acache.lo acl.lo adb.lo byaddr.lo cache.lo callbacks.lo compress.lo db.lo dbiterator.lo dbtable.lo diff.lo dispatch.lo dlz.lo dnssec.lo ds.lo forward.lo iptable.lo journal.lo keytable.lo lib.lo log.lo lookup.lo master.lo masterdump.lo message.lo name.lo ncache.lo nsec.lo nsec3.lo order.lo peer.lo portlist.lo rbt.lo rbtdb.lo rbtdb64.lo rcode.lo rdata.lo rdatalist.lo rdataset.lo rdatasetiter.lo rdataslab.lo request.lo resolver.lo result.lo rootns.lo sdb.lo sdlz.lo soa.lo ssu.lo stats.lo tcpmsg.lo time.lo timer.lo tkey.lo tsig.lo ttl.lo validator.lo version.lo view.lo xfrin.lo zone.lo zonekey.lo zt.lo dst_api.lo dst_lib.lo dst_parse.lo dst_result.lo gssapi_link.lo gssapictx.lo hmac_link.lo key.lo openssl_link.lo openssldh_link.lo openssldsa_link.lo opensslrsa_link.lo ../../lib/isc/libisc.la -lcrypto -lnsl -lpthread -L/usr/local/lib -lxml2 -lz -lm
gcc -shared .libs/acache.o .libs/acl.o .libs/adb.o .libs/byaddr.o .libs/cache.o .libs/callbacks.o .libs/compress.o .libs/db.o .libs/dbiterator.o .libs/dbtable.o .libs/diff.o .libs/dispatch.o .libs/dlz.o .libs/dnssec.o .libs/ds.o .libs/forward.o .libs/iptable.o .libs/journal.o .libs/keytable.o .libs/lib.o .libs/log.o .libs/lookup.o .libs/master.o .libs/masterdump.o .libs/message.o .libs/name.o .libs/ncache.o .libs/nsec.o .libs/nsec3.o .libs/order.o .libs/peer.o .libs/portlist.o .libs/rbt.o .libs/rbtdb.o .libs/rbtdb64.o .libs/rcode.o .libs/rdata.o .libs/rdatalist.o .libs/rdataset.o .libs/rdatasetiter.o .libs/rdataslab.o .libs/request.o .libs/resolver.o .libs/result.o .libs/rootns.o .libs/sdb.o .libs/sdlz.o .libs/soa.o .libs/ssu.o .libs/stats.o .libs/tcpmsg.o .libs/time.o .libs/timer.o .libs/tkey.o .libs/tsig.o .libs/ttl.o .libs/validator.o .libs/version.o .libs/view.o .libs/xfrin.o .libs/zone.o .libs/zonekey.o .libs/zt.o .libs/dst_api.o .libs/dst_lib.o .libs/dst_parse.o .libs/dst_result.o .libs/gssapi_link.o .libs/gssapictx.o .libs/hmac_link.o .libs/key.o .libs/openssl_link.o .libs/openssldh_link.o .libs/openssldsa_link.o .libs/opensslrsa_link.o -Wl,--rpath -Wl,/usr/local/src/bind-9.6.0/lib/isc/.libs -L/usr/local/lib ../../lib/isc/.libs/libisc.so -lcrypto -lnsl -lpthread /usr/local/lib/libxml2.so -lz -lm -Wl,-soname -Wl,libdns.so.50 -o .libs/libdns.so.50.0.2
/usr/bin/ld: /usr/local/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/lib/libcrypto.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libdns.la] Error 1
make[2]: Leaving directory `/usr/local/src/bind-9.6.0/lib/dns'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/local/src/bind-9.6.0/lib'
make: *** [subdirs] Error 1
As you can see, when i run "make" command, i get the error:
"/usr/bin/ld: /usr/local/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"
How can i recompile the libcrypto.a library with -fPIC?
Can somone help me?
Bye!
PD: Sorry for my poor English, im from Argentina.