[Pdns-users] Compiling on Fedora Core3 / AMD64

Brian Topping topping at codehaus.org
Sun Feb 20 05:09:50 UTC 2005


Howdy folks,

I'm a new PDNS user, saw a sig on a policy routing database list that 
referenced PDNS and thought I would give it a whirl.  It's exactly what 
I need right now.  I have the domain 'orb.org', and unfortunately a lot 
of people are misconfigured and requesting spam lookups from 
'relays.orb.org' (the correct spelling is 'relays.orb*s*.org').  So I 
guess my only choice is to tell them that everything is spam until they 
wake up and reconfigure their mail servers... :-)

Anyway, I'm having some issues getting things to build on FC3 under 
AMD64.  The first is easy (but might be worth checking out) is that when 
using ./bootstrap, automake either doesn't find or doesn't create 
ltmain.sh.  Looks like it comes from something called libtool, but I'm 
not sure if this belongs in CVS or it is generated.  I copied this from 
the 2.9.17 distrib just to get going.

There were a bunch of files with cast issues for the logging.  I've 
included the patch output inline in this email, below.

And I'd like to ask for some help.  I've created the module and had it 
compiling at one point, but it wouldn't actually *load* the module.  
It's listed in the configuration file just fine and the server doesn't 
complain that it cannot find the module, it just never loads it.  Well, 
that was then.  Now my build has broken.  It seems that the libraries 
are all being generated of the form 'liborbbackend_la.orbbackend.o' when 
they should presumably be 'orbbackend.o', which is what I have them in 
the OBJECTFILES as.

If anyone could spare five minutes to look at this, the 28K tarball is 
at http://codehaus.org/~topping/orbbackend.tgz .  This is the first C 
development I've done in six years, and there are a lot of new wrinkles 
(such as libtool).

Thanks kindly in advance.

Brian Topping

Index: pdns/communicator.cc
===================================================================
RCS file: /var/cvsroot/pdns/pdns/communicator.cc,v
retrieving revision 1.16
diff -u -r1.16 communicator.cc
--- pdns/communicator.cc        11 Jan 2005 20:04:17 -0000      1.16
+++ pdns/communicator.cc        20 Feb 2005 04:47:39 -0000
@@ -209,7 +209,7 @@
   }
   else {
     d_masterschanged=true;
-    L<<Logger::Error<<cmdomains.size()<<" domain"<<(cmdomains.size()>1 
? "s" : "")<<" for which we are master need"<<
+    L<<Logger::Error<<(unsigned int)cmdomains.size()<<" 
domain"<<(cmdomains.size()>1 ? "s" : "")<<" for which we are master need"<<
       (cmdomains.size()>1 ? "" : "s")<<
       " notifications"<<endl;
   }
@@ -239,7 +239,7 @@
     return;
   }
   else
-    L<<Logger::Warning<<sdomains.size()<<" slave 
domain"<<(sdomains.size()>1 ? "s" : "")<<" need"<<
+    L<<Logger::Warning<<(unsigned int)sdomains.size()<<" slave 
domain"<<(sdomains.size()>1 ? "s" : "")<<" need"<<
       (sdomains.size()>1 ? "" : "s")<<
       " checking"<<endl;

Index: pdns/dnspacket.hh
===================================================================
RCS file: /var/cvsroot/pdns/pdns/dnspacket.hh,v
retrieving revision 1.17
diff -u -r1.17 dnspacket.hh
--- pdns/dnspacket.hh   13 Dec 2004 15:53:32 -0000      1.17
+++ pdns/dnspacket.hh   20 Feb 2005 04:47:40 -0000
@@ -301,8 +301,8 @@
   }

   if((unsigned int)(15+offset)>=stringbuffer.length()) {
-    L << Logger::Warning << "Ignoring packet: question too short from 
"<< getRemote()<<", offset "<<
-      15+offset<<">="<<stringbuffer.length()<<endl;
+    L << Logger::Warning << "Ignoring packet: question too short from 
"<<", offset "<<
+      15+offset<<">="<<(unsigned int)stringbuffer.length()<<endl;
     return -1;
   }

