Versions: Gentoo Base System version 1.4.3.8p1 x11-base/xfree-4.3.0-r2 When compiling XFree4.3.0 I get the following error: ../../exports/include/X11/Intrinsic.h:2114: syntax error at '@' token It seems that in the Instrinsic.h file is some leading garbage (@Pe
Versions: Gentoo Base System version 1.4.3.8p1 x11-base/xfree-4.3.0-r2 When compiling XFree4.3.0 I get the following error: ../../exports/include/X11/Intrinsic.h:2114: syntax error at '@' token It seems that in the Instrinsic.h file is some leading garbage (@PeÚ) at line nr. 2114: --------- snip --------- extern XtErrorMsgHandler XtAppSetWarningMsgHandler( #if NeedFunctionPrototypes XtAppContext /* app_context */, @PeÚXtErrorMsgHandler /* handler */ #endif ); --------- snip --------- Here is some compilation output: ------------------------------------------------------------------------------------------ Middle of Compilation: make[4]: Entering directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/programs/xf86dga' gcc -m32 -O3 -O3 -O3 -O3 -march=pentium3 -pipe -ansi -pedantic -Wno-return-type -w -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 -c -o dga.o dga.c In file included from dga.c:4: ../../exports/include/X11/Intrinsic.h:2114: syntax error at '@' token ../../exports/include/X11/Intrinsic.h:2114: parse error before "Pe" ../../exports/include/X11/Intrinsic.h:2114: stray '\332' in program make[4]: *** [dga.o] Error 1 make[4]: Target `all' not remade because of errors. rm -f dga._man /usr/bin/cpp -undef -traditional -D__apploaddir__=/usr/X11R6/lib/X11/app-defaults -D__filemansuffix__=5x -D__libmansuffix__=3x -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__projectroot__=/usr/X11R6 -D__xorgversion__='"Release 6.6" "X Version 11"' -D__vendorversion__="\"Version `echo 4 3 0 | sed -e 's/ /./g' -e 's/^/Version /'`\" XFree86" <dga.man | sed -e '/^# *[0-9][0-9]* *.*$/d' -e '/^XCOMM$/s//#/' -e '/^XCOMM[^a-zA-Z0-9_]/s/^XCOMM/#/' >dga._man make[4]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/programs/xf86dga' making all in programs/xedit... make[4]: Entering directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/programs/xedit' gcc -m32 -O3 -O3 -O3 -O3 -march=pentium3 -pipe -ansi -pedantic -Wno-return-type -w -I. -Ilisp/re -I- -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 -DNEED_REALPATH -c -o xedit.o xedit.c In file included from ../../exports/include/X11/IntrinsicP.h:53, from xedit.c:29: ../../exports/include/X11/Intrinsic.h:2114: syntax error at '@' token ../../exports/include/X11/Intrinsic.h:2114: parse error before "Pe" ../../exports/include/X11/Intrinsic.h:2114: stray '\332' in program make[4]: *** [xedit.o] Error 1 gcc -m32 -O3 -O3 -O3 -O3 -march=pentium3 -pipe -ansi -pedantic -Wno-return-type -w -I. -Ilisp/re -I- -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 -DNEED_REALPATH -c -o commands.o commands.c In file included from xedit.h:32, from commands.c:31: ../../exports/include/X11/Intrinsic.h:2114: syntax error at '@' token ../../exports/include/X11/Intrinsic.h:2114: parse error before "Pe" ../../exports/include/X11/Intrinsic.h:2114: stray '\332' in program make[4]: *** [commands.o] Error 1 gcc -m32 -O3 -O3 -O3 -O3 -march=pentium3 -pipe -ansi -pedantic -Wno-return-type -w -I. -Ilisp/re -I- -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 -DNEED_REALPATH -c -o util.o util.c In file included from xedit.h:32, from util.c:31: ../../exports/include/X11/Intrinsic.h:2114: syntax error at '@' token ../../exports/include/X11/Intrinsic.h:2114: parse error before "Pe" ../../exports/include/X11/Intrinsic.h:2114: stray '\332' in program make[4]: *** [util.o] Error 1 ------------------------------------------------------------------------------------------ End of Compilation: make[3]: Entering directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/lib/Xext' install -c -m 0755 libXext.so.6.4 /var/tmp/portage/xfree-4.3.0-r2/image//usr/X11R6/lib + rm -f /var/tmp/portage/xfree-4.3.0-r2/image//usr/X11R6/lib/libXext.so.6 + ln -s libXext.so.6.4 /var/tmp/portage/xfree-4.3.0-r2/image//usr/X11R6/lib/libXext.so.6 + rm -f /var/tmp/portage/xfree-4.3.0-r2/image//usr/X11R6/lib/libXext.so + ln -s libXext.so.6.4 /var/tmp/portage/xfree-4.3.0-r2/image//usr/X11R6/lib/libXext.so install -c -m 0644 libXext.a /var/tmp/portage/xfree-4.3.0-r2/image//usr/X11R6/lib ranlib /var/tmp/portage/xfree-4.3.0-r2/image//usr/X11R6/lib/libXext.a install in lib/Xext done make[3]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/lib/Xext' installing in lib/Xt... make[3]: Entering directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/lib/Xt' rm -f ActionHook.o unshared/ActionHook.o gcc -m32 -c -ansi -pedantic -Wno-return-type -w -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 -DUSE_SNPRINTF -DLIBXT -mno-mmx ActionHook.c -o unshared/ActionHook.o In file included from IntrinsicP.h:53, from IntrinsicI.h:55, from ActionHook.c:69: ../../exports/include/X11/Intrinsic.h:2114: syntax error at '@' token ../../exports/include/X11/Intrinsic.h:2114: parse error before numeric constant ../../exports/include/X11/Intrinsic.h:2114: stray '\377' in program ../../exports/include/X11/Intrinsic.h:2114: stray '\332' in program make[3]: *** [ActionHook.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/lib/Xt' make[2]: *** [install] Error 2 make[2]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/lib' make[1]: *** [install] Error 2 make[1]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc' make: *** [install] Error 2 !!! ERROR: x11-base/xfree-4.3.0-r2 failed. !!! Function src_install, Line 501, Exitcode 2 !!! (no error message) ------------------------------------------------------------------------------------------ Intrinsic.h /************************************************************* * * Error Handling * ************************************************************/ extern XtErrorMsgHandler XtAppSetErrorMsgHandler( #if NeedFunctionPrototypes XtAppContext /* app_context */, XtErrorMsgHandler /* handler */ #endif ); extern void XtSetErrorMsgHandler( /* obsolete */ #if NeedFunctionPrototypes XtErrorMsgHandler /* handler */ #endif ); extern XtErrorMsgHandler XtAppSetWarningMsgHandler( #if NeedFunctionPrototypes XtAppContext /* app_context */, @PeÚXtErrorMsgHandler /* handler */ #endif ); extern void XtSetWarningMsgHandler( /* obsolete */ #if NeedFunctionPrototypes XtErrorMsgHandler /* handler */ #endif ); extern void XtAppErrorMsg( #if NeedFunctionPrototypes XtAppContext /* app_context */, _Xconst _XtString /* name */, _Xconst _XtString /* type */, _Xconst _XtString /* class */, _Xconst _XtString /* default */, String* /* params */, Cardinal* /* num_params */ #endif );
Problem solved ! It seems that the file was messed up during copying or something else. When I deleted the temporary directory and started the build again it worked. Sorry for all the fuss.
closing