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

Bug 778905

Summary: net-libs/libiscsi-1.18.0 - iser.c:(.text+<snip>): undefined reference to sem_init
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: orbea, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=791094
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 765709    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
net-libs:libiscsi-1.18.0:20210328-083827.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-03-28 10:21:12 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libiscsi_la-iser.o: in function `iscsi_iser_connect':
iser.c:(.text+0x263): undefined reference to `sem_init'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: iser.c:(.text+0x2a8): undefined reference to `pthread_create'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: iser.c:(.text+0x2d5): undefined reference to `sem_wait'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libiscsi_la-iser.o: in function `iscsi_iser_disconnect':

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib_hardened-20210315-160555

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.3.1
 [3] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.1.0
Python 3.8.8
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-1.50.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Mar 28 08:05:45 UTC 2021

emerge -qpvO net-libs/libiscsi
[ebuild  N    ] net-libs/libiscsi-1.18.0
Comment 1 Toralf Förster gentoo-dev 2021-03-28 10:21:13 UTC
Created attachment 695394 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-28 10:21:15 UTC
Created attachment 695397 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-03-28 10:21:16 UTC
Created attachment 695400 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-03-28 10:21:17 UTC
Created attachment 695403 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-03-28 10:21:19 UTC
Created attachment 695406 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-28 10:21:20 UTC
Created attachment 695409 [details]
net-libs:libiscsi-1.18.0:20210328-083827.log
Comment 7 Toralf Förster gentoo-dev 2021-03-28 10:21:21 UTC
Created attachment 695412 [details]
temp.tar.bz2
Comment 8 orbea 2021-03-28 15:40:48 UTC
Seems to build with the upstream git, I bisected it to this commit.

commit e6bcdf5fdbf39729399c4f0914661ca1055107a1
Author: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Date:   Wed Feb 12 15:21:03 2020 +1000

    drop the LD_PRELOAD tool
    
    I don't have time to maintain it. And it is just a toy anyway.
    
    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>

 README               |  33 ---
 configure.ac         |   2 -
 examples/Makefile.am |  34 ---
 examples/ld_iscsi.c  | 680 ---------------------------------------------------
 4 files changed, 749 deletions(-)
 delete mode 100644 examples/ld_iscsi.c

https://github.com/sahlberg/libiscsi/commit/e6bcdf5fdbf39729399c4f0914661ca1055107a1
Comment 9 Larry the Git Cow gentoo-dev 2021-03-29 07:38:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c23c04e9b953ba5a8daa01a5f1737825d5618b08

commit c23c04e9b953ba5a8daa01a5f1737825d5618b08
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-03-29 07:34:49 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-03-29 07:38:08 +0000

    net-libs/libiscsi: bump up to 10.19.0
    
    Reported-by: Agostino Sarubbo
    Closes: https://bugs.gentoo.org/721248
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/778905
    Package-Manager: Portage-3.0.17, Repoman-3.0.2
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 net-libs/libiscsi/Manifest               |  1 +
 net-libs/libiscsi/libiscsi-1.19.0.ebuild | 47 ++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
Comment 10 orbea 2021-03-29 14:42:24 UTC
Is this actually fixed? The commit from the bisect is not in a release yet.
Comment 11 Toralf Förster gentoo-dev 2021-03-29 15:09:10 UTC
still an issue in net-libs/libiscsi-1.19.0
Comment 12 orbea 2021-05-15 14:56:29 UTC
*** Bug 790329 has been marked as a duplicate of this bug. ***
Comment 13 Larry the Git Cow gentoo-dev 2021-05-18 17:16:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af0376423c11be3dc9180d8236770af911243565

commit af0376423c11be3dc9180d8236770af911243565
Author:     orbea <orbea@riseup.net>
AuthorDate: 2021-05-15 15:02:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-18 17:16:10 +0000

    net-libs/libiscsi: Don't build ld_iscsi code
    
    Upstream commit e6bcdf5fdbf39729399c4f0914661ca1055107a1
    
    Closes: https://bugs.gentoo.org/778905
    Signed-off-by: orbea <orbea@riseup.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/libiscsi/Manifest               | 1 +
 net-libs/libiscsi/libiscsi-1.19.0.ebuild | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)
Comment 14 Ulrich Müller gentoo-dev 2021-05-18 20:15:57 UTC
(In reply to Larry the Git Cow from comment #13)

Reverted, invalid Signed-off-by.