[Pdns-users]

Ronald Stubbe rstubbe at sit.nl
Thu Feb 3 23:17:55 UTC 2005


While trying to compile under Solaris 9 (SPARC) the following error occures:

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 -Du_int16_t=uint16_t -Du_int32_t=uint32_t -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>
*** Error code 1

The Compiler is:
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/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.3

command line used:
LIBS=-lz CXXFLAGS="-DSOLARIS -Du_int16_t=uint16_t -Du_int32_t=uint32_t" 
CXXFLAGS="-Du_int16_t=uint16_t -Du_int32_t=uint32_t" ./configure
gmake

Note: No problems with version 2.9.16

Any sugestions?

Ronald Stubbe



More information about the Pdns-users mailing list