Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11941 - avifile-0.7.15-20020816 doesn't compile - Xft problems
Summary: avifile-0.7.15-20020816 doesn't compile - Xft problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-11 01:29 UTC by Patrik Kullman
Modified: 2003-02-04 19:42 UTC (History)
2 users (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 Patrik Kullman 2002-12-11 01:29:21 UTC
 
Comment 1 Dewet Diener 2002-12-11 11:45:48 UTC
Confirmed.  I have xft-2.0-r1 and xfree-4.2.1-r2 installed: 
 
make[2]: Entering directory 
`/var/tmp/portage/avifile-0.7.15.20020816/work/avifile0.7-0.7.15/lib/video' 
source='renderer.cpp' object='renderer.lo' libtool=yes \ 
depfile='.deps/renderer.Plo' tmpdepfile='.deps/renderer.TPlo' \ 
depmode=gcc3 /bin/sh ../../admin/depcomp \ 
/bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. 
-I../../include   -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include -D_REENTRANT  
-I./../subtitles -Wall -Wno-unused -I../../include  -g -O2 -mcpu=i686 -march=i686 -ffast-math 
-pipe  -c -o renderer.lo `test -f 'renderer.cpp' || echo './'`renderer.cpp 
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I/usr/include/SDL 
-D_REENTRANT -I/usr/X11R6/include -D_REENTRANT -I./../subtitles -Wall -Wno-unused 
-I../../include -g -O2 -mcpu=i686 -march=i686 -ffast-math -pipe -c renderer.cpp -MT 
renderer.lo -MD -MP -MF .deps/renderer.TPlo  -fPIC -DPIC -o renderer.lo 
In file included from renderer.cpp:50: 
/usr/X11R6/include/X11/Xft/Xft.h:52: syntax error before `;' token 
/usr/X11R6/include/X11/Xft/Xft.h:86: 'FT_UInt' is used as a type, but is not 
   defined as a type. 
/usr/X11R6/include/X11/Xft/Xft.h:93: 'FT_UInt' is used as a type, but is not 
   defined as a type. 
/usr/X11R6/include/X11/Xft/Xft.h:190: type specifier omitted for parameter ` 
   FT_UInt' 
/usr/X11R6/include/X11/Xft/Xft.h:190: parse error before `*' token 
/usr/X11R6/include/X11/Xft/Xft.h:295: type specifier omitted for parameter ` 
   FT_UInt' 
/usr/X11R6/include/X11/Xft/Xft.h:295: parse error before `*' token 
/usr/X11R6/include/X11/Xft/Xft.h:343: parse error before `*' token 
/usr/X11R6/include/X11/Xft/Xft.h:380: type specifier omitted for parameter ` 
   FT_UInt' 
/usr/X11R6/include/X11/Xft/Xft.h:380: parse error before `*' token 
/usr/X11R6/include/X11/Xft/Xft.h:386: type specifier omitted for parameter ` 
   FT_UInt' 
/usr/X11R6/include/X11/Xft/Xft.h:386: parse error before `*' token 
/usr/X11R6/include/X11/Xft/Xft.h:395: type specifier omitted for parameter ` 
   FT_UInt' 
/usr/X11R6/include/X11/Xft/Xft.h:395: parse error before `,' token 
/usr/X11R6/include/X11/Xft/Xft.h:405: parse error before `*' token 
/usr/X11R6/include/X11/Xft/Xft.h:448: type specifier omitted for parameter ` 
   FT_UInt' 
/usr/X11R6/include/X11/Xft/Xft.h:448: parse error before `*' token 
make[2]: *** [renderer.lo] Error 1 
make[2]: Leaving directory 
`/var/tmp/portage/avifile-0.7.15.20020816/work/avifile0.7-0.7.15/lib/video' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory 
`/var/tmp/portage/avifile-0.7.15.20020816/work/avifile0.7-0.7.15/lib' 
make: *** [all-recursive] Error 1 
 
!!! ERROR: media-video/avifile-0.7.15.20020816 failed. 
!!! Function src_compile, Line 70, Exitcode 2 
!!! (no error message) 
 
 
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-12 20:54:10 UTC
Problem is that it also include /usr/include (-I/usr/include), and thus
the freetype1 headers are seletected before freetype2 headers.  The fix
is simple, just add:

    export C_INCLUDE_PATH="${C_INCLUDE_PATH}:/usr/include/freetype2"
    export CPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH}:/usr/include/freetype2"

Anyhow, this is fixed in -r1.