Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416983 - x11-libs/libpciaccess fails to build on OS X due to missing sys/endian.h
Summary: x11-libs/libpciaccess fails to build on OS X due to missing sys/endian.h
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-21 22:05 UTC by Benn Snyder
Modified: 2015-09-05 07:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Adds OS X support to the endian checks in common_interface.c (common-interface-endian-osx.patch,724 bytes, patch)
2012-05-21 22:07 UTC, Benn Snyder
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.