Bug 20981

Summary: libX11 fails to cross-compile
Product: xorg Reporter: Sven Rebhan <OdinsHorse>
Component: Lib/otherAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED DUPLICATE QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Patch for makekeys
none
Patch for the XTRANS_CONNECTION_FLAGS macro none

Description Sven Rebhan 2009-03-31 12:53:25 UTC
Created attachment 24406 [details] [review]
Patch for makekeys

libX11 fails to cross-compile because makekeys needs to be called during the
build process. For cross-compilation this must fail as makekeys was compiled
with the target compiler. The following patch checks if we cross-compile and
creates a noinstallable xmakekeys which is used during build.

Another issue is that calling autoreconf fails because the XTRANS_CONNECTION_FLAGS macro is unknown. Patch attached also.

Created and tested against libX11-1.1.5.
Comment 1 Sven Rebhan 2009-03-31 12:54:18 UTC
Created attachment 24407 [details] [review]
Patch for the XTRANS_CONNECTION_FLAGS macro
Comment 2 Julien Cristau 2009-03-31 12:56:51 UTC
first issue is already fixed. second patch is wrong, you need the macros from xtrans when running aclocal.

*** This bug has been marked as a duplicate of bug 6669 ***
Comment 3 Alan Coopersmith 2009-03-31 12:58:59 UTC
The second patch should not be applied - XTRANS_CONNECTION_FLAGS is required
- you must have libxtrans correctly installed before building libX11 and
the xtrans.m4 installed should be in a path that your aclocal either finds
by default or you specify with the -I flag to the autoconf commands.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.