Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460418 - genkernel 3.4.45 with selinux and dmraid won't compile
Summary: genkernel 3.4.45 with selinux and dmraid won't compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-05 16:19 UTC by Steve Yin
Modified: 2013-03-05 16:38 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 Steve Yin 2013-03-05 16:19:18 UTC
I want to use selinux with a intel's soft-raid, by using 
genkernel --dmraid --loglevel=5 all
the dmraid won't compile, and reports these errors:

make[1]: Leaving directory `/var/tmp/genkernel/9348.29556.24200.8614/dmraid/1.0.0.rc16-3/dmraid/tools'
make[1]: Entering directory `/var/tmp/genkernel/9348.29556.24200.8614/dmraid/1.0.0.rc16-3/dmraid/tools'
gcc -o dmraid.o -c -I -I. -I../include -I../lib -include ../include/config.h  -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -O2 dmraid.c
gcc -o commands.o -c -I -I. -I../include -I../lib -include ../include/config.h  -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -O2 commands.c
gcc -o toollib.o -c -I -I. -I../include -I../lib -include ../include/config.h  -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -O2 toollib.c
gcc -o dmraid dmraid.o commands.o toollib.o -L/var/tmp/genkernel/9348.29556.24200.8614/lvm/lib -static -L../lib -ldmraid -lselinux -lsepol -ldevmapper
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lselinux
collect2: ld returned 1 exit status
make[1]: *** [dmraid] Error 1
make[1]: Leaving directory `/var/tmp/genkernel/9348.29556.24200.8614/dmraid/1.0.0.rc16-3/dmraid/tools'
make: *** [tools] Error 2

and I'm sure the libselinux.so are exists as a symlink in /usr/lib64,
so this might be a bug of genkernel

Reproducible: Always

Steps to Reproduce:
1.selinux server
2.genkernel --dmraid --loglevel=5 initramfs
3.
Comment 1 Steve Yin 2013-03-05 16:38:21 UTC
sorry, this problem is is solved with recompile libselinux/lvm2 with static-libs