Hi, on a gcc3.1 built system, emerge g-wrap fails with the following gcc error: gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Werror -Wall -g -I../libruntime-guile -march=pentium3 -msse -mmmx -fforce-addr -falign-functions=4 -falign-jumps=4 -falign-loops=4 -maccumulate-outgoing-args -O3 -pipe -I/usr/include -c gw-test-parent.c -MT gw-test-parent.lo -MD -MP -MF .deps/gw-test-parent.TPlo -fPIC -DPIC -o .libs/gw-test-parent.lo cc1: changing search order for system directory "/usr/include" cc1: as it has already been specified as a non-system directory make[2]: *** [gw-test-parent.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/g-wrap-1.2.1-r1/work/g-wrap-1.2.1/test' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/g-wrap-1.2.1-r1/work/g-wrap-1.2.1' make: *** [all] Error 2 This is because gcc 3.1 does not allow -I/usr/include anymore. g-wrap is a lib required to build gnucash. Add these four lines to the ebuild after the configure, before the make: mv test/Makefile test/Makefile.bak sed -e "s/\-I\/usr\/include//g" test/Makefile.bak > test/Makefile mv g-wrapped/Makefile g-wrapped/Makefile.bak sed -e "s/\-I\/usr\/include//g" g-wrapped/Makefile.bak > g-wrapped/Makefile Jano
Applied a similar fix, thanks for the tip!