[Pdns-users] Compiling troubles on Solaris8
Prueckler Alexander
alexander.prueckler at telekom.at
Mon Jan 31 14:35:16 UTC 2005
Hi all!
Again i have troubles to install PDNS on Solaris8 (Sun V120) with
gcc-3.2.3 and the latest Patch update. To install it on a RH8 Server was
no problem, but our company-guidline tells us to have it on Solaris.
Now my problem is:
Compilation with the following parameters works fine:
LIBS=-lz CXXFLAGS="-DSOLARIS " ./configure --with-dyn-modules="gmysql
pipe pdns db" --with-mysql=/usr/local/mysql \
--with-mysql-includes=/usr/local/mysql/include --enable-verbose-logging
--enable-recursor
I also tried compilation without LIBS and CXXFLAGS variables but i
always had the same output when i started make and came to the
'ippreftree' section:
reating libgmysqlbackend.la
(cd .libs && rm -f libgmysqlbackend.la && ln -s ../libgmysqlbackend.la
libgmysqlbackend.la)
make[3]: Leaving directory
`/opt/orig/pdns/pdns-2.9.17/modules/gmysqlbackend'
Making all in geobackend
make[3]: Entering directory
`/opt/orig/pdns/pdns-2.9.17/modules/geobackend'
source='geobackend.cc' object='geobackend.lo' libtool=yes \
depfile='.deps/geobackend.Plo' tmpdepfile='.deps/geobackend.TPlo' \
depmode=gcc3 /bin/bash ../../depcomp \
/bin/bash ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../.. -D_REENTRANT -DSOLARIS -Wall -O2 -c -o geobackend.lo `test
-f 'geobackend.cc' || echo './'`geobackend.cc
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -DSOLARIS -Wall -O2 -c
geobackend.cc -MT geobackend.lo -MD -MP -MF .deps/geobackend.TPlo -fPIC
-DPIC -o .libs/geobackend.o
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -DSOLARIS -Wall -O2 -c
geobackend.cc -MT geobackend.lo -MD -MP -MF .deps/geobackend.TPlo -o
geobackend.o >/dev/null 2>&1
source='ippreftree.cc' object='ippreftree.lo' libtool=yes \
depfile='.deps/ippreftree.Plo' tmpdepfile='.deps/ippreftree.TPlo' \
depmode=gcc3 /bin/bash ../../depcomp \
/bin/bash ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../.. -D_REENTRANT -DSOLARIS -Wall -O2 -c -o ippreftree.lo `test
-f 'ippreftree.cc' || echo './'`ippreftree.cc
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -DSOLARIS -Wall -O2 -c
ippreftree.cc -MT ippreftree.lo -MD -MP -MF .deps/ippreftree.TPlo -fPIC
-DPIC -o .libs/ippreftree.o
In file included from ippreftree.cc:10:
ippreftree.hh:27: syntax error before `,' token
ippreftree.hh:30: syntax error before `,' token
ippreftree.hh:41: syntax error before `,' token
ippreftree.hh:43: syntax error before `,' token
ippreftree.hh:46: ISO C++ forbids declaration of `u_int32_t' with no
type
ippreftree.hh:46: `u_int32_t' declared as an `inline' field
ippreftree.hh:46: syntax error before `(' token
ippreftree.hh:47: type specifier omitted for parameter `u_int32_t'
ippreftree.hh:47: syntax error before `&' token
ippreftree.cc: In member function `void IPPrefTree::add(const
std::string&,
short int)':
ippreftree.cc:22: `u_int32_t' undeclared (first use this function)
ippreftree.cc:22: (Each undeclared identifier is reported only once for
each
function it appears in.)
ippreftree.cc:22: syntax error before `;' token
ippreftree.cc:24: `ip' undeclared (first use this function)
ippreftree.cc: At global scope:
ippreftree.cc:29: syntax error before `,' token
ippreftree.cc: In member function `void IPPrefTree::add(...)':
ippreftree.cc:30: `preflen' undeclared (first use this function)
ippreftree.cc:30: `preflenToNetmask' undeclared (first use this
function)
ippreftree.cc:30: `value' undeclared (first use this function)
ippreftree.cc: In member function `short int IPPrefTree::lookup(const
std::string&) const':
ippreftree.cc:34: syntax error before `;' token
ippreftree.cc: At global scope:
ippreftree.cc:41: syntax error before `,' token
ippreftree.cc:63: syntax error before `::' token
ippreftree.cc:67: type specifier omitted for parameter `u_int32_t'
ippreftree.cc:67: syntax error before `&' token
ippreftree.cc: In member function `void IPPrefTree::parsePrefix(...)
const':
ippreftree.cc:69: `prefix' undeclared (first use this function)
ippreftree.cc: At global scope:
ippreftree.cc:88: syntax error before `,' token
ippreftree.cc: In member function `void IPPrefTree::addNode(...)':
ippreftree.cc:89: `mask' undeclared (first use this function)
ippreftree.cc:91: `node' undeclared (first use this function)
ippreftree.cc: At global scope:
ippreftree.cc:117: syntax error before `,' token
make[3]: *** [ippreftree.lo] Error 1
make[3]: Leaving directory
`/opt/orig/pdns/pdns-2.9.17/modules/geobackend'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/orig/pdns/pdns-2.9.17/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/orig/pdns/pdns-2.9.17'
make: *** [all] Error 2
Thank's for your help!!!
Best regards
Alexander Prueckler
Telekom Austria AG
SNO/IPS
IP Service Engineering
1103 Vienna
More information about the Pdns-users
mailing list