I tried building XFree86 4.5.0 RC2 from source and ran into the compile problem below:
------------START---------------------
gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wundef -fno-merge-constants -I. -I.. -I../../../../include/fonts -I../../include -I../../../../exports/include/X11 -I../../../../programs/Xserver/include -I../../../../extras/freetype2/include -I../../../../extras/freetype2/src/base -I../../../../extras/freetype2/src/gzip -I../../../../extras/freetype2/src/lzw -I../../../../extras/freetype2/src/raster -I../../../../extras/freetype2/src/sfnt -I../../../../extras/freetype2/src/truetype -I../../../../extras/freetype2/src/cff -I../../../../extras/freetype2/src/type1 -I../../../../extras/freetype2/src/psaux -I../../../../extras/freetype2/src/psnames -I../../../../extras/freetype2/src/pshinter -I../../../../extras/freetype2/src/autohint -I../../../../extras/freetype2/src/bdf -I../../../../extras/freetype2/src/pcf -I../../../../exports/include -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 -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPIXPRIV -DPANORAMIX -DRENDER -DRANDR -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -DNEED_STRLCAT -DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DXFree86Module -DFONTMODULE -DXFREE86_FT2 -c ftbase.c
In file included from ftbase.c:26:
../../../../extras/freetype2/src/base/ftcalc.c:302: warning: no previous prototype for 'FT_Add64'
../../../../extras/freetype2/src/base/ftcalc.c:473: warning: no previous prototype for 'FT_MulTo64'
../../../../extras/freetype2/src/base/ftcalc.c:500: warning: no previous prototype for 'FT_Div64by32'
In file included from ftbase.c:30:
../../../../extras/freetype2/src/base/ftobjs.c:1308: error: parse error before '/' token
../../../../extras/freetype2/src/base/ftobjs.c:1326: warning: type defaults to `int' in declaration of `error'
../../../../extras/freetype2/src/base/ftobjs.c:1326: warning: redundant redeclaration of 'error'
../../../../extras/freetype2/src/base/ftobjs.c:1320: warning: previous declaration of 'error' was here
../../../../extras/freetype2/src/base/ftobjs.c:1326: error: `library' undeclared here (not in a function)
../../../../extras/freetype2/src/base/ftobjs.c:1326: error: `stream' undeclared here (not in a function)
../../../../extras/freetype2/src/base/ftobjs.c:1326: error: `resource_offset' undeclared here (not in a function)
../../../../extras/freetype2/src/base/ftobjs.c:1327: error: initializer element is not constant
../../../../extras/freetype2/src/base/ftobjs.c:1327: warning: data definition has no type or storage class
../../../../extras/freetype2/src/base/ftobjs.c:1328: error: parse error before "if"
../../../../extras/freetype2/src/base/ftobjs.c:1331: warning: type defaults to `int' in declaration of `error'
../../../../extras/freetype2/src/base/ftobjs.c:1331: error: redefinition of 'error'
../../../../extras/freetype2/src/base/ftobjs.c:1326: error: previous definition of 'error' was here
../../../../extras/freetype2/src/base/ftobjs.c:1334: error: initializer element is not constant
../../../../extras/freetype2/src/base/ftobjs.c:1334: warning: data definition has no type or storage class
../../../../extras/freetype2/src/base/ftobjs.c:1335: error: parse error before "if"
../../../../extras/freetype2/src/base/ftobjs.c:1339: error: parse error before '(' token
../../../../extras/freetype2/src/base/ftobjs.c:1343: warning: type defaults to `int' in declaration of `error'
../../../../extras/freetype2/src/base/ftobjs.c:1343: error: redefinition of 'error'
../../../../extras/freetype2/src/base/ftobjs.c:1331: error: previous definition of 'error' was here
../../../../extras/freetype2/src/base/ftobjs.c:1343: error: redefinition of 'error'
../../../../extras/freetype2/src/base/ftobjs.c:1331: error: previous definition of 'error' was here
../../../../extras/freetype2/src/base/ftobjs.c:1346: error: initializer element is not constant
../../../../extras/freetype2/src/base/ftobjs.c:1346: warning: data definition has no type or storage class
../../../../extras/freetype2/src/base/ftobjs.c:1347: error: parse error before "if"
../../../../extras/freetype2/src/base/ftobjs.c:1351: error: parse error before '(' token
../../../../extras/freetype2/src/base/ftobjs.c: In function `IsMacBinary':
../../../../extras/freetype2/src/base/ftobjs.c:1401: warning: implicit declaration of function `IsMacResource'
../../../../extras/freetype2/src/base/ftobjs.c:1401: warning: nested extern declaration of `IsMacResource'
../../../../extras/freetype2/src/base/ftobjs.c: In function `load_face_in_embedded_rfork':
../../../../extras/freetype2/src/base/ftobjs.c:1455: warning: nested extern declaration of `IsMacResource'
../../../../extras/freetype2/src/base/ftobjs.c:1401: warning: redundant redeclaration of 'IsMacResource'
../../../../extras/freetype2/src/base/ftobjs.c:1401: warning: previous implicit declaration of 'IsMacResource' was here
../../../../extras/freetype2/src/base/ftobjs.c: In function `load_mac_face':
../../../../extras/freetype2/src/base/ftobjs.c:1510: warning: nested extern declaration of `IsMacResource'
../../../../extras/freetype2/src/base/ftobjs.c:1401: warning: redundant redeclaration of 'IsMacResource'
../../../../extras/freetype2/src/base/ftobjs.c:1401: warning: previous implicit declaration of 'IsMacResource' was here
ftbase.c: At top level:
../../../../extras/freetype2/src/base/ftobjs.c:1144: warning: 'Mac_Read_POST_Resource' defined but not used
../../../../extras/freetype2/src/base/ftobjs.c:1260: warning: 'Mac_Read_sfnt_Resource' defined but not used
make[6]: *** [ftbase.o] Error 1
make[6]: Leaving directory `/build/xc/lib/font/FreeType/module'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/build/xc/lib/font/FreeType'
make[4]: *** [FreeType] Error 2
make[4]: Leaving directory `/build/xc/lib/font'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/build/xc/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/build/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/build/xc'
make: *** [World] Error 2
real 180m44.038s user 74m2.828s sys 6m49.275s tom@linux:~/build/xc$
--------------------------END-----------------------------------
I'm running 4.5.0 RC1 now and it built without problems. I DO have Freetype2 installed:
tom@linux:~/build/xc$ pkg-config --modversion freetype2 9.7.3 tom@linux:~/build/xc$
so perhaps that's related to the compile errors above.
Any other ideas?
Thanks!
Peace...
Tom
Nevermind this problem. I started from scratch and uncompressed the tarball again and this time the build ran cleanly. Go figure. :)
Peace...
Tom _______________________________________________ XFree86 mailing list XFree86@xxxxxxxxxxx http://XFree86.Org/mailman/listinfo/xfree86