Index: pdns/dnsproxy.cc
===================================================================
RCS file: /var/cvsroot/pdns/pdns/dnsproxy.cc,v
retrieving revision 1.6
diff -u -r1.6 dnsproxy.cc
--- pdns/dnsproxy.cc    28 Feb 2004 20:06:43 -0000      1.6
+++ pdns/dnsproxy.cc    20 Feb 2005 04:47:40 -0000
@@ -177,8 +177,8 @@
 #endif
        map_t::iterator i=d_conntrack.find(d.id^d_xor);
        if(i==d_conntrack.end()) {
-         L<<Logger::Error<<"Discarding untracked packet from recursor 
backend with id "<<(d.id^d_xor)<<
-           ". Contrack table size="<<d_conntrack.size()<<endl;
+         L<<Logger::Error<<"Discarding untracked packet from recursor 
backend with id "<<(unsigned int)(d.id^d_xor)<<
+           ". Contrack table size="<<(unsigned 
int)d_conntrack.size()<<endl;
          continue;
        }
        else if(i->second.created==0) {
cvs server: Diffing pdns/backends
cvs server: Diffing pdns/backends/bind
Index: pdns/backends/bind/bindbackend.cc
===================================================================
RCS file: /var/cvsroot/pdns/pdns/backends/bind/bindbackend.cc,v
retrieving revision 1.16
diff -u -r1.16 bindbackend.cc
--- pdns/backends/bind/bindbackend.cc   22 Aug 2003 13:33:31 -0000      1.16
+++ pdns/backends/bind/bindbackend.cc   20 Feb 2005 04:47:40 -0000
@@ -509,7 +509,7 @@

     ZP.setDirectory(BP.getDirectory());
     ZP.setCallback(&callback);
-    L<<Logger::Warning<<d_logprefix<<" Parsing "<<domains.size()<<" 
domain(s), will report when done"<<endl;
+    L<<Logger::Warning<<d_logprefix<<" Parsing "<<(unsigned 
int)domains.size()<<" domain(s), will report when done"<<endl;

     int rejected=0;
     int newdomains=0;
@@ -608,7 +608,7 @@
       *status=msg.str();

     L<<Logger::Error<<d_logprefix<<msg.str()<<endl;
-    L<<Logger::Info<<d_logprefix<<" Number of hash buckets: 
"<<d_qnames.bucket_count()<<", number of entries: "<<d_qnames.size()<< endl;
+    L<<Logger::Info<<d_logprefix<<" Number of hash buckets: 
"<<(unsigned int)d_qnames.bucket_count()<<", number of entries: 
"<<(unsigned int)d_qnames.size()<< endl;
   }
 }

Index: pdns/backends/bind/bindbackend2.cc
===================================================================
RCS file: /var/cvsroot/pdns/pdns/backends/bind/bindbackend2.cc,v
retrieving revision 1.6
diff -u -r1.6 bindbackend2.cc
--- pdns/backends/bind/bindbackend2.cc  4 Oct 2003 14:15:46 -0000       1.6
+++ pdns/backends/bind/bindbackend2.cc  20 Feb 2005 04:47:41 -0000
@@ -466,7 +466,7 @@

     ZP.setDirectory(BP.getDirectory());
     ZP.setCallback(&callback);
-    L<<Logger::Warning<<d_logprefix<<" Parsing "<<domains.size()<<" 
domain(s), will report when done"<<endl;
+    L<<Logger::Warning<<d_logprefix<<" Parsing "<<(unsigned 
int)domains.size()<<" domain(s), will report when done"<<endl;

     int rejected=0;
     int newdomains=0;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3182 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20050220/bbf15f0a/attachment.bin>


More information about the Pdns-users mailing list