Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 416983

Summary: x11-libs/libpciaccess fails to build on OS X due to missing sys/endian.h
Product: Gentoo/Alt Reporter: Benn Snyder <benn.snyder>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED WONTFIX    
Severity: normal CC: x11
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: OS X   
URL: https://bugs.freedesktop.org/show_bug.cgi?id=12533
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Adds OS X support to the endian checks in common_interface.c

Description Benn Snyder 2012-05-21 22:05:26 UTC
x11-libs/libpciaccess tries to include sys/endian.h, which does not exist on OS X.  This results in a build failure.

Reproducible: Always

Steps to Reproduce:
1. emerge libpciaccess
Actual Results:  
common_interface.c:72:24: error: sys/endian.h: No such file or directory
...
 * ERROR: x11-libs/libpciaccess-0.12.1 failed (compile phase):
 *   emake failed

Expected Results:  
Successful compilation

emerge --info
Portage 2.2.01.20430-prefix (prefix/darwin/macos/10.5/x86, gcc-4.2.1, unavailable, 9.8.0 i386)
=================================================================
System uname: Darwin-9.8.0-i386-32bit
Timestamp of tree: Mon, 21 May 2012 18:24:09 +0000
distcc 2.18.5-Apple.1 i386-apple-darwin9.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:      4.2_p28::gentoo_prefix
dev-lang/python:      2.7.3-r2::gentoo_prefix
dev-util/pkgconfig:   0.26::gentoo_prefix
sys-devel/autoconf:   2.68::gentoo_prefix
sys-devel/automake:   1.11.5::gentoo_prefix
sys-devel/gcc-config: 1.5-r2::gentoo_prefix
sys-devel/libtool:    2.4.2::gentoo_prefix
sys-devel/make:       3.82::gentoo_prefix
Repositories: gentoo_prefix local-overlay
Installed sets: 
ACCEPT_KEYWORDS="~x86-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-apple-darwin9"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-apple-darwin9"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/Users/amre/gentoo-prefix/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j4 --load-average=6 --keep-going"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles force-prefix news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-dead_strip_dylibs"
LINGUAS="en_US"
MAKEOPTS="-j12 -l7.8"
PKGDIR="/Users/amre/gentoo-prefix/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/amre/gentoo-prefix/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/Users/amre/gentoo-prefix/var/tmp"
PORTDIR="/Users/amre/gentoo-prefix/usr/portage"
PORTDIR_OVERLAY="usr/local/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua bash-completion coreaudio cracklib cxx mmx mmxext modules ncurses objc objc++ offensive prefix readline sse sse2 ssl threads x86-macos zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Benn Snyder 2012-05-21 22:07:00 UTC
Created attachment 312603 [details, diff]
Adds OS X support to the endian checks in common_interface.c
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-06-01 03:40:34 UTC
Please also submit this patch upstream to the xorg-devel mailing list or https://bugs.freedesktop.org/ and provide the link here.
Comment 3 Matt Turner gentoo-dev 2015-09-05 07:07:43 UTC
libpciaccess is for the DDX, which isn't intended to work on OS X.