[Bug 274000] devel/talloc: fix build with lld 17

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 21 Sep 2023 16:44:01 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274000

            Bug ID: 274000
           Summary: devel/talloc: fix build with lld 17
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: timur@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(timur@FreeBSD.org)
          Assignee: timur@FreeBSD.org

Building devel/talloc with lld 17 results in the following link error:

08:58:52 runner ['cc',
'-Wl,--version-script=/wrkdirs/usr/ports/devel/talloc/work/talloc-2.3.4/bin/default/talloc.vscript',
'-shared', '-Wl,-h,libtalloc.so.2', 'talloc.c.6.o',
'lib/replace/replace.c.2.o', 'lib/replace/strptime.c.2.o',
'lib/replace/xattr.c.2.o',
'-o/wrkdirs/usr/ports/devel/talloc/work/talloc-2.3.4/bin/default/libtalloc.so',
'-Wl,-Bstatic', '-Wl,-Bdynamic', '-fstack-protector-strong',
'-Wl,-no-undefined']
ld: error: version script assignment of 'local' to symbol '_end' failed: symbol
not defined
ld: error: version script assignment of 'local' to symbol '__bss_start' failed:
symbol not defined
ld: error: version script assignment of 'local' to symbol '_edata' failed:
symbol not defined
cc: error: linker command failed with exit code 1 (use -v to see invocation)
script file to fix the error.

Since the linker version scripts are generated dynamically, suppress
errors with lld >= 17 due to these undefined symbols.

-- 
You are receiving this mail because:
You are the assignee for the bug.