When trying to emerge pdns-recursor with gcc 4 then I get the following error: i686-pc-linux-gnu-g++ -O2 -march=pentium3 -mtune=i686 -pipe -fomit-frame-pointer -c -o recursor_cache.o recursor_cache.cc recursor_cache.cc:14:28: error: bits/atomicity.h: No such file or directory make: *** [recursor_cache.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: net-dns/pdns-recursor-3.1.4 failed. Call stack: ebuild.sh, line 1632: Called dyn_compile ebuild.sh, line 983: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile pdns-recursor-3.1.4.ebuild, line 36: Called die The problem is recursor_cache.cc which has a hardcoded "#include <bits/atomicity.h>" Reproducible: Always
Created attachment 127210 [details, diff] pdns-recursor-3.1.4-gcc4.patch This patch fixes the problem with pdns-recursor-3.1.4 and GCC 4.
Thanks, commited to the tree.