Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438998 - sys-fs/cryptsetup[selinux,static]: with sys-libs/libselinux-2.1.12, link fails with pcre missing symbols
Summary: sys-fs/cryptsetup[selinux,static]: with sys-libs/libselinux-2.1.12, link fail...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 436752
Blocks:
  Show dependency tree
 
Reported: 2012-10-19 22:33 UTC by Anton Kochkov
Modified: 2013-08-06 19:25 UTC (History)
2 users (show)

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


Attachments
full build log (cryptsetup-1.4.3_build.log,45.61 KB, text/plain)
2012-10-19 22:33 UTC, Anton Kochkov
Details
emerge --info output (emerge_info.log,16.84 KB, text/plain)
2012-10-19 22:34 UTC, Anton Kochkov
Details
busybox full build log (busybox-1.20.2_build.log,441.91 KB, text/plain)
2012-10-19 22:56 UTC, Anton Kochkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2012-10-19 22:33:38 UTC
Created attachment 326982 [details]
full build log

libtool: link: (cd .libs/libcryptsetup.lax/libloopaes.a && i686-pc-linux-gnu-ar x "/var/tmp/portage/sys-fs/cryptsetup-1.4.3/work/cryptsetup-1.4.3/lib/loopaes/.libs/libloopaes.a")
libtool: link: i686-pc-linux-gnu-ar cru .libs/libcryptsetup.a  libcryptsetup_la-setup.o libcryptsetup_la-utils.o libcryptsetup_la-utils_crypt.o libcryptsetup_la-utils_debug.o libcryptsetup_la-utils_loop.o libcryptsetup_la-utils_devpath.o libcryptsetup_la-utils_wipe.o libcryptsetup_la-utils_fips.o libcryptsetup_la-libdevmapper.o libcryptsetup_la-volumekey.o libcryptsetup_la-random.o libcryptsetup_la-crypt_plain.o  .libs/libcryptsetup.lax/libcrypto_backend.a/libcrypto_backend_la-crypto_gcrypt.o  .libs/libcryptsetup.lax/libluks1.a/libluks1_la-af.o .libs/libcryptsetup.lax/libluks1.a/libluks1_la-keyencryption.o .libs/libcryptsetup.lax/libluks1.a/libluks1_la-keymanage.o .libs/libcryptsetup.lax/libluks1.a/libluks1_la-pbkdf.o  .libs/libcryptsetup.lax/libloopaes.a/libloopaes_la-loopaes.o 
libtool: link: i686-pc-linux-gnu-ranlib .libs/libcryptsetup.a
libtool: link: rm -fr .libs/libcryptsetup.lax
libtool: link: ( cd ".libs" && rm -f "libcryptsetup.la" && ln -s "../libcryptsetup.la" "libcryptsetup.la" )
make[3]: Leaving directory `/var/tmp/portage/sys-fs/cryptsetup-1.4.3/work/cryptsetup-1.4.3/lib'
make[2]: Leaving directory `/var/tmp/portage/sys-fs/cryptsetup-1.4.3/work/cryptsetup-1.4.3/lib'
Making all in src
make[2]: Entering directory `/var/tmp/portage/sys-fs/cryptsetup-1.4.3/work/cryptsetup-1.4.3/src'
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DDATADIR=\""/usr/share"\" -DLOCALEDIR=\""/usr/share/locale"\" -DLIBDIR=\""/usr/lib"\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DVERSION=\""1.4.3"\" -D_GNU_SOURCE   -Wall -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe -c -o cryptsetup-utils_crypt.o `test -f '../lib/utils_crypt.c' || echo './'`../lib/utils_crypt.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DDATADIR=\""/usr/share"\" -DLOCALEDIR=\""/usr/share/locale"\" -DLIBDIR=\""/usr/lib"\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DVERSION=\""1.4.3"\" -D_GNU_SOURCE   -Wall -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe -c -o cryptsetup-utils_loop.o `test -f '../lib/utils_loop.c' || echo './'`../lib/utils_loop.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DDATADIR=\""/usr/share"\" -DLOCALEDIR=\""/usr/share/locale"\" -DLIBDIR=\""/usr/lib"\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DVERSION=\""1.4.3"\" -D_GNU_SOURCE   -Wall -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe -c -o cryptsetup-utils_fips.o `test -f '../lib/utils_fips.c' || echo './'`../lib/utils_fips.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DDATADIR=\""/usr/share"\" -DLOCALEDIR=\""/usr/share/locale"\" -DLIBDIR=\""/usr/lib"\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DVERSION=\""1.4.3"\" -D_GNU_SOURCE   -Wall -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe -c -o cryptsetup-cryptsetup.o `test -f 'cryptsetup.c' || echo './'`cryptsetup.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DDATADIR=\""/usr/share"\" -DLOCALEDIR=\""/usr/share/locale"\" -DLIBDIR=\""/usr/lib"\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DVERSION=\""1.4.3"\" -D_GNU_SOURCE   -Wall -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe -c -o cryptsetup_static-utils_crypt.o `test -f '../lib/utils_crypt.c' || echo './'`../lib/utils_crypt.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DDATADIR=\""/usr/share"\" -DLOCALEDIR=\""/usr/share/locale"\" -DLIBDIR=\""/usr/lib"\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DVERSION=\""1.4.3"\" -D_GNU_SOURCE   -Wall -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe -c -o cryptsetup_static-utils_loop.o `test -f '../lib/utils_loop.c' || echo './'`../lib/utils_loop.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DDATADIR=\""/usr/share"\" -DLOCALEDIR=\""/usr/share/locale"\" -DLIBDIR=\""/usr/lib"\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DVERSION=\""1.4.3"\" -D_GNU_SOURCE   -Wall -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe -c -o cryptsetup_static-utils_fips.o `test -f '../lib/utils_fips.c' || echo './'`../lib/utils_fips.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DDATADIR=\""/usr/share"\" -DLOCALEDIR=\""/usr/share/locale"\" -DLIBDIR=\""/usr/lib"\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DVERSION=\""1.4.3"\" -D_GNU_SOURCE   -Wall -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe -c -o cryptsetup_static-cryptsetup.o `test -f 'cryptsetup.c' || echo './'`cryptsetup.c
/bin/sh ../libtool --tag=CC   --mode=link i686-pc-linux-gnu-gcc -Wall -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe  -Wl,-O1 -Wl,--as-needed -o cryptsetup cryptsetup-utils_crypt.o cryptsetup-utils_loop.o cryptsetup-utils_fips.o cryptsetup-cryptsetup.o ../lib/libcryptsetup.la -lpopt  
/bin/sh ../libtool --tag=CC   --mode=link i686-pc-linux-gnu-gcc -Wall -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe -all-static -Wl,-O1 -Wl,--as-needed -o cryptsetup.static cryptsetup_static-utils_crypt.o cryptsetup_static-utils_loop.o cryptsetup_static-utils_fips.o cryptsetup_static-cryptsetup.o ../lib/libcryptsetup.la -lpopt  -lgcrypt -lgpg-error -lgpg-error -L/lib -ldevmapper -lselinux -ludev -lrt -lsepol -luuid  
libtool: link: i686-pc-linux-gnu-gcc -Wall -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe -Wl,-O1 -o .libs/cryptsetup cryptsetup-utils_crypt.o cryptsetup-utils_loop.o cryptsetup-utils_fips.o cryptsetup-cryptsetup.o  -Wl,--as-needed ../lib/.libs/libcryptsetup.so -lpopt
libtool: link: i686-pc-linux-gnu-gcc -Wall -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe -static -Wl,-O1 -o cryptsetup.static cryptsetup_static-utils_crypt.o cryptsetup_static-utils_loop.o cryptsetup_static-utils_fips.o cryptsetup_static-cryptsetup.o  -Wl,--as-needed ../lib/.libs/libcryptsetup.a -L/lib -lpopt /usr/lib/libgcrypt.a -lgpg-error -ldevmapper -lselinux -ludev -lrt -lsepol -luuid
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(seusers.o): In function `getseuserbyname':
(.text+0x3f8): warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libudev.a(util.o): In function `get_group_creds':
(.text.get_group_creds+0xa6): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libudev.a(util.o): In function `get_group_creds':
(.text.get_group_creds+0xf4): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(seusers.o): In function `getseuserbyname':
(.text+0x3b3): warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libudev.a(util.o): In function `get_user_creds':
(.text.get_user_creds+0x174): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libudev.a(util.o): In function `get_user_creds':
(.text.get_user_creds+0xee): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(seusers.o): In function `getseuserbyname':
(.text+0xbb): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libudev.a(util.o): In function `lookup_uid':
(.text.lookup_uid+0xb2): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(label_file.o): In function `closef':
(.text+0x1cb): undefined reference to `pcre_free'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(label_file.o): In function `closef':
(.text+0x1d8): undefined reference to `pcre_free_study'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(label_file.o): In function `compile_regex.isra.6':
(.text+0x306): undefined reference to `pcre_compile'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(label_file.o): In function `compile_regex.isra.6':
(.text+0x32c): undefined reference to `pcre_study'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(label_file.o): In function `lookup':
(.text+0x5e1): undefined reference to `pcre_exec'
collect2: ld returned 1 exit status
make[2]: *** [cryptsetup.static] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-fs/cryptsetup-1.4.3/work/cryptsetup-1.4.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/cryptsetup-1.4.3/work/cryptsetup-1.4.3'
make: *** [all] Error 2
 [31;01m*[0m ERROR: sys-fs/cryptsetup-1.4.3 failed (compile phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=sys-fs/cryptsetup-1.4.3'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=sys-fs/cryptsetup-1.4.3'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/sys-fs/cryptsetup-1.4.3/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sys-fs/cryptsetup-1.4.3/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/sys-fs/cryptsetup-1.4.3/work/cryptsetup-1.4.3'
 [31;01m*[0m S: '/var/tmp/portage/sys-fs/cryptsetup-1.4.3/work/cryptsetup-1.4.3'
Comment 1 Anton Kochkov 2012-10-19 22:34:38 UTC
Created attachment 326984 [details]
emerge --info output
Comment 2 Anton Kochkov 2012-10-19 22:35:20 UTC
installed libs:


[I] sys-libs/libselinux
     Available versions:  2.1.9 2.1.9-r1 2.1.9-r2 (~)2.1.9-r3 (~)2.1.12 {{python ruby ELIBC="FreeBSD" RUBY_TARGETS="ruby18"}}
     Installed versions:  2.1.12(02:14:32 AM 10/20/2012)(python -ruby)
     Homepage:            http://userspace.selinuxproject.org
     Description:         SELinux userland library

[I] sys-libs/libsepol
     Available versions:  2.1.4-r1^t (~)2.1.8^t
     Installed versions:  2.1.8^t(02:12:59 AM 10/20/2012)
     Homepage:            http://userspace.selinuxproject.org
     Description:         SELinux binary policy representation library

[I] dev-libs/libpcre
     Available versions:  (3) 7.9-r1 8.02 8.12 (~)8.13 (~)8.13-r1 (~)8.20 (~)8.21 8.30-r2 (~)8.31
	{{bzip2 +cxx doc +jit libedit pcre16 +readline +recursion-limit static-libs unicode zlib}}
     Installed versions:  8.31(3)(02:13:51 AM 10/20/2012)(bzip2 cxx readline recursion-limit unicode zlib -jit -libedit -pcre16 -static-libs)
     Homepage:            http://www.pcre.org/
     Description:         Perl-compatible regular expression library

[I] sys-libs/glibc
     Available versions:  (2.2) (~)2.9_p20081201-r3^s 2.10.1-r1^s 2.11.3^s (~)2.12.1-r3^s 2.12.2^s (~)2.13-r2^s 2.13-r4^s (~)2.14^s (~)2.14.1-r2^s 2.14.1-r3^s (~)2.15-r1^s 2.15-r2^s 2.15-r3^s **2.16.0^s **9999^s
	{{debug gd hardened multilib profile selinux systemtap vanilla CROSSCOMPILE_OPTS="headers-only"}}
     Installed versions:  2.15-r3(2.2)^s(05:04:09 PM 10/18/2012)(hardened selinux -debug -gd -multilib -profile -vanilla CROSSCOMPILE_OPTS="-headers-only")
     Homepage:            http://www.gnu.org/software/libc/libc.html
     Description:         GNU libc6 (also called glibc2) C library
Comment 3 Anton Kochkov 2012-10-19 22:44:16 UTC
Already tried rebuild glibc and all dependencies of libselinux, including libpcre, even more than 1 time, but this doesnt help
Comment 4 Anton Kochkov 2012-10-19 22:56:35 UTC
Created attachment 326986 [details]
busybox full build log

Same error for busybox-1.20.2:

Output of:
i686-pc-linux-gnu-gcc -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static -Wl,-O1 -Wl,--as-needed -o busybox_unstripped -Wl,--sort-common -Wl,--sort-section,alignment -Wl,--start-group applets/built-in.o archival/lib.a archival/libarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -lselinux -lsepol -Wl,--end-group
==========
debianutils/lib.a(mktemp.o): In function `mktemp_main':
mktemp.c:(.text.mktemp_main+0xeb): warning: the use of `tempnam' is dangerous, better use `mkstemp'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(seusers.o): In function `getseuserbyname':
(.text+0x3f8): warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(seusers.o): In function `getseuserbyname':
(.text+0x3b3): warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(seusers.o): In function `getseuserbyname':
(.text+0xbb): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
networking/lib.a(nslookup.o): In function `print_host':
nslookup.c:(.text.print_host+0x5f): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0x115): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_resolve':
inet_common.c:(.text.INET_resolve+0xe8): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0x19b): warning: Using 'getnetbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_resolve':
inet_common.c:(.text.INET_resolve+0x107): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(xconnect.o): In function `bb_lookup_port':
xconnect.c:(.text.bb_lookup_port+0x5b): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
networking/lib.a(netstat.o): In function `ip_port_str':
netstat.c:(.text.ip_port_str+0x9e): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(label_file.o): In function `closef':
(.text+0x1cb): undefined reference to `pcre_free'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(label_file.o): In function `closef':
(.text+0x1d8): undefined reference to `pcre_free_study'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(label_file.o): In function `compile_regex.isra.6':
(.text+0x306): undefined reference to `pcre_compile'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(label_file.o): In function `compile_regex.isra.6':
(.text+0x32c): undefined reference to `pcre_study'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libselinux.a(label_file.o): In function `lookup':
(.text+0x5e1): undefined reference to `pcre_exec'
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1
 [31;01m*[0m ERROR: sys-apps/busybox-1.20.2 failed (compile phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=sys-apps/busybox-1.20.2'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=sys-apps/busybox-1.20.2'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/sys-apps/busybox-1.20.2/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.20.2/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/sys-apps/busybox-1.20.2/work/busybox-1.20.2'
 [31;01m*[0m S: '/var/tmp/portage/sys-apps/busybox-1.20.2/work/busybox-1.20.2'
Comment 5 Anton Kochkov 2012-10-20 11:03:57 UTC
Interesting. Tried libselinux-2.1.12-r1.ebuild from hardened-dev overlay. And it doesnt help for both cryptsetup and busybox. Then I've rebuild libpcre with "static-libs" USE flag enabled. And rebuild libselinux then. This help for building cryptsetup (compiled successfully and works ok too), but still same error for busybox.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-20 16:08:02 UTC
*** Bug 439078 has been marked as a duplicate of this bug. ***
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-23 15:34:25 UTC
*** Bug 439414 has been marked as a duplicate of this bug. ***
Comment 8 Anton Kochkov 2013-06-09 14:01:38 UTC
Error still here for sys-fs/cryptsetup-1.6.1
Comment 9 Ian Stakenvicius (RETIRED) gentoo-dev 2013-08-06 19:25:11 UTC
So the cryptsetup configure.ac only checks selinux and related libs when building statically, and even then it's only when the pkg-config check for static libs from libdevmapper (ie lvm2) fails.

Since lvm2[selinux static] has now been fixed, this is probably fixed too.

I can confirm it builds fine here, via a regular emerge.  Please test on busybox too and reopen.