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

boost undefined symbol error when linking with mold #2027

Open
Xephobia opened this issue Feb 27, 2024 · 2 comments
Open

boost undefined symbol error when linking with mold #2027

Xephobia opened this issue Feb 27, 2024 · 2 comments

Comments

@Xephobia
Copy link

Hi, I noticed that if we compile i2pd with the mold linker, it cannot launch, erroring with :
i2pd: symbol lookup error: /usr/lib64/libi2pdclient.so: undefined symbol: _ZN5boost10filesystem6detail28directory_iterator_constructERNS0_18directory_iteratorERKNS0_4pathEjPNS1_25directory_iterator_paramsEPNS_6system10error_codeE

version of i2p : 2.50.2 (same error on 2.48.0)
gcc version : 13.2.1 20240113
mold version : 2.4.0
OS : Gentoo Linux Hardened

@r4sas
Copy link
Member

r4sas commented Feb 27, 2024

Check how libi2pdclient.so was linked. Looks like libboost-filesystem was stripped.

@Xephobia
Copy link
Author

Xephobia commented Mar 8, 2024

The issue still occurs with FEATURES="nostrip" in gentoo. Here's the build log:
net-vpn:i2pd-2.50.2:20240308-172624.log

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

No branches or pull requests

2 participants