[Pdns-users] Problem compiling PDNS 3.0 on RHEL 6.1

ktm at rice.edu ktm at rice.edu
Mon Oct 17 21:00:14 UTC 2011


Hi PDNS user community.

I am having a problem compiling PDNS 3.0 on RHEL 6. It cannot locate
some system libraries and I was wondering about the best way to correct
the problem. It looks like libssl.so.1.0.0 is located in /usr/lib64:

$ ls -l /usr/lib64/libssl.*
lrwxrwxrwx. 1 root root     15 Jun 16 03:48 /usr/lib64/libssl.so.10 -> libssl.so.1.0.0
-rwxr-xr-x. 1 root root 373008 Jun  8 10:43 /usr/lib64/libssl.so.1.0.0

And here is the configure and make log:

pdns-3.0]$ ./configure --with-modules="gpgsql" --with-pgsql=/usr/pgsql-9.1 --with-pgsql-includes=/usr/pgsql-9.1/include --with-gnu-ld
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 dependency style of gcc... gcc3
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 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... yes
checking whether byte ordering is bigendian... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) 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
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 -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) 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 for Boost headers version >= 103400... yes
checking for Boost's header version... 1_41
checking boost/foreach.hpp usability... yes
checking boost/foreach.hpp presence... yes
checking for boost/foreach.hpp... yes
checking for the toolset name used by Boost for g++... gcc44 -gcc
checking boost/program_options.hpp usability... yes
checking boost/program_options.hpp presence... yes
checking for boost/program_options.hpp... yes
checking for the Boost program_options library... yes
checking boost/archive/text_oarchive.hpp usability... yes
checking boost/archive/text_oarchive.hpp presence... yes
checking for boost/archive/text_oarchive.hpp... yes
checking for the Boost serialization library... yes
checking if with lua... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LUA... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for strings.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for gethostname... yes
checking for gettimeofday... yes
checking for mkdir... yes
checking for mktime... yes
checking for select... yes
checking for socket... yes
checking for strerror... yes
checking for dlopen in -ldl... yes
checking for RTLD_NOW... no
checking whether we will be doing verbose logging... no
checking whether we will be linking in Botan 1.9... no
checking whether we will be linking in Botan 1.8... no
checking whether we will be linking in Crypto++... no
checking whether we should build static binaries... 
checking whether we will be building the server... yes
checking whether we will be building the recursor... no
checking for PgSQL library directory... /usr/pgsql-9.1/lib
checking for PgSQL include directory... /usr/pgsql-9.1/include
configure: creating ./config.status
config.status: creating Makefile
config.status: creating modules/Makefile
config.status: creating pdns/Makefile
config.status: creating codedocs/Makefile
config.status: creating pdns/backends/Makefile
config.status: creating pdns/backends/bind/Makefile
config.status: creating pdns/pdns
config.status: creating pdns/precursor
config.status: creating modules/mysqlbackend/Makefile
config.status: creating modules/pdnsbackend/Makefile
config.status: creating modules/gmysqlbackend/Makefile
config.status: creating modules/db2backend/Makefile
config.status: creating modules/geobackend/Makefile
config.status: creating modules/opendbxbackend/Makefile
config.status: creating modules/pipebackend/Makefile
config.status: creating modules/oraclebackend/Makefile
config.status: creating modules/xdbbackend/Makefile
config.status: creating modules/godbcbackend/Makefile
config.status: creating modules/odbcbackend/Makefile
config.status: creating modules/mongodbbackend/Makefile
config.status: creating modules/gpgsqlbackend/Makefile
config.status: creating modules/ldapbackend/Makefile
config.status: creating modules/gsqlitebackend/Makefile
config.status: creating modules/gsqlite3backend/Makefile
config.status: creating modules/goraclebackend/Makefile
config.status: creating modules/mydnsbackend/Makefile
config.status: creating modules/luabackend/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
[ktm at staff-mud-56-27 pdns-3.0]$ make
make  all-recursive
make[1]: Entering directory `/home/ktm/pdns-3.0'
Making all in modules
make[2]: Entering directory `/home/ktm/pdns-3.0/modules'
Making all in gpgsqlbackend
make[3]: Entering directory `/home/ktm/pdns-3.0/modules/gpgsqlbackend'
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/pgsql-9.1/include -pthread   -D_GNU_SOURCE  -Wall -O2 -MT gpgsqlbackend.lo -MD -MP -MF .deps/gpgsqlbackend.Tpo -c -o gpgsqlbackend.lo gpgsqlbackend.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/pgsql-9.1/include -pthread -D_GNU_SOURCE -Wall -O2 -MT gpgsqlbackend.lo -MD -MP -MF .deps/gpgsqlbackend.Tpo -c gpgsqlbackend.cc  -fPIC -DPIC -o .libs/gpgsqlbackend.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/pgsql-9.1/include -pthread -D_GNU_SOURCE -Wall -O2 -MT gpgsqlbackend.lo -MD -MP -MF .deps/gpgsqlbackend.Tpo -c gpgsqlbackend.cc -o gpgsqlbackend.o >/dev/null 2>&1
mv -f .deps/gpgsqlbackend.Tpo .deps/gpgsqlbackend.Plo
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/pgsql-9.1/include -pthread   -D_GNU_SOURCE  -Wall -O2 -MT spgsql.lo -MD -MP -MF .deps/spgsql.Tpo -c -o spgsql.lo spgsql.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/pgsql-9.1/include -pthread -D_GNU_SOURCE -Wall -O2 -MT spgsql.lo -MD -MP -MF .deps/spgsql.Tpo -c spgsql.cc  -fPIC -DPIC -o .libs/spgsql.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/pgsql-9.1/include -pthread -D_GNU_SOURCE -Wall -O2 -MT spgsql.lo -MD -MP -MF .deps/spgsql.Tpo -c spgsql.cc -o spgsql.o >/dev/null 2>&1
mv -f .deps/spgsql.Tpo .deps/spgsql.Plo
/bin/sh ../../libtool --tag=CXX   --mode=link g++  -D_GNU_SOURCE  -Wall -O2 -module -avoid-version -L/usr/pgsql-9.1/lib -Wl,-rpath,/usr/pgsql-9.1/lib -Wl,-Bstatic -lpq -Wl,-Bdynamic  -L/usr/pgsql-9.1/lib -Wl,-rpath,/usr/pgsql-9.1/lib  -o libgpgsqlbackend.la -rpath /usr/local/lib gpgsqlbackend.lo spgsql.lo -lssl -lcrypt -lcrypto -lz
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/x86_64-redhat-linux/4.4.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.4.5/crtbeginS.o  .libs/gpgsqlbackend.o .libs/spgsql.o   -L/usr/pgsql-9.1/lib -lpq -lssl -lcrypt -lcrypto -lz -L/usr/lib/gcc/x86_64-redhat-linux/4.4.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.5/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.4.5/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/4.4.5/../../../../lib64/crtn.o  -Wl,-rpath -Wl,/usr/pgsql-9.1/lib -Wl,-Bstatic -Wl,-Bdynamic -Wl,-rpath -Wl,/usr/pgsql-9.1/lib   -Wl,-soname -Wl,libgpgsqlbackend.so -o .libs/libgpgsqlbackend.so
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make[3]: *** [libgpgsqlbackend.la] Error 1
make[3]: Leaving directory `/home/ktm/pdns-3.0/modules/gpgsqlbackend'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ktm/pdns-3.0/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ktm/pdns-3.0'
make: *** [all] Error 2

Any ideas would be appreciated.

Regards,
Ken



More information about the Pdns-users mailing list