Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580140 - sys-fs/eudev-3.1.5 : udevadm-info.c:(.text+0x815): undefined reference to `minor'
Summary: sys-fs/eudev-3.1.5 : udevadm-info.c:(.text+0x815): undefined reference to `mi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: eudev team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-sysmacros
  Show dependency tree
 
Reported: 2016-04-15 21:15 UTC by Toralf Förster
Modified: 2018-04-27 20:40 UTC (History)
1 user (show)

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


Attachments
emerge-history.txt (emerge-history.txt,35.97 KB, text/plain)
2016-04-15 21:16 UTC, Toralf Förster
Details
environment (environment,157.32 KB, text/plain)
2016-04-15 21:16 UTC, Toralf Förster
Details
sys-fs:eudev-3.1.5:20160415-205241.log (sys-fs:eudev-3.1.5:20160415-205241.log,103.59 KB, text/plain)
2016-04-15 21:16 UTC, Toralf Förster
Details
include sys/sysmacros.h (sysmacros.patch,637 bytes, patch)
2016-11-17 22:37 UTC, Philipp Ammann
Details | Diff

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-15 21:15:57 UTC
libtool: link: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wl,-O1 -o udevadm udevadm.o udevadm-info.o udevadm-control.o udevadm-monitor.o udevadm-hwdb.o udevadm-settle.o udevadm-trigger.o udevadm-test.o udevadm-test-builtin.o udevadm-util.o  -Wl,--as-needed ./.libs/libudev-core.a -lblkid -lkmod
udevadm-info.o: In function `uinfo':
udevadm-info.c:(.text+0x815): undefined reference to `minor'


$ cat emerge-info.txt
  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named amd64-gnome-unstable_20160415-104205) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

  make.conf: USE="mmx sse sse2 pax_kernel -cdinstall -oci8 -bindist -apache avx clang compat csc designer dot eglfs fpm ftp -gif -gles2 gpg gstreamer gui -havege -ipv6 -jadetex jpeg lapack libkms logrotate mbox minizip -modplug multimedia multitarget mysqli opencv opengl openmpi pcre16 -png scripts server -sockets sqlite3 sse4_1 system-llvm -tls uml -wma xa xml xmlreader -xscreensaver"

  -----------------------------------------------------------------
