Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27915 - GRASS does not compile
Summary: GRASS does not compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-04 04:53 UTC by Fabien Fivaz
Modified: 2005-09-07 11:31 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 Fabien Fivaz 2003-09-04 04:53:07 UTC
When I emerge grass, configure fails when looking for freetype.h. Here is the log : 
 
checking whether to use FreeType... yes 
checking for location of FreeType includes... 
checking for freetype/freetype.h... no 
configure: error: *** Unable to locate FreeType includes. 
 
!!! ERROR: app-misc/grass-5.0.2 failed. 
!!! Function src_compile, Line 92, Exitcode 1 
!!! ./configure failed
Comment 1 Fabien Fivaz 2003-09-04 04:54:18 UTC
I forgot to tell that Freetype 2 is already emerged... 
Comment 2 Fabien Fivaz 2003-09-04 05:24:17 UTC
If I tell emerge USE="-truetype", then emerging grass is OK. Btw. includes for freetype 
are included in /usr/include/freetype2/freetype ! 
Comment 3 Brandy Westcott (RETIRED) gentoo-dev 2003-09-06 01:58:16 UTC
It looks like grass-5.0.2 only supports freetype2. From the requirements.html file in the 
grass-5.0.2 tarball: 
 
	Optional Requirements 
	..... 
	FreeType2 (for d.text.freetype) 
 
However, if we don't specify where the freetype2 header files are then either the 
configure script will fail with the above error or, if freetype-1.3.x is installed, the following 
error is encountered in the grass compile: 
 
	GISGEN: src/display/d.text.freetype - Sat Sep 6 20:15:48 NZST 2003 
 
	######################################################## 
	/var/tmp/portage/grass-5.0.2/work/grass5.0.2/src/display/d.text.freetype 
	mkdir OBJ.i686-pc-linux-gnu 
	make -f OBJ.i686-pc-linux-gnu/make.rules 
 
	make[1]: Entering directory 
	  `/var/tmp/portage/grass-5.0.2/work/grass5.0.2/src/display/d.text.freetype' 
	gcc -I/var/tmp/portage/grass-5.0.2/work/grass5.0.2/src/include 
	  -march=pentium4 -O2 -pipe -fomit-frame-pointer     -c main.c -o 
	  OBJ.i686-pc-linux-gnu/main.o 
	main.c:75: parse error before "library" 
	main.c:76: parse error before "face" 
	..... 
	make[1]: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1 
	make[1]: Leaving directory 
	  `/var/tmp/portage/grass-5.0.2/work/grass5.0.2/src/display/d.text.freetype' 
	GISGEN failure at STEP: src/display/d.text.freetype 
 
In fact the d.text.freetype README file instructs us to specify where the freetype2 files 
are installed. Adding the following to the grass-5.0.2 ebuild fixes things nicely: 
 
        use truetype \ 
        && myconf="${myconf} --with-freetype \ 
        --with-freetype-includes=/usr/include/freetype2" \ 
        || myconf="${myconf} --without-freetype" 
 
	 
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2003-09-06 03:53:14 UTC
thx, fixed :) 
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2003-09-06 03:55:08 UTC
forgot to close...
Comment 6 Erik 2005-09-07 11:31:51 UTC
Was this really fixed in 2003? I got the error now. What was the fix? Where did 
it go?