Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 700228 - sys-block/open-iscsi-2.1.0 : auth.c:(.text+<snip>): undefined reference to EVP_sha3_256
Summary: sys-block/open-iscsi-2.1.0 : auth.c:(.text+<snip>): undefined reference to EV...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 715134 (view as bug list)
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2019-11-16 09:51 UTC by Toralf Förster
Modified: 2021-05-18 15:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.47 KB, text/plain)
2019-11-16 09:51 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,60.44 KB, text/plain)
2019-11-16 09:51 UTC, Toralf Förster
Details
environment (environment,107.92 KB, text/plain)
2019-11-16 09:51 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.60 KB, application/x-bzip)
2019-11-16 09:51 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,9.42 KB, application/x-bzip)
2019-11-16 09:51 UTC, Toralf Förster
Details
sys-block:open-iscsi-2.1.0:20191116-023501.log (sys-block:open-iscsi-2.1.0:20191116-023501.log,34.04 KB, text/plain)
2019-11-16 09:51 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,32.42 KB, application/x-bzip)
2019-11-16 09:51 UTC, Toralf Förster
Details
libressl compatibility patch (libressl.patch,2.37 KB, patch)
2019-12-27 09:59 UTC, Reinhard Biegel
Details | Diff
libressl compatibility patch (libressl.patch,2.48 KB, patch)
2020-05-16 13:09 UTC, Reinhard Biegel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.