6.9/7.0 requested: [Bug 14631] Building lib module component libpciaccess: sys/endian.h: No such file or directory : [Attachment 14520] Patch to make lib/libpciaccess/src/common_interface.c compile on Mac OS X

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Feb 23 06:07:23 PST 2008


Peter Dyballa <Peter_Dyballa at Freenet.DE> has asked  for 6.9/7.0:
Bug 14631: Building lib module component libpciaccess: sys/endian.h: No such
file or directory
http://bugs.freedesktop.org/show_bug.cgi?id=14631

Attachment 14520: Patch to make lib/libpciaccess/src/common_interface.c compile
on Mac OS X
http://bugs.freedesktop.org/attachment.cgi?id=14520&action=edit

------- Additional Comments from Peter Dyballa <Peter_Dyballa at Freenet.DE>
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.


More information about the release-wranglers mailing list