When I tried to install grass-5.0.3, configure fails to fail freetype/freetype.h despite finding the FreeType includes location in /usr/include/freetype2 and the fact that /usr/include/freetype2/freetype/freetype.h exists. The error message is probably misleading, and the actual problem seems to be the way configure is trying to include freetype.h. config.log contains the following error message: configure:11182: gcc -E -I/usr/include/freetype2 conftest.c >/dev/null 2>conftest.out In file included from configure:11178: /usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!" /usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files." /usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:" /usr/include/freetype2/freetype/freetype.h:23:2: #error " #include <ft2build.h>" /usr/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H" configure: failed program was: #line 11177 "configure" #include "confdefs.h" #include <freetype/freetype.h> Reproducible: Always Steps to Reproduce: 1. emerge grass Actual Results: [snip] checking whether to use Motif... yes checking for location of Motif includes... /usr/X11R6/include checking for Xm/Xm.h... yes checking for location of Motif library... checking for XmStringCreate in -lXm... yes checking whether to use GLw... no checking whether to use FreeType... yes checking for location of FreeType includes... /usr/include/freetype2 checking for freetype/freetype.h... no configure: error: *** Unable to locate FreeType includes. !!! ERROR: sci-geosciences/grass-5.0.3 failed. !!! Function src_compile, Line 99, Exitcode 1 !!! ./configure failed !!! If you need support, post the topmost build error, NOT this status message. Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 x86_64) ================================================================= System uname: 2.6.10-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jan 20 2005, 00:58:09)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -ftracer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo ftp://mirror.isp.net.au/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="amd64 X Xaw3d aalib acpi adns alsa apache2 arts audiofile authdaemond avi berkdb bidi bitmap-fonts blas bzlib cddb cdparanoia cdr chroot crypt cscope cupscurl divx4linux djbfft dmx dv dvd dvdr encode esd f77 faac faad fam fbcon flac font-server foomaticdb fortran fpx freetype gd gdbm gif gimpprint gpm gps graphviz gtk gtk2 imagemagick imap imlib jack java jbig jp2 jpeg jpeg2k junit kde lapack lcms libcaca lm_sensors lzw lzw-tiff mad maildir mikmod mmap mng motif mozdevelop mpeg mpi multilib ncurses nls nptl nvidia offensive oggvorbis openal openglpam pcre pda perl pic png povray ppds python qt quicktime readline sdk sdl slang sndfile spamassassin speex spell ssl svg tcltk tcpd theora tiff truetype truetype-fonts type1-fonts usb userlocales virus-scan wmf xine xml xml2 xmms xpm xprint xrandr xscreensaver xv yv12 zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
it works if you change in the ebuild file --with-freetype-includes=/usr/include/freetype2 to --with-freetype-includes=/usr/include/freetype2/freetype
Thanks. Seems to work for me too.
Thanks for reporting. I was able to reproduce, but changing the include directory in the ebuild does not solve the problem for me. Care to attach a patch?
Obsoleted; try 5.4.0 or 6.0.0 please. If you absolutely need it, the attached ebuild will work with freetype-2.1.3 (which you'll need to get from the attic in CVS).
Created attachment 65387 [details] grass 5.0.3 works only with freetype 2.1.3 Get freetype 2.1.3 from the CVS attic.