/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libiscsi_la-iser.o: in function `iser_free_iser_conn_res': /var/tmp/portage/net-libs/libiscsi-1.19.0/work/libiscsi-1.19.0/lib/iser.c:195: undefined reference to `pthread_cancel' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libiscsi_la-iser.o: in function `iscsi_iser_connect': /var/tmp/portage/net-libs/libiscsi-1.19.0/work/libiscsi-1.19.0/lib/iser.c:1355: undefined reference to `sem_init' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-libs/libiscsi-1.19.0/work/libiscsi-1.19.0/lib/iser.c:1369: undefined reference to `pthread_create' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-libs/libiscsi-1.19.0/work/libiscsi-1.19.0/lib/iser.c:1380: undefined reference to `sem_wait' ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_systemd-j2-20210515-193921 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.1 [2] x86_64-pc-linux-gnu-11.1.0 * clang version 12.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin /usr/lib/llvm/12 12.0.0 Python 3.8.10 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.52.1 * The following VMs are available for generation-2: *) AdoptOpenJDK 8.292_p10 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 [1] php7.3 [2] php7.4 [3] php8.0 * timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Wed May 19 00:34:59 UTC 2021 emerge -qpvO net-libs/libiscsi [ebuild N ] net-libs/libiscsi-1.19.0
Created attachment 709806 [details] emerge-info.txt
Created attachment 709809 [details] emerge-history.txt
Created attachment 709812 [details] environment
Created attachment 709815 [details] etc.portage.tar.bz2
Created attachment 709818 [details] logs.tar.bz2
Created attachment 709821 [details] net-libs:libiscsi-1.19.0:20210519-010903.log
Created attachment 709824 [details] temp.tar.bz2
Seems there's confusion regarding this issue. There's two issues: A. bug #778905: pthread / sem_init undefined references B. bug #790329: error: missing filename after -o But B was marked a duplicate of A despite different error, then A received a fix while it actually fixed B. A remains. To reproduce, need sys-fabric/librdmacm (automagic) and get: checking for iSER support... yes
This is already fixed in the upstream git, but upon looking at their build I found some other hidden issues which I fixed in this PR. https://github.com/sahlberg/libiscsi/pull/352
Seems to build fine now with 1.19.0-r1 and the 9999 ebuilds.