Bug 276277 - net/dpdk*: fix build warnings about symbols in version map file
Summary: net/dpdk*: fix build warnings about symbols in version map file
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Daniel Engberg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-12 15:20 UTC by Bruce Richardson
Modified: 2024-01-14 20:41 UTC (History)
1 user (show)

See Also:
linimon: maintainer-feedback+


Attachments
patch with 1-line fix to restore old linker behaviour for dpdk and dpdk-20.11 ports (824 bytes, patch)
2024-01-12 15:20 UTC, Bruce Richardson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!