[Pdns-users] Compile fails on Solaris

Alan Griffiths ap_griffiths at hotmail.com
Wed Sep 28 11:04:53 UTC 2005


Hi,

I'm trying to build the latest release on Solaris. This is listed as 2.9.18 
on the web site, but the tar bundle is actually called 2.9.17. Anyway it's 
failing with the following errors: -

source='receiver.cc' object='receiver.o' libtool=no \
depfile='.deps/receiver.Po' tmpdepfile='.deps/receiver.TPo' \
depmode=gcc3 /bin/bash ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I..  -Ibackends/bind   
-DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" 
-DLOCALSTATEDIR=\"/var/run\" -Ibackends/bind  -D_REENTRANT 
-I/export/home/alang/src/boost_1_33_0 -Wall -O2 -c -o receiver.o `test -f 
'receiver.cc' || echo './'`receiver.cc
receiver.cc: In function `void writePid()':
receiver.cc:130: error: ambiguous overload for 'operator<<' in 
'(+(+theL(((const std::string&)(&string(((const char*)""), ((const 
std::allocator<char>&)((const 
std::allocator<char>*)(&allocator<char>()))))))))->Logger::operator<<( 
Error))->Logger::operator<<(((const std::string&)(&string(((const 
char*)"Requested to write pid for "), ((const std::allocator<char>&)((const 
std::allocator<char>*)(&allocator<char>()))))))) << getpid()'
logger.hh:111: note: candidates are: Logger& Logger::operator<<(const 
std::string&) <near match>
logger.hh:112: note:                 Logger& Logger::operator<<(int)
logger.hh:113: note:                 Logger& Logger::operator<<(unsigned 
int)
logger.hh:114: note:                 Logger& 
Logger::operator<<(Logger::Urgency) <near match>
gmake[3]: *** [receiver.o] Error 1
gmake[3]: Leaving directory `/export/home/alang/src/pdns-2.9.17/pdns'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/export/home/alang/src/pdns-2.9.17/pdns'

My configure line is CXXFLAGS=-I/export/home/alang/src/boot_1_33_0 
./configure --with-modules=""

I'm using Solaris 9: Generic_118558-11, with gcc 3.4.2. I have also tried 
Solaris 8: Generic_117350-13 and gcc 3.3.2, both with same results. As per 
the FAQ I am using gmake.

Has anyone else successfully built on Solaris? If so would you be interested 
in sharing your setup?

Thanks,

Alan Griffiths




More information about the Pdns-users mailing list