Bug 14631 - Building lib module component libpciaccess: sys/endian.h: No such file or directory
Summary: Building lib module component libpciaccess: sys/endian.h: No such file or dir...
Status: RESOLVED DUPLICATE of bug 12533
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/pciaccess (show other bugs)
Version: 7.1 (2006.05)
Hardware: PowerPC Mac OS X (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-23 06:07 UTC by Peter Dyballa
Modified: 2008-11-08 15:08 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch to make lib/libpciaccess/src/common_interface.c compile on Mac OS X (574 bytes, patch)
2008-02-23 06:07 UTC, Peter Dyballa
no flags Details | Splinter Review

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.