[Xr] Error compiling Xr

Davor Buvinic davor at vtr.net
Tue Apr 22 14:58:29 PDT 2003


On today CVS, Xr refuse to compile. Apparently Xft requires to include 
freetype2 headers, and Xr build system don't use xft.pc (at least I can see 
the freetype2 requirements on this file).

(My system runs Red Hat 9, with XFree86 4.3.99.2 and freetype 2.1.4)

export cc="gcc -I/usr/include/freetype2" fix the problem.

BTW, xrtest have very nice demos!

- Davor

----8<----8<----

Making all in src
make[2]: Entering directory `/home/davor/src/keithp.com/cvs/Xr/src'
source='xr.c' object='xr.lo' libtool=yes \
depfile='.deps/xr.Plo' tmpdepfile='.deps/xr.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. 
-I/usr/X11R6/include -I/usr/local/include      -g -O2 -c -o xr.lo `test -f 
'xr.c' || echo './'`xr.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/local/include -g 
-O2 -c xr.c -MT xr.lo -MD -MP -MF .deps/xr.TPlo  -fPIC -DPIC -o .libs/xr.lo
In file included from xrint.h:39,
                 from xr.c:26:
/usr/X11R6/include/X11/Xft/Xft.h:52: parse error before "_XftFTlibrary"
/usr/X11R6/include/X11/Xft/Xft.h:52: warning: data definition has no type or 
storage class
/usr/X11R6/include/X11/Xft/Xft.h:86: parse error before "FT_UInt"
/usr/X11R6/include/X11/Xft/Xft.h:86: warning: no semicolon at end of struct or 
union
/usr/X11R6/include/X11/Xft/Xft.h:89: parse error before '}' token
/usr/X11R6/include/X11/Xft/Xft.h:89: warning: data definition has no type or 
storage class
/usr/X11R6/include/X11/Xft/Xft.h:93: parse error before "FT_UInt"
/usr/X11R6/include/X11/Xft/Xft.h:93: warning: no semicolon at end of struct or 
union
/usr/X11R6/include/X11/Xft/Xft.h:96: parse error before '}' token
/usr/X11R6/include/X11/Xft/Xft.h:96: warning: data definition has no type or 
storage class
/usr/X11R6/include/X11/Xft/Xft.h:190: parse error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:256: parse error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:262: parse error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:295: parse error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:354: parse error before "XftLockFace"
/usr/X11R6/include/X11/Xft/Xft.h:354: warning: data definition has no type or 
storage class
/usr/X11R6/include/X11/Xft/Xft.h:393: parse error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:399: parse error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:408: parse error before "FT_UInt"
/usr/X11R6/include/X11/Xft/Xft.h:418: parse error before "XftCharIndex"
/usr/X11R6/include/X11/Xft/Xft.h:420: warning: data definition has no type or 
storage class
/usr/X11R6/include/X11/Xft/Xft.h:461: parse error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:472: parse error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:493: parse error before '*' token
make[2]: *** [xr.lo] Error 1
make[2]: Leaving directory `/home/davor/src/keithp.com/cvs/Xr/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/davor/src/keithp.com/cvs/Xr'
make: *** [all] Error 2





More information about the cairo mailing list