Using gcc-4.7, dev-util/xxdiff-4.0_beta1_p20110426 fails compile phase at the point of the following error messages; In file included from util.cpp:29:0: ./main.h:38:15: error: previous declaration of ‘char** environ’ with ‘C++’ linkage In file included from util.cpp:46:0: /usr/include/unistd.h:545:15: error: conflicts with new declaration with ‘C’ linkage Reproducible: Always Upstream patch that fixes this error is at; https://hg.furius.ca/public/xxdiff/rev/00d868ea5f4a
Created attachment 328764 [details] dev-util/xxdiff-4.0_beta1_p20110426 complete build log
Created attachment 328766 [details] dev-util/xxdiff-4.0_beta1_p20110426 emerge --info
Upstream patch looks silly to me, but the bottom half would work.
+ 30 Nov 2012; Markos Chandras <hwoarang@gentoo.org> + +files/xxdiff-4.0_beta1_p20110426-gcc47.patch, + xxdiff-4.0_beta1_p20110426.ebuild: + Apply upstream patch to fix building with gcc-4.7. Bug #442302 +