Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 712494

Summary: sys-libs/libselinux-3.0 : /.../ld: undefined reference to symbol fts_open
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: sam, selinux
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: sys-libs/fts_standalone
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
sys-libs:libselinux-3.0:20200314-115135.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-14 14:31:44 UTC
x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -I../include -D_GNU_SOURCE    -fPIC -Wl,-O1 -Wl,--as-needed -pthread -L../src  selabel_digest.c  -lselinux -o selabel_digest
x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -I../include -D_GNU_SOURCE    -fPIC -Wl,-O1 -Wl,--as-needed -pthread -L../src  selabel_get_digests_all_partial_matches.c  -lselinux -o selabel_get_digests_all_partial_matches
/usr/lib/gcc/x86_64-gentoo-linux-musl/9.2.0/../../../../x86_64-gentoo-linux-musl/bin/ld: /var/tmp/portage/sys-libs/libselinux-3.0/temp/ccdGdhAB.o: undefined reference to symbol fts_open
/usr/lib/gcc/x86_64-gentoo-linux-musl/9.2.0/../../../../x86_64-gentoo-linux-musl/bin/ld: /usr/lib/libfts.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [<builtin>: selabel_get_digests_all_partial_matches] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200311-204810

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.2.0 *
 [2] x86_64-gentoo-linux-musl-9.3.0
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.1 *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 14 Mar 2020 10:38:52 +0000
emerge -qpvO sys-libs/libselinux
[ebuild  N    ] sys-libs/libselinux-3.0  USE="-pcre2 -python -ruby -static-libs" PYTHON_TARGETS="python3_6 -python3_7 -python3_8" RUBY_TARGETS="ruby24 ruby25 -ruby26"
Comment 1 Toralf Förster gentoo-dev 2020-03-14 14:31:48 UTC
Created attachment 618936 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-14 14:31:51 UTC
Created attachment 618938 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-14 14:31:54 UTC
Created attachment 618940 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-14 14:31:56 UTC
Created attachment 618942 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-14 14:31:59 UTC
Created attachment 618944 [details]
sys-libs:libselinux-3.0:20200314-115135.log
Comment 6 Toralf Förster gentoo-dev 2020-03-14 14:32:03 UTC
Created attachment 618946 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-16 16:12:17 UTC
The first attempt to tinderbox a musl image failed at all.

I'll mass close therefore all filed bug reports of the last days related to this tinderbox image.

Please feel free to re-open if you think that the bug is real in musl and not fixed by the musl overlay.
Comment 8 Michael 'veremitz' Everitt 2020-03-22 14:41:15 UTC
Likely a missing dependency on sys-libs/fts-standalone for ELIBC_MUSL .
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-17 04:44:26 UTC
*** Bug 715468 has been marked as a duplicate of this bug. ***