Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829662 - dev-libs/cxxtools-3.0-r1 fails to compile: ld.lld: error: libcxxtools.so: undefined reference to ERR_error_string [--no-allow-shlib-undefined]
Summary: dev-libs/cxxtools-3.0-r1 fails to compile: ld.lld: error: libcxxtools.so: und...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo VDR Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2021-12-19 22:16 UTC by Agostino Sarubbo
Modified: 2022-06-14 12:11 UTC (History)
0 users

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


Attachments
build.log (build.log,192.29 KB, text/plain)
2021-12-19 22:16 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 2021-12-19 22:16:13 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/cxxtools-3.0-r1 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses clang as a compiler and lld as a linker
Comment 1 Agostino Sarubbo gentoo-dev 2021-12-19 22:16:15 UTC
Created attachment 759826 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-12-19 22:16:16 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to ASN1_INTEGER_to_BN [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to ASN1_TIME_diff [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to ASN1_TIME_set [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to BIO_free [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to BIO_new [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to BIO_number_written [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to BIO_read [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to BIO_s_mem [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to BN_bn2hex [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to CRYPTO_free [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to ERR_error_string [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to OPENSSL_sk_num [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to PEM_read_X509 [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to X509_NAME_print_ex [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to X509_free [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to X509_get_issuer_name [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to X509_get_serialNumber [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to X509_get_subject_name [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to X509_getm_notAfter [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to X509_getm_notBefore [--no-allow-shlib-undefined]
ld.lld: error: ../src/.libs/libcxxtools.so: undefined reference to ERR_error_string [--no-allow-shlib-undefined]
Comment 3 Larry the Git Cow gentoo-dev 2022-06-14 12:11:27 UTC
The bug has been closed via the following commit(s):

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

commit 7966df0d4206f1f85a392e7325048ebe41be40e7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-14 12:11:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-14 12:11:15 +0000

    dev-libs/cxxtools: fix build with GCC 12; fix build with lld
    
    Closes: https://bugs.gentoo.org/851837
    Closes: https://bugs.gentoo.org/829662
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/cxxtools/cxxtools-3.0-r2.ebuild           | 45 ++++++++++++++++++++++
 .../cxxtools/files/cxxtools-3.0-gcc12-time.patch   | 11 ++++++
 .../files/cxxtools-3.0-lld-linking-openssl.patch   | 11 ++++++
 3 files changed, 67 insertions(+)