Portage 2.2.28 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/gnome, gcc-5.3.0, glibc-2.23-r1, 4.4.6-hardened-r2 x86_64)
=================================================================
System uname: Linux-4.4.6-hardened-r2-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16157888 total,    776080 free
KiB Swap:   16777212 total,  16694924 free
Timestamp of repository gentoo: Fri, 15 Apr 2016 19:03:45 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r2::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/cmake:           3.5.1::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.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.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage/
    priority: 1

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
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="http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 avx berkdb bluetooth branding bzip2 cairo cdda cdr clang cli colord compat consolekit cracklib crypt csc cups cxx dbus designer dot dri dts dvd dvdr eds eglfs emboss encode evo exif fam firefox flac fortran fpm ftp gdbm glamor gnome gnome-keyring gnome-online-accounts gpg gpm gstreamer gtk gui iconv introspection jpeg lapack lcms ldap libkms libnotify libsecret logrotate mad mbox minizip mmx mmxext mng modules mp3 mp4 mpeg multilib multimedia multitarget mysqli nautilus ncurses nls nptl ogg opencv opengl openmp openmpi pam pango pax_kernel pcre pcre16 pdf policykit ppds pulseaudio qt3support qt4 readline scripts sdl seccomp server session spell sqlite3 sse sse2 sse4_1 ssl startup-notification svg system-llvm tcpd tiff tracker truetype udev udisks uml unicode upower usb vorbis wxwidgets x264 xa xattr xcb xml xmlreader xv xvid 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Toralf Förster gentoo-dev 2016-04-15 21:16:00 UTC
Created attachment 430686 [details]
emerge-history.txt
Comment 2 Toralf Förster gentoo-dev 2016-04-15 21:16:02 UTC
Created attachment 430688 [details]
environment
Comment 3 Toralf Förster gentoo-dev 2016-04-15 21:16:05 UTC
Created attachment 430690 [details]
sys-fs:eudev-3.1.5:20160415-205241.log
Comment 5 Joshua Kinard gentoo-dev 2016-11-16 23:56:26 UTC
(In reply to Mike Gilbert from comment #4)
> Fix in systemd:
> 
> https://github.com/systemd/systemd/commit/
> 27d13af71c3af6b2f9b60556d2c046dbb6e36e23

Looks like this issue becomes more prominent under gcc-6.2.0, based on an 'emerge -e system' on my hardened amd64 machine.  Fails with an undefined reference to "major" on eudev-3.2, using gcc-6.2.0-r1:

libtool: link: x86_64-pc-linux-gnu-gcc -O2 -march=corei7 -mtune=corei7 -mfpmath=sse -msse -msse2 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -mcrc32 -maccumulate-outgoing-args -fforce-addr -fmodulo-sched -fivopts -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -fno-lto -fno-use-linker-plugin -O2 -march=corei7 -mtune=corei7 -mfpmath=sse -msse -msse2 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -mcrc32 -maccumulate-outgoing-args -fforce-addr -fmodulo-sched -fivopts -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-lto -fno-use-linker-plugin -o udevadm udevadm.o udevadm-info.o udevadm-control.o udevadm-monitor.o udevadm-hwdb.o udevadm-settle.o udevadm-trigger.o udevadm-test.o udevadm-test-builtin.o udevadm-util.o  ./.libs/libudev-core.a -lblkid -lkmod
udevd.o: In function `main':
udevd.c:(.text.startup+0x1b00): undefined reference to `major'
udevd.c:(.text.startup+0x1bb0): undefined reference to `major'
./.libs/libudev-core.a(libudev_core_la-udev-event.o): In function `udev_event_apply_format':
udev-event.c:(.text+0x499): undefined reference to `major'
udev-event.c:(.text+0x4d8): undefined reference to `minor'
./.libs/libudev-core.a(libudev_core_la-udev-event.o): In function `udev_event_execute_rules':
udev-event.c:(.text+0x1c47): undefined reference to `major'
udev-event.c:(.text+0x1c7a): undefined reference to `major'
udev-event.c:(.text+0x1ccc): undefined reference to `major'
udev-event.c:(.text+0x1ce6): undefined reference to `major'
udev-event.c:(.text+0x1d8e): undefined reference to `major'
./.libs/libudev-core.a(libudev_core_la-udev-node.o): In function `udev_node_add':
udev-node.c:(.text+0xb52): undefined reference to `minor'
udev-node.c:(.text+0xb67): undefined reference to `major'
./.libs/libudev-core.a(libudev_core_la-udev-node.o): In function `udev_node_remove':
udev-node.c:(.text+0x11c8): undefined reference to `minor'
udev-node.c:(.text+0x11dd): undefined reference to `major'

[snip]

And the above is with LTO disabled.  You get a slightly-different batch of errors on the same link command if using LTO that cascades into the undefined references to minor/major.  Looks like the fix applied to systemd needs to somehow be ported to eudev for gcc-6.x to go stable.

---

emerge --info from the affected machine:
Portage 2.3.2 (python 2.7.12-final-0, hardened/linux/amd64, gcc-6.2.0, glibc-2.24, 4.7.8 x86_64)
=================================================================
System uname: Linux-4.7.8-x86_64-Intel-R-_Core-TM-_i7_CPU_970_@_3.20GHz-with-gentoo-2.3
KiB Mem:    16351452 total,   8543648 free
KiB Swap:    4209024 total,   4208324 free
Timestamp of repository gentoo: Wed, 16 Nov 2016 09:15:01 +0000
sh bash 4.4_p5
ld GNU ld (Gentoo 2.27 p1.0) 2.27
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.3.3 [disabled]
app-shells/bash:          4.4_p5::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/ccache:          3.3.3::gentoo
dev-util/cmake:           3.6.3::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.3-r1::gentoo
sys-apps/sandbox:         2.11-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       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.26.1::gentoo, 2.27::gentoo
sys-devel/gcc:            5.3.0::gentoo, 5.4.0::gentoo, 6.2.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage
    priority: -1000

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=corei7 -mtune=corei7  -mfpmath=sse -msse -msse2 -mssse3 -msse4.1 -msse4.2  -mcx16 -msahf -mcrc32 -maccumulate-outgoing-args  -fforce-addr -fmodulo-sched -fivopts  -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon  -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las  -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block  -ftree-vectorize -flto=8 -fuse-linker-plugin"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/pam.d /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"
CXXFLAGS="-O2 -march=corei7 -mtune=corei7  -mfpmath=sse -msse -msse2 -mssse3 -msse4.1 -msse4.2  -mcx16 -msahf -mcrc32 -maccumulate-outgoing-args  -fforce-addr -fmodulo-sched -fivopts  -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon  -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las  -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block  -ftree-vectorize -flto=8 -fuse-linker-plugin"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="    http://gentoo.osuosl.org/    http://mirror.usu.edu/mirrors/gentoo/    http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/    http://gentoo.arcticnetwork.ca/ "
INSTALL_MASK="/usr/lib/systemd /etc/systemd"
LANG="en_US.iso885915"
LDFLAGS="-O2 -march=corei7 -mtune=corei7  -mfpmath=sse -msse -msse2 -mssse3 -msse4.1 -msse4.2  -mcx16 -msahf -mcrc32 -maccumulate-outgoing-args  -fforce-addr -fmodulo-sched -fivopts  -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon  -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las  -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block  -ftree-vectorize -flto=8 -fuse-linker-plugin -Wl,-z,now -Wl,-z,relro"
MAKEOPTS="-j14"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/ramfs"
USE="amd64 apache2 berkdb bzip2 cli cracklib curl cxx dbus dri encode gd gdbm graphite hardened inotify ipv6 justify lto mmx mmxext modules multilib ncurses nptl nptlonly offensive openmp pam pax_kernel pcre pic pie readline real rtc seccomp session sqlite sse sse2 ssl ssp tcpd unicode urandom xattr xml xtpax zlib" ABI_X86="64 32" 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="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" QEMU_SOFTMMU_TARGETS="mips mips64 mipsel mips64el" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="vesa vga fbdev" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 6 Philipp Ammann 2016-11-17 22:37:01 UTC
Created attachment 453688 [details, diff]
include sys/sysmacros.h

This patch fixes compilation with gcc-6.2.0-r1 and glibc-2.24.

I only have USE="hwdb" set and i don't know if it works with musl.
Comment 7 Anthony Basile gentoo-dev 2016-11-18 00:08:01 UTC
(In reply to Philipp Ammann from comment #6)
> Created attachment 453688 [details, diff] [details, diff]
> include sys/sysmacros.h
> 
> This patch fixes compilation with gcc-6.2.0-r1 and glibc-2.24.
> 
> I only have USE="hwdb" set and i don't know if it works with musl.

Thanks, I am aware of the fix.  Real life.  I'll push out a new release of eudev this weekend.

@kumba, thanks for pinging me, I'd forgotten about this simple bug :(
Comment 8 Joshua Kinard gentoo-dev 2016-12-05 06:24:20 UTC
(In reply to Anthony Basile from comment #7)
> (In reply to Philipp Ammann from comment #6)
> > Created attachment 453688 [details, diff] [details, diff] [details, diff]
> > include sys/sysmacros.h
> > 
> > This patch fixes compilation with gcc-6.2.0-r1 and glibc-2.24.
> > 
> > I only have USE="hwdb" set and i don't know if it works with musl.
> 
> Thanks, I am aware of the fix.  Real life.  I'll push out a new release of
> eudev this weekend.
> 
> @kumba, thanks for pinging me, I'd forgotten about this simple bug :(

Any chance we can get this fixed soon'ish?  Only affects glibc-based chroots.  My one uclibc-ng chroot built eudev-3.2 fine w/ gcc-6.2.0.
Comment 9 Anthony Basile gentoo-dev 2016-12-12 07:10:08 UTC
(In reply to Joshua Kinard from comment #8)
> (In reply to Anthony Basile from comment #7)
> > (In reply to Philipp Ammann from comment #6)
> > > Created attachment 453688 [details, diff] [details, diff] [details, diff] [details, diff]
> > > include sys/sysmacros.h
> > > 
> > > This patch fixes compilation with gcc-6.2.0-r1 and glibc-2.24.
> > > 
> > > I only have USE="hwdb" set and i don't know if it works with musl.
> > 
> > Thanks, I am aware of the fix.  Real life.  I'll push out a new release of
> > eudev this weekend.
> > 
> > @kumba, thanks for pinging me, I'd forgotten about this simple bug :(
> 
> Any chance we can get this fixed soon'ish?  Only affects glibc-based
> chroots.  My one uclibc-ng chroot built eudev-3.2 fine w/ gcc-6.2.0.

This is fixed with eudev-3.2.1 which I just pushed.  I tested with glibc-2.23 which is what this bug was originally about so I'm going to close it, but let me know if gcc-6 also causes issues.