Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580392 - media-libs/mesa-11.2.1 : /.../gbm.c:120:11: error: implicit declaration of function ‘major’ [-Werror=implicit-function-declaration]
Summary: media-libs/mesa-11.2.1 : /.../gbm.c:120:11: error: implicit declaration of fu...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
: 579990 581618 (view as bug list)
Depends on:
Blocks: glibc-sysmacros
  Show dependency tree
Reported: 2016-04-18 08:16 UTC by Toralf Förster
Modified: 2016-08-01 23:26 UTC (History)
2 users (show)

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

emerge-history.txt (emerge-history.txt,590.77 KB, text/plain)
2016-04-18 08:16 UTC, Toralf Förster
environment (environment,175.14 KB, text/plain)
2016-04-18 08:16 UTC, Toralf Förster
media-libs:mesa-11.2.1:20160417-222825.log.bz2 (media-libs:mesa-11.2.1:20160417-222825.log.bz2,40.56 KB, application/x-bzip2)
2016-04-18 08:16 UTC, Toralf Förster

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2016-04-18 08:16:40 UTC
This bug report feeds bug #575232 (sys-libs/glibc-2.23.r1 breakage).

libtool: compile:  x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"11.2.1\" "-DPACKAGE_STRING=\"Mesa 11.2.1\"" "-DPACKAGE_BUGREPORT=\"\"" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"11.2.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DHAVE___BUILTIN_BSWAP32=1 -DHAVE___BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1 -DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1 -DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1 -DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1 -DHAVE_FUNC_ATTRIBUTE_CONST=1 -DHAVE_FUNC_ATTRIBUTE_FLATTEN=1 -DHAVE_FUNC_ATTRIBUTE_FORMAT=1 -DHAVE_FUNC_ATTRIBUTE_MALLOC=1 -DHAVE_FUNC_ATTRIBUTE_PACKED=1 -DHAVE_FUNC_ATTRIBUTE_PURE=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1 -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1 -DHAVE_DLADDR=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD=1 -DHAVE_SHA1_IN_LIBNETTLE=1 -I. -I/var/tmp/portage/media-libs/mesa-11.2.1/work/mesa-11.2.1/src/gbm -D_OS_UNIX=1 -DMODULEDIR=\"/usr/lib64/gbm\" -I/var/tmp/portage/media-libs/mesa-11.2.1/work/mesa-11.2.1/include -I/var/tmp/portage/media-libs/mesa-11.2.1/work/mesa-11.2.1/src/loader -I/var/tmp/portage/media-libs/mesa-11.2.1/work/mesa-11.2.1/src/gbm/main -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -DUSE_SSE41 -DNDEBUG -DTEXTURE_FLOAT_ENABLED -DUSE_X86_64_ASM -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DHAVE_SHA1 -DGLX_USE_DRM -DHAVE_LIBUDEV -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_ALIAS -DHAVE_DRI3 -DHAVE_MINCORE -DHAVE_LLVM=0x0307 -DMESA_LLVM_VERSION_PATCH=1 -fvisibility=hidden -DDEFAULT_DRIVER_DIR=\"/usr/lib64/dri\" -I/usr/include/libdrm -march=native -O2 -pipe -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-math-errno -fno-trapping-math -fno-builtin-memcmp -c /var/tmp/portage/media-libs/mesa-11.2.1/work/mesa-11.2.1/src/gbm/main/gbm.c  -fPIC -DPIC -o main/.libs/gbm.o
/var/tmp/portage/media-libs/mesa-11.2.1/work/mesa-11.2.1/src/gbm/main/gbm.c: In function ‘_gbm_mesa_get_device’:
/var/tmp/portage/media-libs/mesa-11.2.1/work/mesa-11.2.1/src/gbm/main/gbm.c:120:11: error: implicit declaration of function ‘major’ [-Werror=implicit-function-declaration]
       if (major(dev) == major(buf.st_rdev) &&

$ cat emerge-info.txt

  This is an unstable amd64 chroot image (named amd64-kde-unstable_20160403-233402) at a hardened host acting as a tinderbox.


  make.conf: USE="mmx sse sse2 pax_kernel -cdinstall -oci8 -bindist -apache cgoups consolekit csc egl ffmpeg -ftp gstreamer gui kerberos -libkms -mng mod multimedia multitarget mysql mysqli openexr opengl pdo postscript qemu scrypt server -sockets sse4_2 ssl svg system-cairo system-libvpx tcl -theora tools uml v4l -vaapi xvmc"

Portage 2.2.28 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/kde, gcc-5.3.0, glibc-2.23-r1, 4.4.7-hardened x86_64)
System uname: Linux-4.4.7-hardened-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16157888 total,   7355508 free
KiB Swap:   16777212 total,  16736936 free
Timestamp of repository gentoo: Sun, 17 Apr 2016 21:52:45 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.3.5-r7::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r1::gentoo

    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: 1

    location: /usr/local/portage
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /opt/openfire/resources/security/ /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/qpsmtpd/plugins /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb /var/lib/redmine/config /var/rancid/.cloginrc /var/yp/Makefile"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /var/lib/redmine/config/locales /var/lib/redmine/config/settings.yml"
CXXFLAGS="-march=native -O2 -pipe"
EMERGE_DEFAULT_OPTS="--deep --verbose-conflicts --color=n --nospinner --tree --quiet-build --accept-properties=-interactive --accept-restrict=-fetch"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" rsync:// rsync://"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cgoups cli consolekit cracklib crypt csc cups cxx dbus declarative dri dts dvd dvdr egl emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gpm gstreamer gtk gui iconv ipv6 jpeg kde kerberos kipi lcms ldap libnotify mad mmx mmxext mod modules mp3 mp4 mpeg multilib multimedia multitarget mysql mysqli ncurses nls nptl ogg openexr opengl openmp pam pango pax_kernel pcre pdf pdo phonon plasma png policykit postscript ppds qemu qt3support qt4 readline scrypt sdl seccomp semantic-desktop server session spell sse sse2 sse4_2 ssl startup-notification svg system-cairo system-libvpx tcl tcpd tiff tools truetype udev udisks uml unicode upower usb v4l vorbis wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib" ABI_X86="64" 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" 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox 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" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" 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"
Comment 1 Toralf Förster gentoo-dev 2016-04-18 08:16:46 UTC
Created attachment 431056 [details]
Comment 2 Toralf Förster gentoo-dev 2016-04-18 08:16:49 UTC
Created attachment 431058 [details]
Comment 3 Toralf Förster gentoo-dev 2016-04-18 08:16:51 UTC
Created attachment 431060 [details]
Comment 4 Alex Xu (Hello71) 2016-04-19 16:56:07 UTC
*** Bug 579990 has been marked as a duplicate of this bug. ***
Comment 5 Anton Kochkov 2016-04-30 07:41:07 UTC
*** Bug 581618 has been marked as a duplicate of this bug. ***
Comment 6 Matt Turner gentoo-dev 2016-07-21 18:47:02 UTC
I have sent a patch upstream that will address this, titled "mesa: Use AC_HEADER_MAJOR to include correct header for major()."
Comment 7 Matt Turner gentoo-dev 2016-07-26 19:16:28 UTC
I've fixed this upstream. I'm not going to backport it.
Comment 8 SpanKY gentoo-dev 2016-08-01 04:34:32 UTC
that commit is in master, not the 12.0 branch, so it won't be released until mesa-13.0 is out.  i've added a hackish patch to 12.0.1 in the mean time:
Comment 9 Matt Turner gentoo-dev 2016-08-01 23:26:10 UTC
(In reply to SpanKY from comment #8)
> that commit is in master, not the 12.0 branch, so it won't be released until
> mesa-13.0 is out.  i've added a hackish patch to 12.0.1 in the mean time:
> ?id=4d2930abce11997e17fe986ae1827f7dd75b3a56

Thanks. I'll make sure it gets into the 12.0 stable tree as well.