Summary: | devel/llvm18: -Wl,--version-script failing in 'configure' script tests / silent unexpected ABI changes | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | John Hein <jcfyecrayz> | ||||
Component: | Individual Port(s) | Assignee: | Brooks Davis <brooks> | ||||
Status: | New --- | ||||||
Severity: | Affects Some People | CC: | jcfyecrayz, kib | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(brooks) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
John Hein
2024-09-11 14:10:05 UTC
Created attachment 253502 [details]
[patch] address newer lld changes which choke on undefined symbols listed in linker scripts (--version-script)
Here's an initial patch I have for security/libtasn1 which changes the check for --version-script to try with --undefined-version if it fails the first attempt.
It might need need a PORTREVISION bump in case existing packages have been built that fail the --version-script check (and thus don't provide versioning info, and so technically this would be a change to the generated package). It may be a good idea to bump dependent ports that link with libtasn1 as well, but perhaps not necessary.
I'll open a separate bug for libtasn1, but I'm including it here so readers can see it as an example of the required fix (which could be fed upstream to the libtasn1 project).
It looks like gnulib needs to be updated to detect support for --undefined-version and use it when testing for --version-script (or this test needs to be altered to build an object containing the referenced symbols). It's unfortunate that --undefined-version is only about two years old in the BFD linker so it would be quite hard to argue for using it unconditionally. |