Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3305 - g-wrap-1.2.1-r1 does not compile with gcc 3.1
Summary: g-wrap-1.2.1-r1 does not compile with gcc 3.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-01 15:47 UTC by jano lukac
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jano lukac 2002-06-01 15:47:26 UTC
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
Comment 1 Brandon Low (RETIRED) gentoo-dev 2002-06-04 07:51:57 UTC
Applied a similar fix, thanks for the tip!