[Pdns-users] Error compiling dnsscope on Fedora C3

Fahd Sultan fsultan at register.com
Mon Dec 12 21:16:41 UTC 2005


Dnsscope,dnsreplay, and dnswasher all compile on the latest subverison'd
src, 
However dnsreplay_mindex gives an error:
(I've tried against pdns-2.9.19 also)


[root at bdns01 pdns]# make dnsreplay_mindex
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Ibackends/bind -pthread
-DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\"
-DLOCALSTATEDIR=\"/var/run\" -Ibackends/bind  -D_GNU_SOURCE  -Wall -O2
-MT dnsreplay-mindex.o -MD -MP -MF ".deps/dnsreplay-mindex.Tpo" -c -o
dnsreplay-mindex.o dnsreplay-mindex.cc; \
then mv -f ".deps/dnsreplay-mindex.Tpo" ".deps/dnsreplay-mindex.Po";
else rm -f ".deps/dnsreplay-mindex.Tpo"; exit 1; fi
dnsreplay-mindex.cc:52:43: boost/multi_index_container.hpp: No such file
or directory
dnsreplay-mindex.cc:53:47: boost/multi_index/ordered_index.hpp: No such
file or directory
dnsreplay-mindex.cc:54:48: boost/multi_index/key_extractors.hpp: No such
file or directory
dnsreplay-mindex.cc:57: error: expected namespace-name before ';' token
dnsreplay-mindex.cc:57: error: `<type error>' is not a namespace
dnsreplay-mindex.cc: In function `const timeval operator*(int, const
timeval&)':
dnsreplay-mindex.cc:105: warning: converting to `__suseconds_t' from
`double'
dnsreplay-mindex.cc: At global scope:
dnsreplay-mindex.cc:180: error: expected init-declarator before '<'
token
dnsreplay-mindex.cc:180: error: expected `,' or `;' before '<' token
dnsreplay-mindex.cc:188: error: `qids_t' does not name a type
dnsreplay-mindex.cc: In function `void WeOrigSlowQueriesDelta(int&,
int&, int&, int&)':
dnsreplay-mindex.cc:220: error: `qids_t' has not been declared
dnsreplay-mindex.cc:220: error: missing template arguments before "i"
dnsreplay-mindex.cc:220: error: expected `;' before "i"
dnsreplay-mindex.cc:220: error: `i' undeclared (first use this function)
dnsreplay-mindex.cc:220: error: (Each undeclared identifier is reported
only once for each function it appears in.)
dnsreplay-mindex.cc:220: error: `qids' undeclared (first use this
function)
dnsreplay-mindex.cc: In function `void measureResultAndClean(const
QuestionIdentifier&)':
dnsreplay-mindex.cc:269: error: `qids' undeclared (first use this
function)
dnsreplay-mindex.cc: In function `void receiveFromReference()':
dnsreplay-mindex.cc:348: error: `qids_t' has not been declared
dnsreplay-mindex.cc:348: error: expected init-declarator before '<'
token
dnsreplay-mindex.cc:348: error: expected `,' or `;' before '<' token
dnsreplay-mindex.cc:349: error: `qids_by_id_index_t' undeclared (first
use this function)
dnsreplay-mindex.cc:349: error: `idindex' undeclared (first use this
function)
dnsreplay-mindex.cc:349: error: `qids' undeclared (first use this
function)
dnsreplay-mindex.cc:350: error: `qids_by_id_index_t' has not been
declared
dnsreplay-mindex.cc:350: error: `const_iterator' undeclared (first use
this function)
dnsreplay-mindex.cc:350: error: expected `;' before "found"
dnsreplay-mindex.cc:350: error: expected primary-expression before ')'
token
dnsreplay-mindex.cc:350: error: expected `;' before ')' token
dnsreplay-mindex.cc:351: error: `found' undeclared (first use this
function)
dnsreplay-mindex.cc: In function `void pruneQids()':
dnsreplay-mindex.cc:394: error: `qids_t' has not been declared
dnsreplay-mindex.cc:394: error: missing template arguments before "i"
dnsreplay-mindex.cc:394: error: expected `;' before "i"
dnsreplay-mindex.cc:394: error: `i' undeclared (first use this function)
dnsreplay-mindex.cc:394: error: `qids' undeclared (first use this
function)
dnsreplay-mindex.cc: In function `void houseKeeping()':
dnsreplay-mindex.cc:458: error: `qids' undeclared (first use this
function)
dnsreplay-mindex.cc: In function `void
sendPacketFromPR(PcapPacketReader&, const IPEndpoint&)':
dnsreplay-mindex.cc:486: error: `qids' undeclared (first use this
function)
dnsreplay-mindex.cc:539: error: `qids_t' has not been declared
dnsreplay-mindex.cc:539: error: `const_iterator' undeclared (first use
this function)
dnsreplay-mindex.cc:539: error: expected `;' before "i"
dnsreplay-mindex.cc:540: error: `i' undeclared (first use this function)
dnsreplay-mindex.cc:473: warning: unused variable 'lastsent'
make: *** [dnsreplay-mindex.o] Error 1 

-----Original Message-----
From: bert hubert [mailto:bert.hubert at netherlabs.nl] 
Sent: Monday, December 12, 2005 1:59 PM
To: Fahd Sultan; pdns-users at mailman.powerdns.com
Subject: Re: [Pdns-users] Error compiling dnsscope on Fedora C3

On Mon, Dec 12, 2005 at 06:57:34PM +0100, bert hubert wrote:
> dnsscope has bitrotted somewhat but 'dnsreplay_mindex' should compile 
> well, and give about the same data (once you replay data..)

Ok, it is back. 
Patch: http://wiki.powerdns.com/projects/trac/changeset/551
http://wiki.powerdns.com/projects/trac/wiki/HACKING

You might also get away with replacing only this in pdns/Makefile:

am_dnsscope_OBJECTS = dnsscope.$(OBJEXT) misc.$(OBJEXT) \
        unix_utility.$(OBJEXT) qtype.$(OBJEXT) logger.$(OBJEXT) \
        statbag.$(OBJEXT) dnspcap.$(OBJEXT) dnsparser.$(OBJEXT) \
        dnsrecords.$(OBJEXT) base64.$(OBJEXT) dnswriter.$(OBJEXT) \
        rcpgenerator.$(OBJEXT)

This saves the need for automake, autoconf being installed.

Sample output:

Timespan: 0.0519444 hours
Saw 38217 correct packets, 0 runts, 0 oversize, 0 unknown encaps, 18 dns
decoding errors, 0 bogus packets
192 packets went unanswered, of which 0 were answered on exact
retransmit
18 answers could not be matched to questions
18 answers were unsatisfactory (indefinite, or SERVFAIL) 0 answers
(would be) discarded because older than 2 seconds
Rcode   Count
0       24266
2       12948
3       910
32.16% of questions answered within 50 usec (32.16%) 70.24% of questions
answered within 100 usec (38.09%) 79.81% of questions answered within
200 usec (9.57%) 81.42% of questions answered within 250 usec (1.61%)
82.34% of questions answered within 300 usec (0.92%) 82.72% of questions
answered within 350 usec (0.38%) 82.94% of questions answered within 400
usec (0.22%) 84.18% of questions answered within 800 usec (1.24%) 84.65%
of questions answered within 1000 usec (0.47%) 92.85% of questions
answered within 2.00 msec (8.20%) 98.19% of questions answered within
4.00 msec (5.33%) 99.57% of questions answered within 8.00 msec (1.39%)
99.78% of questions answered within 16.00 msec (0.21%) 99.88% of
questions answered within 32.00 msec (0.11%) 99.97% of questions
answered within 64.00 msec (0.09%) 99.98% of questions answered within
128.00 msec (0.01%) 100.00% of questions answered within 256.00 msec
(0.02%) Average response time: 561.9 usec


-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services



More information about the Pdns-users mailing list