FreeBSD Bugzilla – Attachment 244159 Details for
Bug 272991
emulators/virtualbox-ose-additions: build failed on 14-current "error: no member named 'auto_ptr' in namespace 'std'"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix build errors on 14-CURRENT
emulators-virtualbox-ose-additions-fix-build-errors- .patch (text/plain), 4.15 KB, created by
takahiro.kurosawa
on 2023-08-17 03:46:22 UTC
(
hide
)
Description:
Patch to fix build errors on 14-CURRENT
Filename:
MIME Type:
Creator:
takahiro.kurosawa
Created:
2023-08-17 03:46:22 UTC
Size:
4.15 KB
patch
obsolete
>From d89060ebfac686c3ca2b09fa3750f5f168032412 Mon Sep 17 00:00:00 2001 >From: KUROSAWA Takahiro <takahiro.kurosawa@gmail.com> >Date: Thu, 17 Aug 2023 11:39:50 +0900 >Subject: [PATCH] emulators/virtualbox-ose-additions: fix build errors on > 14-CURRENT > >Fix build failures: >* allow auto_ptr usage that has been removed since C++17 >* fix build errors on vboxvfs.ko around "enum vtype" that has been changed > since __FreeBSD_version 1400093 >--- > emulators/virtualbox-ose-additions/Makefile | 2 ++ > .../patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs.h | 10 ++++++++-- > ...rc_VBox_Additions_freebsd_vboxvfs_vboxvfs__vfsops.c | 2 +- > ...src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c | 2 +- > 4 files changed, 12 insertions(+), 4 deletions(-) > >diff --git a/emulators/virtualbox-ose-additions/Makefile b/emulators/virtualbox-ose-additions/Makefile >index 609337173458..6a2e8cbd2916 100644 >--- a/emulators/virtualbox-ose-additions/Makefile >+++ b/emulators/virtualbox-ose-additions/Makefile >@@ -99,6 +99,8 @@ post-patch: > @${ECHO_CMD} 'VBOX_WITH_X11_ADDITIONS = ${VBOX_WITH_X11}' >> \ > ${WRKSRC}/LocalConfig.kmk > @${ECHO_CMD} 'VBOX_GCC_std = -std=c++11' >> ${WRKSRC}/LocalConfig.kmk >+ @${ECHO_CMD} 'CXXDEFS += _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR' >> \ >+ ${WRKSRC}/LocalConfig.kmk > .if ${COMPILER_TYPE} == clang > @${REINPLACE_CMD} -e 's| -finline-limit=8000||' \ > -e 's| -fno-merge-constants||' \ >diff --git a/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs.h b/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs.h >index a4f94f92e148..3551533f2bcd 100644 >--- a/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs.h >+++ b/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs.h >@@ -9,7 +9,7 @@ > /* > * Copyright (C) 2010-2020 Oracle Corporation > * >-@@ -24,72 +19,371 @@ >+@@ -24,72 +19,377 @@ > #define VBOXVFS_VFSNAME "vboxvfs" > #define VBOXVFS_VERSION 1 > >@@ -134,6 +134,12 @@ > - int didrele; > +#include <VBox/VBoxGuestLibSharedFolders.h> > + >++#if __FreeBSD_version >= 1400093 >++typedef __enum_uint8(vtype) enum_vtype_t; >++#else >++typedef enum vtype enum_vtype_t; >++#endif >++ > +#define VBOXVFS_DEBUG(lvl, ...) do { \ > + if (vboxvfs_debug >= (lvl)) { \ > + printf("VBOXVFS[%u]: ", lvl); \ >@@ -323,7 +329,7 @@ > +void vboxfs_free_vp(struct vnode *); > + > +int vboxfs_alloc_node(struct mount *, struct vboxfs_mnt *, const char*, >-+ enum vtype, uid_t, gid_t, mode_t, struct vboxfs_node *, >++ enum_vtype_t, uid_t, gid_t, mode_t, struct vboxfs_node *, > + struct vboxfs_node **); > +void vboxfs_free_node(struct vboxfs_mnt *, struct vboxfs_node *); > + >diff --git a/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vfsops.c b/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vfsops.c >index c37baa13efc4..be9d416aa3bf 100644 >--- a/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vfsops.c >+++ b/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vfsops.c >@@ -130,7 +130,7 @@ > + */ > +int > +vboxfs_alloc_node(struct mount *mp, struct vboxfs_mnt *vsfmp, const char *fullpath, >-+ enum vtype type, uid_t uid, gid_t gid, mode_t mode, struct vboxfs_node *parent, >++ enum_vtype_t type, uid_t uid, gid_t gid, mode_t mode, struct vboxfs_node *parent, > + struct vboxfs_node **node) > { > - struct vboxvfs_mount_info args; >diff --git a/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c b/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c >index b2f56a2bbd28..d0da1fbf3f45 100644 >--- a/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c >+++ b/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c >@@ -420,7 +420,7 @@ > + */ > +static int > +vboxfs_alloc_file(struct vboxfs_mnt *vboxfsmp, const char *fullpath, >-+ enum vtype type, mode_t mode, struct vboxfs_node *parent, >++ enum_vtype_t type, mode_t mode, struct vboxfs_node *parent, > + int lkflag, struct vnode **vpp) > { > - return 0; >-- >2.41.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
grahamperrin
:
maintainer-approval?
(
vbox
)
Actions:
View
|
Diff
Attachments on
bug 272991
: 244159 |
244169
|
244185