Compilation de XFree86 : cfreetype.h:30: error: syntax error before "FcFreeTypeCharIndex"
Le
Bertrand GRONDIN
Bonjour,
J'essaie de compiler XFree86. Après avoir installé différentes librairies
manquantes j'obtiens toujours les messages suivants lors de la compilation
par la commande make World > World.log 2>&1
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: syntax error
before "FcFreeTypeCharIndex"
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: syntax error
before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:30: warning: type defaults
to `int' in declaration of `FcFreeTypeCharIndex'
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: ISO C forbids
data definition with no type or storage class
../../extras/fontconfig/fontconfig/fcfreetype.h:33: error: syntax error
before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:36: error: syntax error
before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:39: error: syntax error
before "FT_Face"
../../extras/fontconfig/fontconfig/fcfreetype.h:42: warning: type defaults
to `int' in declaration of `FT_Face'
../../extras/fontconfig/fontconfig/fcfreetype.h:42: error: syntax error
before "f"
In file included from fcatomic.c:49:
Les moteurs de recherche ne me donnent aucune réponse sur le problème
exposé.
Pouvez-vous éclairer ma lanterne .
Merci par avance.
Voici la fin du fichier World.log
-FIN DU FICHIER WORLD
LOG--
gcc -m32 -c -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -pedantic
-Wall -Wpointer-arith -Wundef -I../../lib/X11 -I../../include/extensions
-I../.. -I../../exports/include -Dlinux -D__i386__
-D_POSIX_C_SOURCE9309L -D_POSIX_SOURCE -D_XOPEN_SOURCE
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO
-DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-DMALLOC_0_RETURNS_NULL -fPIC Tri.c
rm -f libXrender.so.1.2.2~
+ cd .
+ gcc -m32 -o ./libXrender.so.1.2.2~ -shared -Wl,-soname,libXrender.so.1
Xrender.o AddTrap.o Color.o Composite.o Cursor.o Glyph.o Picture.o
FillRect.o FillRects.o Filter.o Poly.o Trap.o Tri.o -L../../exports/lib
-lXext -lX11 -lc
+ rm -f libXrender.so.1
+ ln -s libXrender.so.1.2.2 libXrender.so.1fcfreetype.h:30: error: syntax
error before "FcFreeTypeCharIndex"
+ rm -f ../../exports/lib/libXrender.so.1
+ cd ../../exports/lib
+ ln -s ../../lib/Xrender/libXrender.so.1 .
rm -f libXrender.so.1.2.2
mv -f libXrender.so.1.2.2~ libXrender.so.1.2.2
+ rm -f libXrender.so
+ ln -s libXrender.so.1.2.2 libXrender.so
rm -f ../../exports/lib/libXrender.so.1.2.2
cd ../../exports/lib && ln -s ../../lib/Xrender/libXrender.so.1.2.2 .
+ rm -f ../../exports/lsyntax error before
"FcFreeTypeCharIndex"ib/libXrender.so
+ cd ../../exports/lib
+ ln -s ../../lib/Xrender/libXrender.so .
rm -f xrender.pc
sh ../Xcursor/config-subst prefix="/usr/X11R6"
exec_prefix="/usr/X11R6/bin" libdir="/usr/X11R6/lib"
includedir="/usr/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
`/home/bertrand/Documents/prg/xfree86/xc/lib/Xrender'
making all in lib/fontconfig
make[4]: Entering directory
`/home/bertrand/Documents/prg/xfree86/xc/lib/fontconfig'
rm -f fcatomic.o
gcc -m32 -c -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -pedantic
-Wall -Wpointer-arith -Wundef -I/usr/include/freetype2
-I/usr/include/freetype2/config -I../../extras/fontconfig/src
-I../../extras/fontconfig -I../../exports/include/X11 -I../..
-I../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE9309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -DFUNCPROTO -DNARROWPROTO -DXTHREADS -D_REENTRANT
-DXUSE_MTSAFE_API -DFC_DEFAULT_FONTS='""' -DHAVE_EXPAT -DXFREE86_FT2
-DFONTCONFIG_PATH='"/etc/fonts"' -fPIC fcatomic.c
In file included from ../../extras/fontconfig/src/fcint.h:38,
from fcatomic.c:49:make World > World.log 2>&1
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: syntax error
before "FcFreeTypeCharIndex"
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: syntax error
before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:30: warning: type defaults
to `int' in declaration of `FcFreeTypeCharIndex'
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: ISO C forbids
data definition with no type or storage class
../../extras/fontconfig/fontconfig/fcfreetype.h:33: error: syntax error
before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:36: error: syntax error
before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:39: error: syntax error
before "FT_Face"
../../extras/fontconfig/fontconfig/fcfreetype.h:42: warning: type defaults
to `int' in declaration of `FT_Face'
../../extras/fontconfig/fontconfig/fcfreetype.h:42: error: syntax error
before "f"
In file included from fcatomic.c:49:
../../extras/fontconfig/src/fcint.h:496: error: syntax error before
"encoding"
fcatomic.c: In function `FcAtomicLock':
fcatomic.c:101: warning: unused variable `fd'
fcatomic.c:102: warning: unused variable `f'
make[4]: *** [fcatomic.o] Erreur 1
make[4]: Leaving directory
`/home/bertrand/Documents/prg/xfree86/xc/lib/fontconfig'
make[3]: *** [all] Erreur 2
make[3]: Leaving directory `/home/bertrand/Documents/prg/xfree86/xc/lib'
make[2]: *** [all] Erreur 2
make[2]: Leaving directory `/home/bertrand/Documents/prg/xfree86/xc'
make[1]: *** [World] Erreur 2
make[1]: Leaving directory `/home/bertrand/Documents/prg/xfree86/xc'
make: *** [World] Erreur 2
--
-
Bertrand GRONDIN
http://www.grondin.fr.fm ou http://www.droit-public.fr.fm
Droit des PTT, contentieux administratif et Fonction Publique
(Textes, dossiers et jurisprudence mis en ligne)
J'essaie de compiler XFree86. Après avoir installé différentes librairies
manquantes j'obtiens toujours les messages suivants lors de la compilation
par la commande make World > World.log 2>&1
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: syntax error
before "FcFreeTypeCharIndex"
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: syntax error
before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:30: warning: type defaults
to `int' in declaration of `FcFreeTypeCharIndex'
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: ISO C forbids
data definition with no type or storage class
../../extras/fontconfig/fontconfig/fcfreetype.h:33: error: syntax error
before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:36: error: syntax error
before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:39: error: syntax error
before "FT_Face"
../../extras/fontconfig/fontconfig/fcfreetype.h:42: warning: type defaults
to `int' in declaration of `FT_Face'
../../extras/fontconfig/fontconfig/fcfreetype.h:42: error: syntax error
before "f"
In file included from fcatomic.c:49:
Les moteurs de recherche ne me donnent aucune réponse sur le problème
exposé.
Pouvez-vous éclairer ma lanterne .
Merci par avance.
Voici la fin du fichier World.log
-FIN DU FICHIER WORLD
LOG--
gcc -m32 -c -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -pedantic
-Wall -Wpointer-arith -Wundef -I../../lib/X11 -I../../include/extensions
-I../.. -I../../exports/include -Dlinux -D__i386__
-D_POSIX_C_SOURCE9309L -D_POSIX_SOURCE -D_XOPEN_SOURCE
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO
-DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-DMALLOC_0_RETURNS_NULL -fPIC Tri.c
rm -f libXrender.so.1.2.2~
+ cd .
+ gcc -m32 -o ./libXrender.so.1.2.2~ -shared -Wl,-soname,libXrender.so.1
Xrender.o AddTrap.o Color.o Composite.o Cursor.o Glyph.o Picture.o
FillRect.o FillRects.o Filter.o Poly.o Trap.o Tri.o -L../../exports/lib
-lXext -lX11 -lc
+ rm -f libXrender.so.1
+ ln -s libXrender.so.1.2.2 libXrender.so.1fcfreetype.h:30: error: syntax
error before "FcFreeTypeCharIndex"
+ rm -f ../../exports/lib/libXrender.so.1
+ cd ../../exports/lib
+ ln -s ../../lib/Xrender/libXrender.so.1 .
rm -f libXrender.so.1.2.2
mv -f libXrender.so.1.2.2~ libXrender.so.1.2.2
+ rm -f libXrender.so
+ ln -s libXrender.so.1.2.2 libXrender.so
rm -f ../../exports/lib/libXrender.so.1.2.2
cd ../../exports/lib && ln -s ../../lib/Xrender/libXrender.so.1.2.2 .
+ rm -f ../../exports/lsyntax error before
"FcFreeTypeCharIndex"ib/libXrender.so
+ cd ../../exports/lib
+ ln -s ../../lib/Xrender/libXrender.so .
rm -f xrender.pc
sh ../Xcursor/config-subst prefix="/usr/X11R6"
exec_prefix="/usr/X11R6/bin" libdir="/usr/X11R6/lib"
includedir="/usr/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
`/home/bertrand/Documents/prg/xfree86/xc/lib/Xrender'
making all in lib/fontconfig
make[4]: Entering directory
`/home/bertrand/Documents/prg/xfree86/xc/lib/fontconfig'
rm -f fcatomic.o
gcc -m32 -c -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -pedantic
-Wall -Wpointer-arith -Wundef -I/usr/include/freetype2
-I/usr/include/freetype2/config -I../../extras/fontconfig/src
-I../../extras/fontconfig -I../../exports/include/X11 -I../..
-I../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE9309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -DFUNCPROTO -DNARROWPROTO -DXTHREADS -D_REENTRANT
-DXUSE_MTSAFE_API -DFC_DEFAULT_FONTS='""' -DHAVE_EXPAT -DXFREE86_FT2
-DFONTCONFIG_PATH='"/etc/fonts"' -fPIC fcatomic.c
In file included from ../../extras/fontconfig/src/fcint.h:38,
from fcatomic.c:49:make World > World.log 2>&1
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: syntax error
before "FcFreeTypeCharIndex"
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: syntax error
before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:30: warning: type defaults
to `int' in declaration of `FcFreeTypeCharIndex'
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: ISO C forbids
data definition with no type or storage class
../../extras/fontconfig/fontconfig/fcfreetype.h:33: error: syntax error
before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:36: error: syntax error
before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:39: error: syntax error
before "FT_Face"
../../extras/fontconfig/fontconfig/fcfreetype.h:42: warning: type defaults
to `int' in declaration of `FT_Face'
../../extras/fontconfig/fontconfig/fcfreetype.h:42: error: syntax error
before "f"
In file included from fcatomic.c:49:
../../extras/fontconfig/src/fcint.h:496: error: syntax error before
"encoding"
fcatomic.c: In function `FcAtomicLock':
fcatomic.c:101: warning: unused variable `fd'
fcatomic.c:102: warning: unused variable `f'
make[4]: *** [fcatomic.o] Erreur 1
make[4]: Leaving directory
`/home/bertrand/Documents/prg/xfree86/xc/lib/fontconfig'
make[3]: *** [all] Erreur 2
make[3]: Leaving directory `/home/bertrand/Documents/prg/xfree86/xc/lib'
make[2]: *** [all] Erreur 2
make[2]: Leaving directory `/home/bertrand/Documents/prg/xfree86/xc'
make[1]: *** [World] Erreur 2
make[1]: Leaving directory `/home/bertrand/Documents/prg/xfree86/xc'
make: *** [World] Erreur 2
--
-
Bertrand GRONDIN
http://www.grondin.fr.fm ou http://www.droit-public.fr.fm
Droit des PTT, contentieux administratif et Fonction Publique
(Textes, dossiers et jurisprudence mis en ligne)

Poser une question


Parce que tu t'es trompé, c'est xorg qu'il faut compiler ;-)
Plus sérieusement, il semble qu'il y ai une incohérence dans ta
configuration au niveau des options concernant les fontes,
particulièrement freetype.
Vérifie:
- que tu as bien la librairie de développement de freetype2 installée
(voire réinstalle là).
- que tu as bien sélectionné le support de freetype2 correctement dans
la config du build.
merci pour ces renseignements.
--
Bertrand GRONDIN
Droit du contentieux administratif, de la fonction publique
http://www.grondin.fr.fm ou http:/www.droit-public.fr.fm