[Pdns-users] compile error at solarisx86

Eric Yiu eric.yiu at pacific.net.hk
Thu Dec 30 08:23:08 UTC 2004


Hi,

I use the following parameter to compile at solarisx86:

PATH=/usr/local/bin:/usr/ccs/bin:$PATH; export PATH
CPPFLAGS="-I/usr/local/include"; export CPPFLAGS
LDFLAGS="-L/usr/local/lib -R/usr/local/lib"; export LDFLAGS
./configure --with-modules="gmysql" --with-mysql=/usr/local/mysql 
--with-mysql-lib=/usr/local/mysql/lib 
--with-mysql-includes=/usr/local/mysql/include 
'CPPFLAGS=-Du_int16_t=uint16_t -Du_int32_t=uint32_t' 
'CXXFLAGS=-Du_int16_t=uint16_t -Du_int32_t=uint32_t'

This get me to error at the ueberbackend.cc:

make[3]: Entering directory `/usr/local/src/pdns-2.9.16/pdns'
source='ueberbackend.cc' object='ueberbackend.o' libtool=no \
depfile='.deps/ueberbackend.Po' tmpdepfile='.deps/ueberbackend.TPo' \
depmode=gcc3 /bin/bash ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I..  -Ibackends/bind  -Du_int16_t=uint16_t 
-Du_int32_t=uint32_t -DSYSCONFDIR=\"/usr/local/etc\" 
-DLIBDIR=\"/usr/local/lib\" -DLOCALSTATEDIR=\"/var/run\" 
-Ibackends/bind  -D_REENTRANT -Du_int16_t=uint16_t -Du_int32_t=uint32_t 
-Wall -O2 -c -o ueberbackend.o `test -f ueberbackend.cc || echo 
'./'`ueberbackend.cc
ueberbackend.cc: In member function `int UeberBackend::cacheHas(const
   UeberBackend::Question&, DNSResourceRecord&)':
ueberbackend.cc:238: error: parse error before numeric constant
ueberbackend.cc:251: error: request for member `getKey' in `14', which 
is of
   non-aggregate type `int'
ueberbackend.cc: In member function `void UeberBackend::addNegCache(const
   UeberBackend::Question&)':
ueberbackend.cc:267: error: parse error before numeric constant
ueberbackend.cc:272: error: request for member `insert' in `14', which 
is of
   non-aggregate type `int'
ueberbackend.cc: In member function `void UeberBackend::addOneCache(const
   UeberBackend::Question&, const DNSResourceRecord&)':
ueberbackend.cc:277: error: parse error before numeric constant
ueberbackend.cc:282: error: request for member `insert' in `14', which 
is of
   non-aggregate type `int'
make[3]: *** [ueberbackend.o] Error 1
make[3]: Leaving directory `/usr/local/src/pdns-2.9.16/pdns'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/pdns-2.9.16/pdns'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/pdns-2.9.16'
make: *** [all] Error 2


# /usr/local/bin/gcc -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/specs
Configured with: ../configure
Thread model: posix
gcc version 3.3.2

gmake and gld is also installed.


Any hint I can made to compile ok?


More information about the Pdns-users mailing list