On Mon, 12 Oct 2009, john blair wrote:
I am trying to cross compile xfree86-4.8.0 for arm. I am using code sourcery
compilers (2007q3-51).
I ran the following command make World
CROSSCOMPILEDIR=/opt/toolchain/gcc-2007q3-51/bin and got the following error
almost immediately:
......
if [ -n "/opt/toolchain/gcc-2007q3-51/bin" ] ; then \
/opt/toolchain/gcc-2007q3-51/bin/cc -E `./ccimake` \
-DCROSSCOMPILE_CPP imakemdep.h > imakemdep_cpp.h; \
else touch imakemdep_cpp.h; fi
cc -c -O -I../../include `./ccimake` imake.c
In file included from imake.c:289:
imakemdep.h:975: error: 'UTS_RELEASE' undeclared here (not in a function)
make[2]: *** [imake.o] Error 1
make[2]: Leaving directory `/opt/toolchain/src/xfree86-4.8.0/build/config/imake'
make[1]: *** [imake.proto] Error 2
make[1]: Leaving directory `/opt/toolchain/src/xfree86-4.8.0/build'
make: *** [World] Error 2
The patch below should fix this.
Marc.
*** cvs/xc/config/imake/imakemdep.h Mon Jun 11 08:30:00 2007
--- devel/xc/config/imake/imakemdep.h Tue Oct 13 15:13:35 2009
*************** char *cpp_argv[ARGUMENTS] = {
*** 831,836 ****
--- 831,839 ----
# if defined(linux) && defined (CROSSCOMPILE_CPP)
# define CROSS_UTS_SYSNAME "Linux"
# include <linux/version.h>
+ # ifndef UTS_RELEASE
+ # include <linux/utsrelease.h>
+ # endif
# define CROSS_UTS_RELEASE UTS_RELEASE
# endif
# elif defined(__CYGWIN__)
+----------------------------------+----------------------------------+
| Marc Aurele La France | work: 1-780-492-9310 |
| Academic Information and | fax: 1-780-492-1729 |
| Communications Technologies | email: [email protected] |
| 352 General Services Building +----------------------------------+
| University of Alberta | |
| Edmonton, Alberta | Standard disclaimers apply |
| T6G 2H1 | |
| CANADA | |
+----------------------------------+----------------------------------+
XFree86 developer and VP. ATI driver and X server internals.
_______________________________________________
XFree86 mailing list
[email protected]
http://XFree86.Org/mailman/listinfo/xfree86