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

Bug 692558

Summary: app-crypt/tpm2-tss-engine-1.0.0 : /.../ld: ./.../libtpm2tss.so: undefined reference to RAND_OpenSSL
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 Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/14310
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
app-crypt:tpm2-tss-engine-1.0.0:20190819-104715.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2019-08-19 18:03:04 UTC
/bin/sh ./libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -I./include -I./src     -O2 -pipe -march=native   -ltss2-tcti-mssim -ltss2-tcti-device -Wl,-O1 -Wl,--as-needed -o tpm2tss-genkey src/tpm2tss_genkey-tpm2tss-genkey.o -ltss2-esys -ltss2-sys -ltss2-mu  -lcrypto  -ldl libtpm2tss.la 
libtool: link: x86_64-pc-linux-gnu-gcc -I./include -I./src -O2 -pipe -march=native -Wl,-O1 -o .libs/tpm2tss-genkey src/tpm2tss_genkey-tpm2tss-genkey.o  -ltss2-tcti-mssim -ltss2-tcti-device -Wl,--as-needed ./.libs/libtpm2tss.so -ltss2-esys -ltss2-sys -ltss2-mu -lcrypto -ldl -Wl,-rpath -Wl,/usr/lib64/engines
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libtpm2tss.so: undefined reference to `RAND_OpenSSL'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libtpm2tss.so: undefined reference to `RSA_PKCS1_OpenSSL'
collect2: error: ld returned 1 exit status
make: *** [Makefile:1038: tpm2tss-genkey] Error 1

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.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) *




emerge -qpvO app-crypt/tpm2-tss-engine
[ebuild  N    ] app-crypt/tpm2-tss-engine-1.0.0  USE="libressl -test"
Comment 1 Toralf Förster gentoo-dev 2019-08-19 18:03:07 UTC
Created attachment 587540 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-08-19 18:03:10 UTC
Created attachment 587542 [details]
app-crypt:tpm2-tss-engine-1.0.0:20190819-104715.log
Comment 3 Toralf Förster gentoo-dev 2019-08-19 18:03:13 UTC
Created attachment 587544 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-08-19 18:03:16 UTC
Created attachment 587546 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-08-19 18:03:19 UTC
Created attachment 587548 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-08-19 18:03:21 UTC
Created attachment 587550 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-08-19 18:03:24 UTC
Created attachment 587552 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-02-26 16:17:44 UTC
The bug has been closed via the following commit(s):

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

commit 55d5d568d0ef0c2a5d4f136906104d2654afb0c0
Author:     Salah Coronya <salah.coronya@gmail.com>
AuthorDate: 2020-02-20 02:06:07 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-02-26 16:17:25 +0000

    app-crypt/tpm2-tss-engine: Remove libressl support
    
    Libressl dropped all engine support in 2.3.0 .
    
    Closes: https://bugs.gentoo.org/692558
    Closes: https://bugs.gentoo.org/687132
    Package-Manager: Portage-2.3.79, Repoman-2.3.16
    Signed-off-by: Salah Coronya <salah.coronya@gmail.com>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 ...ine-1.0.1-build-add-disable-defaultflags.patch} | 19 +++++-------
 .../files/tpm2-tss-engine-1.0.1-libressl.patch     | 35 ----------------------
 .../tpm2-tss-engine/tpm2-tss-engine-1.0.1.ebuild   |  8 ++---
 3 files changed, 11 insertions(+), 51 deletions(-)