Bug 276277

Summary: net/dpdk*: fix build warnings about symbols in version map file
Product: Ports & Packages Reporter: Bruce Richardson <bruce.richardson>
Component: Individual Port(s)Assignee: Daniel Engberg <diizzy>
Status: Closed FIXED    
Severity: Affects Only Me CC: diizzy
Priority: --- Flags: linimon: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch with 1-line fix to restore old linker behaviour for dpdk and dpdk-20.11 ports none

Description Bruce Richardson 2024-01-12 15:20:23 UTC
Created attachment 247607 [details]
patch with 1-line fix to restore old linker behaviour for dpdk and dpdk-20.11 ports

The latest versions of ld are throwing warnings/errors about entries in the linker script that don't exist in the actual build. For DPDK, there are functions in the linker script (version.map) which only exist on linux (and sometimes only on windows) but not on BSD. To avoid warnings/errors, we can restore old behaviour by adding the "-Wl,--undefined-version" flag to the build.
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-01-14 20:37:35 UTC
A commit in branch main references this bug:

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

commit 89bcc8c4a4c73820d3a02f5ae2da038aff66cd02
Author:     Bruce Richardson <bruce.richardson@intel.com>
AuthorDate: 2024-01-14 08:12:56 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-01-14 20:28:30 +0000

    net/dpdk-20.11: Fix build warnings about symbols in version map file

    The latest versions of ld are throwing warnings/errors about entries in
    the linker script that don't exist in the actual build. For DPDK, there
    are functions in the linker script (version.map) which only exist on Linux
    (and sometimes only on Windows) but not on BSD. To avoid warnings/errors,
    we can restore old behaviour by adding the "-Wl,--undefined-version"
    flag to the build.

    PR:             276277

 net/dpdk-20.11/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-01-14 20:37:47 UTC
A commit in branch main references this bug:

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

commit a11f3cf1acfa50cb00aae97b629e5163a7b6cb7b
Author:     Bruce Richardson <bruce.richardson@intel.com>
AuthorDate: 2024-01-14 08:11:02 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-01-14 20:28:30 +0000

    net/dpdk: Fix build warnings about symbols in version map file

    The latest versions of ld are throwing warnings/errors about entries in
    the linker script that don't exist in the actual build. For DPDK, there
    are functions in the linker script (version.map) which only exist on Linux
    (and sometimes only on Windows) but not on BSD. To avoid warnings/errors,
    we can restore old behaviour by adding the "-Wl,--undefined-version"
    flag to the build.

    PR:             276277

 net/dpdk/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2024-01-14 20:41:52 UTC
Committed, thanks for your contribution!