Bug 14631

Summary: Building lib module component libpciaccess: sys/endian.h: No such file or directory
Product: xorg Reporter: Peter Dyballa <Peter_Dyballa>
Component: Lib/pciaccessAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED DUPLICATE QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: esigra
Version: 7.1 (2006.05)   
Hardware: PowerPC   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Patch to make lib/libpciaccess/src/common_interface.c compile on Mac OS X none

Description Peter Dyballa 2008-02-23 06:07:23 UTC
Created attachment 14520 [details] [review]
Patch to make lib/libpciaccess/src/common_interface.c compile on Mac OS X

On Mac OS X (10.4.11) this file produces errors:

	common_interface.c: In function 'pci_device_cfg_read_u16':
	common_interface.c:473: warning: implicit declaration of function 'le16toh'
	common_interface.c:473: warning: nested extern declaration of 'le16toh'
	common_interface.c: In function 'pci_device_cfg_read_u32':
	common_interface.c:489: warning: implicit declaration of function 'le32toh'
	common_interface.c:489: warning: nested extern declaration of 'le32toh'
	common_interface.c: In function 'pci_device_cfg_write_u16':
	common_interface.c:555: warning: implicit declaration of function 'htole16'
	common_interface.c:555: warning: nested extern declaration of 'htole16'
	common_interface.c: In function 'pci_device_cfg_write_u32':
	common_interface.c:572: warning: implicit declaration of function 'htole32'
	common_interface.c:572: warning: nested extern declaration of 'htole32'
	make[2]: *** [common_interface.lo] Error 1
	make[1]: *** [all-recursive] Error 1
	make: *** [all] Error 2

The attached patch makes it compile.
Comment 1 Adam Jackson 2008-03-24 07:34:18 UTC
This isn't really a bug.  libpciaccess should only be needed if you're building the xfree86 DDX, which isn't the case on OSX.
Comment 2 Jeremy Huddleston Sequoia 2008-11-08 15:08:50 UTC

*** This bug has been marked as a duplicate of bug 12533 ***

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.