Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915199 - sys-libs/ldb-2.8.0 fails to link with clang-17: ld.lld: error: version script assignment of 'local' to symbol '_end' failed: symbol not defined
Summary: sys-libs/ldb-2.8.0 fails to link with clang-17: ld.lld: error: version script...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LD-is-lld, systemwide-lld 912821
  Show dependency tree
 
Reported: 2023-10-05 09:17 UTC by ppw0
Modified: 2024-08-06 03:14 UTC (History)
3 users (show)

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


Attachments
build log (sys-libs:ldb-2.8.0:20231005-090432.log,53.18 KB, text/x-log)
2023-10-05 09:17 UTC, ppw0
Details
emerge --info (emerge_info.log,7.38 KB, text/x-log)
2023-10-05 09:18 UTC, ppw0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ppw0 2023-10-05 09:17:44 UTC
Created attachment 872152 [details]
build log

In a clang-17[default-libcxx] environment, sys-libs:ldb-2.8.0 will fail to link during emerge with the following error message:

```
ld.lld: error: version script assignment of 'local' to symbol '_end' failed: symbol not defined
ld.lld: error: version script assignment of 'local' to symbol '__bss_start' failed: symbol not defined
ld.lld: error: version script assignment of 'local' to symbol '_edata' failed: symbol not defined
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Waf: Leaving directory `/var/tmp/portage/sys-libs/ldb-2.8.0/work/ldb-2.8.0-abi_x86_64.amd64/bin/default'
Build failed
 -> task in 'replace' failed with exit status 1: 
	{task 124820684176112: cshlib replace.c.3.o -> libreplace-ldb.so}
```

This can be avoided by passing "-Wl,--undefined-version" to LDFLAGS.

Attaching logs.
Comment 1 ppw0 2023-10-05 09:18:26 UTC
Created attachment 872153 [details]
emerge --info
Comment 2 wolfgang 2024-05-13 17:33:58 UTC
Can confirm this error still exists as of =sys-libs/ldb-2.9.0
Comment 3 Mosaic J 2024-08-06 03:14:05 UTC
Can confirm the same error still exist as of 2.9.1