Bug 273789

Summary: textproc/libxml2: fix build with lld 17
Product: Ports & Packages Reporter: Dimitry Andric <dim>
Component: Individual Port(s)Assignee: freebsd-desktop (Team) <desktop>
Status: Closed FIXED    
Severity: Affects Some People CC: tcberner
Priority: --- Flags: tcberner: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 273753    
Attachments:
Description Flags
textproc/libxml2: fix build with lld 17 none

Description Dimitry Andric freebsd_committer freebsd_triage 2023-09-14 17:06:29 UTC
Many symbols in the linker version script libxml2.syms are only defined
when --with-xptr-locs is enabled at configure time. Since version
scripts do not support conditionals, suppress errors with lld >= 17 due
to these undefined symbols.

Note that upstream fixed this in their configure.ac in https://gitlab.gnome.org/GNOME/libxml2/-/commit/a8fe4900b, but these changes will only arrive in 2.12.0.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2023-09-14 17:06:58 UTC
Created attachment 244846 [details]
textproc/libxml2: fix build with lld 17
Comment 2 Tobias C. Berner freebsd_committer freebsd_triage 2023-09-15 08:59:34 UTC
@dim, please feel free to just commit your changes to desktop@ and kde@ ports with a blanket approval.
Thanks for the work!


mfg Tobias
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-09-15 13:28:13 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b259f84ad7999066d9c85b5fcba3fbcb29d41915

commit b259f84ad7999066d9c85b5fcba3fbcb29d41915
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-09-14 17:04:19 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-09-15 13:25:49 +0000

    textproc/libxml2: fix build with lld 17

    Many symbols in the linker version script libxml2.syms are only defined
    when --with-xptr-locs is enabled at configure time. Since version
    scripts do not support conditionals, suppress errors with lld >= 17 due
    to these undefined symbols.

    PR:             273789
    MFH:            2023Q3
    Approved by:    blanket (for desktop and kde)

 textproc/libxml2/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)