Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 452180 - x11-libs/libdrm-2.4.40 - .../work/libdrm-2.4.40/intel/intel_bufmgr_gem.c:2480:11: error: 'O_CLOEXEC' undeclared (first use in this function)
Summary: x11-libs/libdrm-2.4.40 - .../work/libdrm-2.4.40/intel/intel_bufmgr_gem.c:2480...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-15 07:17 UTC by Jeffrey Ratcliffe
Modified: 2017-12-03 14:25 UTC (History)
0 users

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


Attachments
patch (file_452180.txt,1.11 KB, patch)
2015-11-13 15:28 UTC, Jeffrey Ratcliffe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Ratcliffe 2013-01-15 07:17:48 UTC
make[2]: Entering directory `/scratch/portage/x11-libs/libdrm-2.4.40/work/libdrm-2.4.40_build/intel'
  CC     intel_bufmgr.lo
  CC     intel_bufmgr_fake.lo
  CC     intel_bufmgr_gem.lo
  CC     intel_decode.lo
  CC     mm.lo
  CC     test_decode.o
/scratch/portage/x11-libs/libdrm-2.4.40/work/libdrm-2.4.40/intel/intel_bufmgr_gem.c: In function 'drm_intel_bo_gem_export_to_prime':
/scratch/portage/x11-libs/libdrm-2.4.40/work/libdrm-2.4.40/intel/intel_bufmgr_gem.c:2480:11: error: 'O_CLOEXEC' undeclared (first use in this function)
/scratch/portage/x11-libs/libdrm-2.4.40/work/libdrm-2.4.40/intel/intel_bufmgr_gem.c:2480:11: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [intel_bufmgr_gem.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/scratch/portage/x11-libs/libdrm-2.4.40/work/libdrm-2.4.40_build/intel'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/scratch/portage/x11-libs/libdrm-2.4.40/work/libdrm-2.4.40_build'
make: *** [all] Error 2

$ emerge --info =x11-libs/libdrm-2.4.40
Portage 2.2.01.21476-prefix (prefix/linux/amd64, gcc-4.6.3, unavailable, 2.6.18-238.9.1.el5 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.18-238.9.1.el5-x86_64-Intel-R-_Xeon-R-_CPU_E5450_@_3.00GHz-with-redhat-5.6-Tikanga
Timestamp of tree: Wed, 09 Jan 2013 22:37:35 +0000
ld GNU ld (Linux/GNU Binutils) 2.20.51.0.11.20100810
app-shells/bash:          4.2_p39-r1::gentoo_prefix
dev-java/java-config:     2.1.11-r3::gentoo_prefix
dev-lang/python:          2.7.3-r2::gentoo_prefix, 3.3.0::gentoo_prefix
dev-util/cmake:           2.8.10.2-r1::gentoo_prefix
dev-util/pkgconfig:       0.27.1::gentoo_prefix
sys-devel/autoconf:       2.13::gentoo_prefix, 2.69::gentoo_prefix
sys-devel/automake:       1.12.4::gentoo_prefix
sys-devel/binutils:       2.23::gentoo_prefix
sys-devel/gcc:            4.6.3::gentoo_prefix
sys-devel/gcc-config:     1.8-r00.1::gentoo_prefix
sys-devel/libtool:        2.4.2::gentoo_prefix
sys-devel/make:           3.82-r4::gentoo_prefix
sys-kernel/linux-headers: 3.7::gentoo_prefix
Repositories: gentoo_prefix local-repo
ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/home/jeff/amd64-linux/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/home/jeff/amd64-linux/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/jeff/amd64-linux/"
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="/scratch"
PORTDIR="/home/jeff/amd64-linux/usr/portage"
PORTDIR_OVERLAY="/home/jeff/amd64-linux/usr/local/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="X amd64 bash-completion berkdb bzip2 cairo cli cracklib crypt cxx djvu dri emacs fontconfig fortran gdbm gif gtk iconv ipv6 jpeg mmx modules mudflap ncurses nls nptl openmp pcre png pppd prefix readline session sse sse2 ssl svg tcpd tiff truetype unicode zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="glibc" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-01-15 16:42:21 UTC
I'd say you simply need a newer kernel, kernel headers and libc, but maybe prefix@ people want to help you out.
Comment 2 Jeffrey Ratcliffe 2015-11-13 15:28:03 UTC
Created attachment 416856 [details, diff]
patch

This fixes things for me, also for versions up to 2.4.65-r1
Comment 3 Fabian Groffen gentoo-dev 2017-12-03 14:25:52 UTC
Sorry, closing this bug, it would have to be reevaluated.