Bug 2983

Summary: xlib_libX11 build failed
Product: buildroot Reporter: meegoTeam <miroslav.ignjatovic>
Component: OtherAssignee: Thomas Petazzoni <thomas.petazzoni>
Status: RESOLVED FIXED    
Severity: normal CC: buildroot, miroslav.ignjatovic
Priority: P5    
Version: 2010.05   
Target Milestone: 2010.11   
Hardware: PC   
OS: Linux   
Host: PC Linux Target: mipsel
Build:

Description meegoTeam 2010-12-17 09:42:16 UTC
Build stops for cross-building on libX11. release 2010.11
A minor bug (maybe copy-paste error).

file(buildroot-2010.11/package/x11r7/xlib_libX11/xlib_libX11.mk)
-- before -----------------------------------------------------------
define XLIB_LIBX11_BUILD_MAKEKEYS_FOR_HOST
	cd $(@D)/src/util && $(HOSTCC) $(HOSTCFLAGS) \
		-I$(STAGING_DIR)/usr/include -o makekeys makekeys.c
endef
-- after ------------------------------------------------------------
define XLIB_LIBX11_BUILD_MAKEKEYS_FOR_HOST
	cd $(@D)/src/util && $(HOSTCC) $(HOSTCFLAGS) \
		 -o makekeys makekeys.c
endef
---------------------------------------------------------------------

-I$(STAGING_DIR)/usr/include should be replaced with "maybe" something else.
In our case just removing it, solved the problem.
Comment 1 meegoTeam 2010-12-17 09:44:18 UTC
The build was cross compiled for mipsel architecture, using CodeSourcery's toolchain
Comment 2 Thomas Petazzoni 2010-12-21 11:01:45 UTC
Bug reproduced, fix written, going to send to the list soon.
Comment 3 Peter Korsgaard 2010-12-21 13:52:57 UTC
Fix by Thomas in git, thanks.