[Pdns-users] Re: compiling on x86_64

Christof Meerwald cmeerw at web.de
Fri Feb 11 21:05:33 UTC 2005


On Fri, 11 Feb 2005 10:12:33 -0700, Vincent Danen wrote:
>>> Ok, try applying this fix:
>>> http://wiki.powerdns.com/projects/trac/changeset/305?format=diff
>>> The trick is to download this file, and apply it like this:
>>> pdns/$ patch -p2 < pdns/305\?format\=diff Should solve the problems.
> Doesn't solve it here.  With this patch I applied, I now get:

Doesn't solve it for me either. Hmm, bert has only added an overload for
unsigned long, but not for long.

Add another overload for long and it should work (at least it does for me
then):

add to pdns/logger.cc:

Logger& Logger::operator<<(long i)
{
  ostringstream tmp;
  tmp<<i;

  *this<<tmp.str();

  return *this;
}


and to pdns/logger.hh:

Logger& operator<<(long);   //!< log a long


bye, Christof

-- 

http://cmeerw.org
mailto:cmeerw at web.de                       xmpp:cmeerw at cmeerw.org


More information about the Pdns-users mailing list