Re: cross compile xfree86-4.8.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 15 Oct 2009, john blair wrote:
--- On Thu, 10/15/09, Marc Aurele La France <tsi@xxxxxxxxxxx> wrote:
Please use the following instead of the previous change
...

*** cvs/xc/config/imake/imakemdep.h    Mon
Jun 11 08:30:00 2007
--- devel/xc/config/imake/imakemdep.h    Thu
Oct 15 09:56:47 2009
*************** char *cpp_argv[ARGUMENTS] = {
*** 831,837 ****
  #  if defined(linux) && defined
??> (CROSSCOMPILE_CPP)
  #   define CROSS_UTS_SYSNAME "Linux"
  #   include <linux/version.h>
! #   define CROSS_UTS_RELEASE UTS_RELEASE
  # endif
  # elif defined(__CYGWIN__)
  #  define DEFAULT_OS_MAJOR_REV
??>     "r %[0-9]"
--- 831,839 ----
  #  if defined(linux) && defined
??> (CROSSCOMPILE_CPP)
  #   define CROSS_UTS_SYSNAME "Linux"
  #   include <linux/version.h>
! #   ifdef UTS_RELEASE
! #    define CROSS_UTS_RELEASE UTS_RELEASE
! #   endif
  # endif
  # elif defined(__CYGWIN__)
  #  define DEFAULT_OS_MAJOR_REV
??>     "r %[0-9]"

This will cause the release string to be nullified, which
is what would happen with other cross-compilation
environments that don't provide release information (or, for
that matter, other `uname` strings).

Thanks for the quick reply and patch Marc. Your patch fixes the UTS_RELEASE issue.
There is another issue I am facing during the compilation:
fbdevhw.c: In function 'calculateFbmem_len':
fbdevhw.c:548: error: 'PAGE_MASK' undeclared (first use in this function)
fbdevhw.c:548: error: (Each undeclared identifier is reported only once
fbdevhw.c:548: error: for each function it appears in.)
fbdevhw.c: In function 'fbdevHWMapVidmem':
fbdevhw.c:575: error: 'PAGE_MASK' undeclared (first use in this function)
fbdevhw.c: In function 'fbdevHWMapMMIO':
fbdevhw.c:620: error: 'PAGE_MASK' undeclared (first use in this function)
fbdevhw.c: In function 'fbdevHWUnmapMMIO':
fbdevhw.c:644: error: 'PAGE_MASK' undeclared (first use in this function)
make[7]: *** [fbdevhw.o] Error 1
make[7]: Leaving directory `/opt/toolchain/src/xfree86-4.8.0/build/programs/Xserver/hw/xfree86/fbdevhw'

The contents of asm/page.h for code sourcery toolchain (the later versions of toolchain do not even have asm/page.h)is
#ifndef _ASMARM_PAGE_H
#define _ASMARM_PAGE_H
#endif

Please try the attached.

Marc.

+----------------------------------+----------------------------------+
|  Marc Aurele La France           |  work:   1-780-492-9310          |
|  Academic Information and        |  fax:    1-780-492-1729          |
|    Communications Technologies   |  email:  tsi@xxxxxxxxxxx         |
|  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.

Attachment: fbdevhw.diff.gz
Description: GNU Zip compressed data


[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux