Building X.org 6.8.2 freetype related question .....
Mark Carey
mark.carey at gmail.com
Mon Apr 4 23:28:00 PDT 2005
Hi,
Possibly related to bug #2061, https://bugs.freedesktop.org/show_bug.cgi?id=2061
I am trying to build X.org 6.8.2 and am getting erors related to what
my c experience tells me are missing header files,
rm -f xrender.pc
sh ../Xcursor/config-subst prefix="/usr/local/X11R6"
exec_prefix="/usr/local/X11R6/bin"
libdir="/usr/local/X11R6/lib"
includedir="/usr/local/X11R6/include" VERSION="0.8.4"
X_REQUIRES="" RENDER_CFLAGS=""
X_NON_PKG_CFLAGS="" X_NON_PKG_LIBS="-lX11 -lXext" <
xrender.pc.in > xrender.pc
make[4]: Leaving directory `/sources/xcbuild/lib/Xrender'
making all in lib/Xft1...
make[4]: Entering directory `/sources/xcbuild/lib/Xft1'
rm -f xftcfg.o
gcc -m32 -c -O2 -fno-strength-reduce
-fno-strict-aliasing -march=i686 -ansi -pedantic -Wall
-Wpointer-arith -Wundef -I/usr/include/freetype2
-I/usr/include/freetype2/config -I../../exports/include/X11 -I../..
-I../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE
-D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE
-DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS
-D_REENTRANT -DXUSE_MTSAFE_API -DFREETYPE2 -DXFREE86_FT2 -fPIC
xftcfg.c
In file included from XftFreetype.h:29,
from xftint.h:31,
from xftcfg.c:28:
/usr/local/include/ft2build.h:56:38: freetype/config/ftheader.h: No
such file or directory
In file included from xftint.h:31,
from xftcfg.c:28:
XftFreetype.h:30:10: #include expects "FILENAME" or <FILENAME>
In file included from xftint.h:31,
from xftcfg.c:28:
XftFreetype.h:35: error: parse error before "_XftFTlibrary"
XftFreetype.h:35: warning: type defaults to `int' in declaration of
`_XftFTlibrary'
XftFreetype.h:35: error: ISO C forbids data definition with no type or
storage class
XftFreetype.h:38: error: parse error before "FT_Face"
XftFreetype.h:38: warning: no semicolon at end of struct or union
XftFreetype.h:42: error: parse error before "size"
XftFreetype.h:42: warning: type defaults to `int' in declaration of `size'
XftFreetype.h:42: error: ISO C forbids data definition with no type or
storage class
XftFreetype.h:55: error: parse error before "matrix"
XftFreetype.h:55: warning: type defaults to `int' in declaration of `matrix'
XftFreetype.h:55: error: ISO C forbids data definition with no type or
storage class
XftFreetype.h:56: warning: ISO C does not allow extra `;' outside of a function
XftFreetype.h:74: error: parse error before "face"
make[4]: *** [xftcfg.o] Error 1
make[4]: Leaving directory `/sources/xcbuild/lib/Xft1'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/sources/xcbuild/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/sources/xcbuild'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/sources/xcbuild'
make: *** [World] Error 2
My system already has freetype installed.......
[root at jersey:/sources]# which freetype-config
/usr/local/bin/freetype-config
[root at jersey:/sources]# freetype-config --cflags
-I/usr/local/include/freetype2 -I/usr/local/include
[root at jersey:/sources]# pkg-config --cflags freetype2
-I/usr/local/include/freetype2
However looking at the above build output (make World after a make
distclean in a lndir'ed directory) it would appear gcc has been
instructed to look for freetype in /usr rather than /usr/local.
My host.def contains
#define HasFreetype2 YES
Why isnt the imake system finding freetype? Does the build system
assume freetype installed in /usr?
I note that bug 2061 remains open .....
Pointers much appreciated ...
Mark Carey
More information about the xorg
mailing list