[Pdns-users] Re: compiling on x86_64
Vincent Danen
vdanen at annvix.org
Thu Feb 10 21:59:28 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.
Nevermind... I got it. Seems to be compiling now with this:
--- logger.hh~ 2004-09-13 14:54:44.000000000 -0400
+++ logger.hh 2005-02-10 16:56:55.000000000 -0500
@@ -111,6 +111,8 @@
Logger& operator<<(const string &s); //!< log a string
Logger& operator<<(int); //!< log an int
Logger& operator<<(unsigned int); //!< log an unsigned int
+ Logger& operator<<(long); //!> log a long
+ Logger& operator<<(unsigned long); //!< log an unsigned long
Logger& operator<<(Urgency); //!< set the urgency, << style
I guess I'm not so dense as I thought. =)
--
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/7d8ed6eb/attachment-0001.sig>
More information about the Pdns-users
mailing list