Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72541 - udev 045 with USE=selinux depends on libselinux-1.18
Summary: udev 045 with USE=selinux depends on libselinux-1.18
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-26 05:12 UTC by Bogatyrjov Kirill
Modified: 2005-08-16 12:00 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bogatyrjov Kirill 2004-11-26 05:12:51 UTC
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"
Comment 1 Roman Valls 2005-02-08 09:02:55 UTC
I can confirm the bug, emerging libselinux-1.18 fixed the problem.
Comment 2 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-02-08 13:44:54 UTC
Hm, ok, what can I do in the udev ebuild to fix this?  Anyone have a patch?
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-16 12:00:26 UTC
Closed due to lack of info.