[Pdns-users] pdns 2.9.22 on RHEL6

Ian Mordey ian.mordey at griffin.com
Mon Nov 22 16:27:28 UTC 2010

I found rebuilding the Fedora 13 SRPM works. It includes this patch:
diff -up pdns-2.9.22/pdns/misc.hh.orig pdns-2.9.22/pdns/misc.hh
--- pdns-2.9.22/pdns/misc.hh.orig	2009-02-26 17:09:41.000000000 +0100
+++ pdns-2.9.22/pdns/misc.hh	2009-02-26 17:09:54.000000000 +0100
@@ -20,6 +20,7 @@
 #define MISC_HH
 #include <stdint.h>
 #include <cstring>
+#include <cstdio>
 #if 0
 #include <iostream>

Any ideas when pdns 3 will be released?


-----Original Message-----
From: Maik Zumstrull [mailto:maik at zumstrull.net] 
Sent: 22 November 2010 16:23
To: Ian Mordey
Cc: pdns-users at mailman.powerdns.com
Subject: Re: [Pdns-users] pdns 2.9.22 on RHEL6

On Mon, Nov 22, 2010 at 17:06, Ian Mordey <ian.mordey at griffin.com> wrote:
> Hi there
> I’m trying to compile PowerDNS 2.9.22 with a MySQL backend on a RHEL 6
> x86_64 box. I’m getting this error during the make:

> ../../rcpgenerator.cc:75: error: ‘sscanf’ was not declared in this 
> scope

> Any ideas how to fix?

Throw in an
#include <cstdio>
at the top of the .cc file with the other includes. Same problem in dnsparser.cc.

Also consider the patch releases 2.9.22.x* here:
2.9.22 is, after all, getting a bit old.

More information about the Pdns-users mailing list