Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: WolfSSL redefined ERR_load_SSL_strings symbol which is also defined by OpenSSL #8171

Open
alexsn opened this issue Nov 10, 2024 · 1 comment
Assignees

Comments

@alexsn
Copy link

alexsn commented Nov 10, 2024

Contact Details

[email protected]

Version

5.7.4

Description

When linking a binary with both openssl and wolfssl I get the following linkage error:

ld.lld: error: duplicate symbol: ERR_load_SSL_strings
>>> defined at ssl_err.c:1278 (src/ssl/ssl_err.c:1278)
>>>            ssl_err.c.pic.o:(ERR_load_SSL_strings) in archive openssl/___ssl__/lib_ssl.pic.a
>>> defined at ssl.c:16468 (./wolfssl/src/ssl.c:16468)
>>>            ssl.c.pic.o:(.text.ERR_load_SSL_strings+0x0) in archive wolfssl/__wolfssl__/libwolfssl.pic.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Reproduction steps

No response

Relevant log output

No response

@douzzer
Copy link
Contributor

douzzer commented Nov 11, 2024

Hi @alexsn . We've recently (post-5.7.4) refactored the library namespace to fix this and many other such conflicts, and indeed we've expanded the scope of conflict-free coexistence to allow --enable-opensslextra --enable-opensslcoexist.

Please try the master branch of libwolfssl -- we'd appreciate feedback on the refactor. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants