Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 18294

Summary: sawfish-1.3 + gcc-2.95 => compilation failure
Product: Gentoo Linux Reporter: TGL <tom.gl>
Component: Current packagesAssignee: Brad Cowan (RETIRED) <bcowan>
Status: RESOLVED FIXED    
Severity: normal CC: tom.gl
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description TGL 2003-03-27 09:24:04 UTC
I am still a gcc-2.95 user, and I still have the same compilation error I had in
bug #13329 when I try to compile the new sawfish-1.3. The problem seems to be a
"-I/usr/include" in CFLAGS, wich creates a confusion between freetype and
freetype2 headers. To be precise, it comes from REP_CFLAGS, defined in Makedefs.

My fix to that is to modify Makedefs after the ./configure, in src_compile():
./configure --host=${CHOST} \
	[...]
mv Makedefs Makedefs.orig
sed -e s:'REP_CFLAGS=':'REP-CFLAGS=-I/usr/include/freetype2 ': Makedefs.orig >
Makedefs
[...]

Hope this helps,

Thomas.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2003-04-01 16:18:26 UTC
OK, fixed on cvs in sawfish-1.3 (should be hitting rsync within an hour)