[Pdns-users] Trouble compiling pdns 2.9.22 on Centos

Florian G. florian_2005 at yahoo.com
Sat Jun 18 13:33:00 UTC 2011


Hello,

Thank you for the help. I was able to install boost 1.39 from the atrpms repository just fine, but I still get the Missing boost error.

What I did notice is the configure output says it can't find g++, c++ and so on.
It also says it can't detect the presence of some files (I think they are located in /usr/include, just where the boost directory is, too):
   checking fcntl.h presence... no
   checking getopt.h presence... no
   checking limits.h presence... no
   checking sys/time.h presence... no
   checking syslog.h presence... no

[root@* pdns-2.9.22]# locate fcntl.h
/usr/include/fcntl.h
/usr/include/asm/fcntl.h
/usr/include/asm-generic/fcntl.h
/usr/include/asm-i386/fcntl.h
/usr/include/asm-x86_64/fcntl.h
/usr/include/bits/fcntl.h
/usr/include/linux/fcntl.h
/usr/include/sys/fcntl.h
/usr/lib/syslinux/com32/include/fcntl.h
/usr/share/man/man0p/fcntl.h.0p.gz

 
[root@* pdns-2.9.22]# find / -name 'shared_ptr.hpp'
/usr/include/boost/interprocess/smart_ptr/shared_ptr.hpp
/usr/include/boost/smart_ptr/shared_ptr.hpp
/usr/include/boost/shared_ptr.hpp
/usr/include/boost/serialization/shared_ptr.hpp

Maybe it's because I don't have g++, c++, gpp, and the rest installed?
Or maybe some permisions are preventing configure to access the /usr/include directory?
 
I did try putting SElinux into permissive and stopping Linux Environment Security, but still no luck.
 
I also added /usr/include to my PATH, but this didn't help either.
 
[root@* pdns-2.9.22]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/include:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

Please find below the complete output from ./configure
Any help will be greatly appreciated, this issue has been ruining my sleep at night...

[root@* pdns-2.9.22]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
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 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 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++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
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 whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
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... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
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 static flag -static 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
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... no
checking fcntl.h presence... no
checking for fcntl.h... no
checking getopt.h usability... no
checking getopt.h presence... no
checking for getopt.h... no
checking limits.h usability... no
checking limits.h presence... no
checking for limits.h... no
checking for strings.h... (cached) yes
checking sys/time.h usability... no
checking sys/time.h presence... no
checking for sys/time.h... no
checking syslog.h usability... no
checking syslog.h presence... no
checking for syslog.h... no
checking for unistd.h... (cached) yes
checking boost/shared_ptr.hpp usability... no
checking boost/shared_ptr.hpp presence... no
checking for boost/shared_ptr.hpp... no
Missing boost - please install Boost packages or see http://doc.powerdns.com/compiling-powerdns.html

Thank you.
 
Florian



More information about the Pdns-users mailing list