| Summary: | sys-fs/cryptsetup-2.4.0: ./.libs/libcryptsetup.so: error: undefined reference to 'dlopen' | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Matt Whitlock <gentoo> |
| Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| See Also: |
https://gitlab.com/cryptsetup/cryptsetup/-/issues/666 https://gitlab.com/cryptsetup/cryptsetup/-/merge_requests/207 https://bugs.gentoo.org/show_bug.cgi?id=813441 |
||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | build.log | ||
|
Description
Matt Whitlock
2021-08-22 17:30:50 UTC
I'm unable to reproduce this failure. It does seem like "-ldl" is missing from the link command, but I can't get ld to complain about it. Could you please open an issue upstream? https://gitlab.com/cryptsetup/cryptsetup I've been having the issue too. I'm running the latest unstable, maybe it's a gcc-11 thing? (In reply to Mike Gilbert from comment #1) > I'm unable to reproduce this failure. The link succeeds if I use the BFD linker but fails with Gold. (In reply to Mike Gilbert from comment #2) > Could you please open an issue upstream? > > https://gitlab.com/cryptsetup/cryptsetup Upstream bug #666: https://gitlab.com/cryptsetup/cryptsetup/-/issues/666 Thanks for the hint about ld.gold. I can reproduce the issue with the following config:
LDFLAGS="-O2 -fuse-ld=gold -Wl,--as-needed"
USE="-argon2"
It looks like libargon2.pc has this:
Libs: -L${libdir} -largon2 -lrt -ldl
Having "-lrt -ldl" in Libs is probably incorrect; they should be in Libs.private instead.
Anyway, this mistake in libargon2.pc hides the underlinking problem in cryptsetup.
The changes in this merge request should resolve it.
https://gitlab.com/cryptsetup/cryptsetup/-/merge_requests/207
Should be resolved in cryptsetup-2.4.1. |