Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jul 2018 20:03:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 229845] emulators/virtualbox-ose-additions: macro from sys/priority.h conflicts with typedef in VirtualBox-5.2.14/include/VBox/types.h on base/head r336361
Message-ID:  <bug-229845-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229845

            Bug ID: 229845
           Summary: emulators/virtualbox-ose-additions: macro from
                    sys/priority.h conflicts with typedef in
                    VirtualBox-5.2.14/include/VBox/types.h on base/head
                    r336361
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: vbox@FreeBSD.org
          Reporter: Trond.Endrestol@ximalas.info
             Flags: maintainer-feedback?(vbox@FreeBSD.org)
          Assignee: vbox@FreeBSD.org
 Attachment #195212 text/plain
         mime type:

Created attachment 195212
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D195212&action=
=3Dedit
Patch for VirtualBox-5.2.14/include/VBox/types.h

Here's an extract from synth's build log.

In file included from
/construction/xports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2=
.14/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibCrOgl.cpp:32:
In file included from
/construction/xports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2=
.14/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibInternal.h:59:
In file included from
/construction/xports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2=
.14/include/VBox/VMMDev.h:31:
/construction/xports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2=
.14/include/VBox/types.h:78:37:
error: expected unqualified-id
typedef struct VM                  *PVM;
                                    ^
/usr/src/sys/sys/priority.h:104:16: note: expanded from macro 'PVM'
#define PVM                     (PRI_MIN_KERN + 4)
                                 ^
/usr/src/sys/sys/priority.h:100:24: note: expanded from macro 'PRI_MIN_KERN'
#define PRI_MIN_KERN            (80)
                                 ^
In file included from
/construction/xports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2=
.14/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibCrOgl.cpp:32:
In file included from
/construction/xports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2=
.14/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibInternal.h:59:
In file included from
/construction/xports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2=
.14/include/VBox/VMMDev.h:31:
/construction/xports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2=
.14/include/VBox/types.h:78:37:
error: expected ')'
/usr/src/sys/sys/priority.h:104:16: note: expanded from macro 'PVM'
#define PVM                     (PRI_MIN_KERN + 4)
                                 ^
/usr/src/sys/sys/priority.h:100:24: note: expanded from macro 'PRI_MIN_KERN'
#define PRI_MIN_KERN            (80)
                                 ^
/construction/xports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2=
.14/include/VBox/types.h:78:37:
note: to match this '('
/usr/src/sys/sys/priority.h:104:16: note: expanded from macro 'PVM'
#define PVM                     (PRI_MIN_KERN + 4)
                                 ^
/usr/src/sys/sys/priority.h:100:23: note: expanded from macro 'PRI_MIN_KERN'
#define PRI_MIN_KERN            (80)
                                ^

See attached patch for a possible solution.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229845-7788>