[Pdns-users] Re: compiling on x86_64
Christof Meerwald
cmeerw at web.de
Thu Feb 10 20:17:57 UTC 2005
On Thu, 10 Feb 2005 10:03:13 -0700, Vincent Danen wrote:
> I'm trying to compile pdns 2.9.17 on an x86_64 linux system. I had to
[...]
> 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<<'
I am also seeing the error on my Ubuntu AMD64 box (gcc 3.3.4). The problem
seems to be that size_t is typedefed as a long int, but the Logger class
only has overloads for int and unsigned int. Adding overloads for long and
unsigned long to Logger should fix it.
bye, Christof
--
http://cmeerw.org
mailto:cmeerw at web.de xmpp:cmeerw at cmeerw.org
More information about the Pdns-users
mailing list