Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926130 - net-libs/libupnp-1.14.18[ssl] fails tests: ld.lld: error: undefined reference due to --no-allow-shlib-undefined: OPENSSL_init_crypto
Summary: net-libs/libupnp-1.14.18[ssl] fails tests: ld.lld: error: undefined reference...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2024-03-04 08:35 UTC by Agostino Sarubbo
Modified: 2024-04-11 01:13 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,277.69 KB, text/plain)
2024-03-04 08:35 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-03-04 08:35:25 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-libs/libupnp-1.14.18 fails tests.
Discovered on: amd64 (internal ref: clang-lld_tinderbox)
System: CLANG-LLD (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CLANG-LLD)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-03-04 08:35:27 UTC
Created attachment 886646 [details]
build.log

build log and emerge --info
Comment 2 Conrad Kostecki gentoo-dev 2024-03-16 20:55:49 UTC
@orbea: do you have also an idea on this?
Comment 3 orbea 2024-03-16 22:32:46 UTC
@Conrad

The linker command is missing -lcrypto and its failing with an undefined reference for OPENSSL_init_crypto because of --no-allow-shlib-undefined which I presume is being set by lld?

On my system with libressl-3.9.0 it fails the same way, but with OPENSSL_add_all_algorithms_noconf instead which is also in libcrypto.

However I can't find any sign of OPENSSL_init_crypto or OPENSSL_add_all_algorithms_noconf inside of the libupnp source, am I just missing it?

The build does succeed on my end if I add -lcrypto, but I am not sure why it wants it?