Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914239 - app-crypt/tpm2-openssl-1.1.1 - [slibtool] tpm2-provider.c:(.text+<snip>): undefined reference to OSSL_LIB_CTX_free
Summary: app-crypt/tpm2-openssl-1.1.1 - [slibtool] tpm2-provider.c:(.text+<snip>): und...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Christopher Byrne
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-09-15 15:38 UTC by Toralf Förster
Modified: 2023-09-16 16:46 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.46 KB, text/plain)
2023-09-15 15:38 UTC, Toralf Förster
Details
app-crypt:tpm2-openssl-1.1.1:20230914-235929.log (app-crypt:tpm2-openssl-1.1.1:20230914-235929.log,140.21 KB, text/plain)
2023-09-15 15:38 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,66.40 KB, application/x-xz)
2023-09-15 15:38 UTC, Toralf Förster
Details
environment (environment,26.95 KB, text/plain)
2023-09-15 15:38 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,784 bytes, application/x-xz)
2023-09-15 15:38 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,43.23 KB, application/x-xz)
2023-09-15 15:38 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,9.02 KB, application/x-xz)
2023-09-15 15:38 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,15.44 KB, application/x-xz)
2023-09-15 15:38 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-09-15 15:38:36 UTC
too long lines were shrinked:

rdlibtool: link: ln -s tpm2.so.def .libs/tpm2.so.def.linux
rdlibtool: link: ln -s tpm2.so.def.linux .libs/tpm2.so.def.host
rdlibtool: link: ln -s /dev/null .libs/tpm2.a.disabled
rdlibtool: link: ln -s /usr/lib64/ossl-modules .libs/tpm2.so.slibtool.rpath
rdlibtool: link: x86_64-pc-linux-gnu-gcc src/.libs/tpm2_la-tpm2-provider.o src/.libs/tpm2_la-tpm2-provider-core.o src/.libs/tpm2_la-tpm2-provider-types.o src/.libs/tpm2_la-tpm2-provider-x509.o src/.libs/tpm2_la-tpm2-provider-rand.o src/.libs/tpm2_la-tpm2-provider-pkey.o src/.libs/tpm2_la-tpm2-provid
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: src/.libs/tpm2_la-tpm2-provider.o: in function `tpm2_teardown':
tpm2-provider.c:(.text+0x66): undefined reference to `OSSL_LIB_CTX_free'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: tpm2-provider.c:(.text+0x9a): undefined reference to `CRYPTO_clear_free'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: src/.libs/tpm2_la-tpm2-provider.o: in function `tpm2_operation':

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_gnome_systemd-20230908-015505

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.6
Python 3.11.5
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.72.0
  [2]   rust-1.72.0 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.7_p7 [openjdk-17]
*)	Eclipse Temurin JRE 11.0.19_p7 [openjdk-jre-bin-11]
3)	Eclipse Temurin JRE 17.0.7_p7 [openjdk-jre-bin-17]
4)	Eclipse Temurin JRE 8.372_p07 [openjdk-jre-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-17 
  [2]   openjdk-jre-bin-8 
  [3]   openjdk-jre-bin-11  system-vm
  [4]   openjdk-jre-bin-17 

php cli (if any):
go version go1.21.1 linux/amd64

  HEAD of ::gentoo
commit 9297e8e11bf048a6505b39c435f23e9419137d16
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Sep 14 23:01:38 2023 +0000

    2023-09-14 23:01:38 UTC

emerge -qpvO app-crypt/tpm2-openssl
[ebuild  N    ] app-crypt/tpm2-openssl-1.1.1  USE="-test"
Comment 1 Toralf Förster gentoo-dev 2023-09-15 15:38:37 UTC
Created attachment 870619 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-09-15 15:38:38 UTC
Created attachment 870620 [details]
app-crypt:tpm2-openssl-1.1.1:20230914-235929.log
Comment 3 Toralf Förster gentoo-dev 2023-09-15 15:38:40 UTC
Created attachment 870621 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-09-15 15:38:41 UTC
Created attachment 870622 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-09-15 15:38:41 UTC
Created attachment 870623 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-09-15 15:38:42 UTC
Created attachment 870624 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-09-15 15:38:43 UTC
Created attachment 870625 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-09-15 15:38:44 UTC
Created attachment 870626 [details]
temp.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2023-09-16 16:46:49 UTC
The bug has been closed via the following commit(s):

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

commit ae59aba546e498bc1a8a1ec17b4c070d6af489f9
Author:     Christopher Byrne <salah.coronya@gmail.com>
AuthorDate: 2023-09-15 16:45:01 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2023-09-16 16:36:56 +0000

    app-crypt/tpm2-openssl: Fix build with slibtool
    
    Closes: https://bugs.gentoo.org/914239
    Closes: https://github.com/gentoo/gentoo/pull/32814
    Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 ...-undefined-references-when-using-slibtool.patch | 26 ++++++++++++++++++++++
 .../tpm2-openssl/tpm2-openssl-1.1.1-r1.ebuild      | 12 +++++++++-
 2 files changed, 37 insertions(+), 1 deletion(-)