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.
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(+)
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(+)
Committed, thanks for your contribution!