When compiling busybox from the main repository, it failed during link with "cannot find -l-pthread". Reproducible: Always Steps to Reproduce: 1. emerge sys-apps/busybox-1.21.0 2. 3. Actual Results: Link fails with "cannot find -l-pthread" Expected Results: Compilation should create a binary executable. WORKAROUND: Replacing "-l-pthread" with "-pthread" in the final link command line fixes the problem. Please note that I was compiling a SELinux Gentoo from scratch when this occurred.
Created attachment 350496 [details] build log
Created attachment 350498 [details] environment
Created attachment 350500 [details] emerge --info '=sys-apps/busybox-1.21.0'
Created attachment 350502 [details] emerge -pqv '=sys-apps/busybox-1.21.0'
doubt it's related to pam post the output from running: for p in libpcre libselinux libsepol ; do echo $p pkg-config --libs $p pkg-config --cflags $p done
Not the same poster but I have the same problem, here is the output of the command. libpcre -lpcre libselinux -lselinux libsepol -lsepol
I have the same problem too, package sys-apps/busybox-1.21.1 libpcre -lpcre libselinux -lselinux -lpthread libsepol -lsepol
build.log http://ix.io/7yy emerge --info '=sys-apps/busybox-1.21.1' http://ix.io/7yz emerge -pqv '=sys-apps/busybox-1.21.1' http://ix.io/7yA
I have no idea from where '-pthreads' comes from (it should be pthreads), but scripts/trylink can fix it. scripts/trylink line 120: -l_list=`echo "$LDLIBS" | sed -e 's/ / -l/g' -e 's/^/-l/' -e 's/^-l$//'` +l_list=`echo "$LDLIBS" | sed -e 's/ -/ /g' -e 's/ / -l/g' -e 's/^/-l/' -e 's/^-l$//'`
Created attachment 356976 [details, diff] trylink.patch