when emerging udev-045, i get errors. Looking at udev_add.csources gives #include <selinux/selinux.h> But there is no declaration of `matchmediacon' in /usr/include/selinux/selinux. Googling, I've found that it was presented in 1.17.9 version and merged only in 1.18 http://www.nsa.gov/selinux/list-archive/0409/8525.cfm. marking stable libselinux-1.18 and emerging fix problems. Also I found digest missmatch for libselinux-1.18.tgz. First file was downloaded from mirror.gentoo.ru and later from selinux home page. Both times emerge failed . "ebuild libselinux-1.18.ebuild" helped. Reproducible: Always Steps to Reproduce: 1.make sure <=libselinux-1.16 installed 2.emerge udev #(045) Actual Results: when I emerging udev 045, marked stable, i get following warning : >Compiling udev_add.c: [OK] > In file included from udev_add.c:47: > selinux.h: In function `selinux_setfilecon': > selinux.h:67: warning: implicit declaration of function `matchmediacon' And later error: >Linking udev: [ERROR] > gcc -o udev udev.o udevstart.o udev_lib.o udev_config.o udev_add.o udev_remov > e.o udev_sysfs.o udevdb.o namedev.o namedev_parse.o dev_d.o /var/tmp/portage/ > udev-045/work/udev-045/libsysfs/sysfs_bus.o /var/tmp/portage/udev-045/work/ud > ev-045/libsysfs/sysfs_class.o /var/tmp/portage/udev-045/work/udev-045/libsysf > s/sysfs_device.o /var/tmp/portage/udev-045/work/udev-045/libsysfs/sysfs_dir.o > /var/tmp/portage/udev-045/work/udev-045/libsysfs/sysfs_driver.o /var/tmp/por > tage/udev-045/work/udev-045/libsysfs/sysfs_utils.o /var/tmp/portage/udev-045/ > work/udev-045/libsysfs/dlist.o tdb/tdb.o tdb/spinlock.o -lc -lselinux > udev_add.o(.text+0xdb7): In function `selinux_setfilecon': > : undefined reference to `matchmediacon' > udev_add.o(.text+0xe6f): In function `selinux_setfscreatecon': > : undefined reference to `matchmediacon' > collect2: ld returned 1 exit status Expected Results: succesful emerge Portage 2.0.51-r3 (selinux/2004.1/x86, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://mirror.gentoo.ru/pub/mirror/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/etc/portage/overlay" SYNC="rsync://mirror.gentoo.ru/gentoo-portage" USE="apache2 berkdb crypt dba fastcgi gd gdbm mysql ncurses nls nscd pam perl png python readline samba selinux session slang socks5 ssl svga tcpd unicode x86 xml2 zlib"
I can confirm the bug, emerging libselinux-1.18 fixed the problem.
Hm, ok, what can I do in the udev ebuild to fix this? Anyone have a patch?
Closed due to lack of info.