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

Bug 926130

Summary: net-libs/libupnp-1.14.18[ssl] fails tests: ld.lld: error: undefined reference due to --no-allow-shlib-undefined: OPENSSL_init_crypto
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Conrad Kostecki <conikost>
Status: CONFIRMED ---    
Severity: normal CC: conikost
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 731004    
Attachments: build.log

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?