[Pdns-users] Unable to compile PDNS on Solaris 9

Ronald Stubbe rstubbe at sit.nl
Sat Nov 20 13:29:09 UTC 2004


I tryed to complie the package, using ./configure
and then make, and it fails with:

cd . \
   && CONFIG_FILES= CONFIG_HEADERS=config.h \
      /bin/bash ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
make  all-recursive
Making all in modules
Making all in gmysqlbackend
source='gmysqlbackend.cc' object='gmysqlbackend.lo' libtool=yes \
depfile='.deps/gmysqlbackend.Plo' tmpdepfile='.deps/gmysqlbackend.TPlo' \
depmode=gcc3 /bin/bash ../../depcomp \
/bin/bash ../../libtool --mode=compile g++ -DHAVE_CONFIG_H  -I. -I. -I../.. 
-I/usr/local/mysql/include/mysql     -D_REENTRANT -DSOLARIS -Wall -O2 -c -o 
gmysqlbackend.lo `test -f gmysqlbackend.cc || echo './'`gmysqlbackend.cc
mkdir .libs
  g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/mysql/include/mysql 
-D_REENTRANT -DSOLARIS -Wall -O2 -c gmysqlbackend.cc -MT gmysqlbackend.lo 
-MD -MP -MF .deps/gmysqlbackend.TPlo  -fPIC -DPIC -o .libs/gmysqlbackend.o
In file included from ../../pdns/dns.hh:24,
                  from gmysqlbackend.cc:7:
../../pdns/utility.hh:175: error: declaration of `typedef struct iovec 
Utility::iovec'
/usr/include/sys/uio.h:34: error: changes meaning of `iovec' from `struct 
iovec'
../../pdns/utility.hh:176: error: declaration of `typedef pid_t Utility::pid_t'
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.1/include/sys/types.h:469: 
error: changes meaning of `pid_t' from `typedef long int pid_t'
../../pdns/utility.hh:178: error: declaration of `typedef socklen_t 
Utility::socklen_t'
/usr/include/sys/socket.h:61: error: changes meaning of `socklen_t' from 
`typedef uint32_t socklen_t'
*** Error code 1
make: Fatal error: Command failed for target `gmysqlbackend.lo'
Current working directory /usr/local/options/pdns-2.9.16/modules/gmysqlbackend
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/options/pdns-2.9.16/modules
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/options/pdns-2.9.16
*** Error code 1
make: Fatal error: Command failed for target `all'

Whatever options I try, always the same result.

I am using  gcc 3.4.1

Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.1/specs
Configured with: ../configure --enable-shared --disable-nls 
--with-ld=/usr/ccs/bin/ld --with-as=/usr/ccs/bin/as
Thread model: posix
gcc version 3.4.1

Any idea what the problem is?

Ronald Stubbe



More information about the Pdns-users mailing list