[Pdns-users] Re: compiling on x86_64
Vincent Danen
vdanen at annvix.org
Thu Feb 10 21:55:07 UTC 2005
On Feb 10, 2005, at 13:17, Christof Meerwald wrote:
> 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.
I think you missed the part where I had said I wasn't much of a C/C++
coder. =) What you said makes a little bit of sense, but not much.
I'm assuming I'd be editing pdns/logger.hh, and I can see where class
Logger is defined, but I have no idea what an overload is.
--
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/d1e2de11/attachment-0001.sig>
More information about the Pdns-users
mailing list