[Pdns-users] compile error at solarisx86

bert hubert ahu at ds9a.nl
Thu Feb 3 18:03:32 UTC 2005


> I use the following parameter to compile at solarisx86:

Version 8 probably? Solaris has the bad habbit of #defining PC as a number..

Can you apply this patch: 
http://wiki.powerdns.com/projects/trac/changeset/285?format=diff

Or simply add '#undef PC' above cacheHas() in ueberbackend.cc.

Thanks!

> 
> 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?
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services


More information about the Pdns-users mailing list