[Pdns-users] compiling on x86_64

Vincent Danen vdanen at annvix.org
Thu Feb 10 17:03:13 UTC 2005


I'm trying to compile pdns 2.9.17 on an x86_64 linux system.  I had to  
monkey with some --with-mysql-lib and --with-mysql-includes (and the  
same for pgsql) to get it past the configure stage, which is fine, but  
now I'm stumped here:

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/mysql -D_GNU_SOURCE  
-O2 -pipe -fstack-protector -Wall -O2 -MT gmysqlbackend.lo -MD -MP -MF  
.deps/gmysqlbackend.Tpo -c gmysqlbackend.cc  -fPIC -DPIC -o  
.libs/gmysqlbackend.lo
In file included from gmysqlbackend.cc:10:
../../pdns/dnspacket.hh: In member function `int DNSPacket::parse(const  
char*, int)':
../../pdns/dnspacket.hh:305: error: ambiguous overload for 'operator<<'  
in '(+(+(+(+(+(+theL(const std::string&)((&string("",  
(&allocator<char>())))))->Logger::operator<<(Logger::Urgency)(Logger:: 
Warning))->Logger::operator<<(const std::string&)((&string("Ignoring  
packet: question too short from ",  
(&allocator<char>())))))->Logger::operator<<(const  
std::string&)((&DNSPacket::getRemote()  
const())))->Logger::operator<<(const std::string&)((&string(", offset  
", (&allocator<char>())))))->Logger::operator<<(int)((offset +  
15)))->Logger::operator<<(const std::string&)((&string(">=",  
(&allocator<char>())))) << (this + 88)->std::basic_string<_CharT,  
_Traits, _Alloc>::length() const [with _CharT = char, _Traits =  
std::char_traits<char>, _Alloc = std::allocator<char>]()'
../../pdns/logger.hh:111: error: candidates are: Logger&  
Logger::operator<<(const std::string&) <near match>
../../pdns/logger.hh:112: error:                 Logger&  
Logger::operator<<(int)
../../pdns/logger.hh:113: error:                 Logger&  
Logger::operator<<(unsigned int)
make[3]: *** [gmysqlbackend.lo] Error 1
make[3]: Leaving directory  
`/home/vdanen/RPM/BUILD/pdns-2.9.17/modules/gmysqlbackend'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/vdanen/RPM/BUILD/pdns-2.9.17/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vdanen/RPM/BUILD/pdns-2.9.17'
make: *** [all] Error 2
error: Bad exit status from /home/vdanen/RPM/tmp/rpm-tmp.47028 (%build)


Anyone have any ideas on what the problem is?  I'm not a C/C++ coder.

Thanks.

-- 
Annvix - Secure Linux Server: http://annvix.org/
"lynx -source http://linsec.ca/vdanen.asc | gpg --import"
{FEE30AD4 : 7F6C A60C 06C2 4811 FA1C  A2BC 2EBC 5E32 FEE3 0AD4}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20050210/194c3cf2/attachment.sig>


More information about the Pdns-users mailing list