[Pdns-dev] dnspbench compile errors

David Hawthorne dhawth at 3crowd.com
Wed May 12 20:34:57 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 dnspbench.o -MD -MP -MF .deps/dnspbench.Tpo -c -o dnspbench.o dnspbench.cc
dnspbench.cc:19:28: error: bits/atomicity.h: No such file or directory
dnspbench.cc: In function ‘_Atomic_word __gnu_cxx::__exchange_and_add(volatile _Atomic_word*, int)’:
dnspbench.cc:25: error: redefinition of ‘_Atomic_word __gnu_cxx::__exchange_and_add(volatile _Atomic_word*, int)’
/usr/include/c++/4.4/ext/atomicity.h:45: error: ‘_Atomic_word __gnu_cxx::__exchange_and_add(volatile _Atomic_word*, int)’ previously defined here
dnspbench.cc: In function ‘void __gnu_cxx::__atomic_add(volatile _Atomic_word*, int)’:
dnspbench.cc:34: error: redefinition of ‘void __gnu_cxx::__atomic_add(volatile _Atomic_word*, int)’
/usr/include/c++/4.4/ext/atomicity.h:49: error: ‘void __gnu_cxx::__atomic_add(volatile _Atomic_word*, int)’ previously defined here
make: *** [dnspbench.o] Error 1

$ 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