[Pdns-dev] dnsgram compile errors

David Hawthorne dhawth at 3crowd.com
Wed May 12 20:27:23 CEST 2010


$ g++ -DHAVE_CONFIG_H -I. -I..  -Ibackends/bind -pthread  -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -DLOCALSTATEDIR=\"/var/run\" -Ibackends/bind -pthread  -D_GNU_SOURCE  -Wall -O2 -MT dnsgram.o -MD -MP -MF .deps/dnsgram.Tpo -c -o dnsgram.o dnsgram.cc
dnsgram.cc: In function ‘int main(int, char**)’:
dnsgram.cc:123: error: no match for ‘operator=’ in ‘lastreport = pr.PcapPacketReader::d_pheader.pdns_pcap_pkthdr::ts’
/usr/include/bits/time.h:70: note: candidates are: timeval& timeval::operator=(const timeval&)
dnsgram.cc:131: error: no match for ‘operator=’ in ‘g_lastquestionTime = pr.PcapPacketReader::d_pheader.pdns_pcap_pkthdr::ts’
/usr/include/bits/time.h:70: note: candidates are: timeval& timeval::operator=(const timeval&)
dnsgram.cc:139: error: no match for ‘operator=’ in ‘g_lastanswerTime = pr.PcapPacketReader::d_pheader.pdns_pcap_pkthdr::ts’
/usr/include/bits/time.h:70: note: candidates are: timeval& timeval::operator=(const timeval&)
dnsgram.cc:145: error: no match for ‘operator=’ in ‘g_lastquestionTime = pr.PcapPacketReader::d_pheader.pdns_pcap_pkthdr::ts’
/usr/include/bits/time.h:70: note: candidates are: timeval& timeval::operator=(const timeval&)
dnsgram.cc:159: error: invalid initialization of reference of type ‘const timeval&’ from expression of type ‘pdns_timeval’
dnsgram.cc:21: error: in passing argument 1 of ‘void makeReport(const timeval&)’
dnsgram.cc:160: error: no match for ‘operator=’ in ‘lastreport = pr.PcapPacketReader::d_pheader.pdns_pcap_pkthdr::ts’
/usr/include/bits/time.h:70: note: candidates are: timeval& timeval::operator=(const timeval&)

$ g++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9) 


More information about the Pdns-dev mailing list