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

Bug 700228

Summary: sys-block/open-iscsi-2.1.0 : auth.c:(.text+<snip>): undefined reference to EVP_sha3_256
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED WONTFIX    
Severity: normal CC: r.biegel, sandino
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 561854    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
sys-block:open-iscsi-2.1.0:20191116-023501.log
temp.tbz2
libressl compatibility patch
libressl compatibility patch

Description Toralf Förster gentoo-dev 2019-11-16 09:51:02 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: auth.o: in function `auth_hash_init':
auth.c:(.text+0x428): undefined reference to `EVP_sha3_256'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: auth.o: in function `acl_init_chap_digests':
auth.c:(.text+0x2632): undefined reference to `EVP_sha3_256'
collect2: error: ld returned 1 exit status

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-libressl-20191115-001559

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.0
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *




repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 16 Nov 2019 01:06:10 +0000

emerge -qpvO sys-block/open-iscsi
[ebuild  N    ] sys-block/open-iscsi-2.1.0  USE="libressl tcp -debug -infiniband -rdma -systemd"
Comment 1 Toralf Förster gentoo-dev 2019-11-16 09:51:05 UTC
Created attachment 596320 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-11-16 09:51:08 UTC
Created attachment 596322 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-11-16 09:51:11 UTC
Created attachment 596324 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-11-16 09:51:14 UTC
Created attachment 596326 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-11-16 09:51:16 UTC
Created attachment 596328 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-11-16 09:51:19 UTC
Created attachment 596330 [details]
sys-block:open-iscsi-2.1.0:20191116-023501.log
Comment 7 Toralf Förster gentoo-dev 2019-11-16 09:51:22 UTC
Created attachment 596332 [details]
temp.tbz2
Comment 8 Reinhard Biegel 2019-12-27 09:59:51 UTC
Created attachment 601022 [details, diff]
libressl compatibility patch

As the undefined reference seems to be related to differences in the APIs of openssl/libressl, I tried the very basic approach of ifdef-masking the affected lines of code in this patch. The code compiles but execution is untested as I currently don't have access to a working iSCSI setup.

Maybe the inverse approach of testing against a specific openssl version number would be more robust and/or elegant, but unfortunately I'm not familiar with the different API versions.
Comment 9 Thomas Deutschmann (RETIRED) gentoo-dev 2020-05-03 20:32:36 UTC
*** Bug 715134 has been marked as a duplicate of this bug. ***
Comment 10 Reinhard Biegel 2020-05-16 13:09:20 UTC
Created attachment 639650 [details, diff]
libressl compatibility patch

Updated patch for open-iscsi version 2.1.1. Still not tested.