Commit 17271d3143c9325720511ee9a4508085b8f18e39 contains these two lines from the file files/patch-src_VBox_Runtime_r3_xml.cpp: ++#if LIBXML_VERSION >= 21206 ++static void xmlStructuredErrorFunc(void *userData, const xmlError *error) RT_NOTHROW_DEF libxml2 version 2.14.3 (currently being integrated into the ports tree, see bug #279705) defines LIBXMP_VERSION as 21403 (i.e. greater than 21206), but contains no definition for RT_NOTHROW_DEF, thereby causing a compile error. Removing RT_NOTHROW_DEF from the patch file allows compiling to succeed.
RT_NOTHROW_DEF is defined in VirtualBox itself, but was only introduced in version 7.0. The patch was copied from newer version along with RT_NOTHROW_DEF. Good catch!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=2314a49511237890c2f018fde71e81766c54c9ff commit 2314a49511237890c2f018fde71e81766c54c9ff Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-06-04 01:04:04 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-06-04 01:04:04 +0000 emulators/virtualbox-ose{,-legacy}: Fix patch for build with libxml2 2.12.6+ Remove RT_NOTHROW_DEF: it is defined in VirtualBox itself, but was only introduced in version 7.0. PR: 287284 279958 Fixes: 17271d3143c9 (Fix build with libxml2 2.12.6+) emulators/virtualbox-ose-legacy/files/patch-src_VBox_Runtime_r3_xml.cpp | 2 +- emulators/virtualbox-ose/files/patch-src_VBox_Runtime_r3_xml.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Thanks!
Thanks for the quick resolution! Do you happen to know if version 7.0 removes the dependency on llvm14?
(In reply to George Mitchell from comment #4) You can check this self: https://cgit.freebsd.org/ports/commit/emulators/virtualbox-ose-70/Makefile?id=f24fdd9f85160185dfe981a8bba587246e7db148 (-8
TBW, there is 7.1 in ports too.
(In reply to Vladimir Druzenko from comment #6) s/TBW/BTW/ :-)
If I get brave, I'll try version 7.1.