Bug 229561 - emulators/virtualbox-ose-kmod: compiler error: type name requires a specifier or qualifier
Summary: emulators/virtualbox-ose-kmod: compiler error: type name requires a specifier...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Jung-uk Kim
URL:
Keywords:
: 229845 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-07-06 05:47 UTC by O. Hartmann
Modified: 2018-07-17 22:15 UTC (History)
6 users (show)

See Also:
bugzilla: maintainer-feedback? (vbox)


Attachments
Crude patch (225 bytes, patch)
2018-07-09 06:39 UTC, K Staring
no flags Details | Diff
SVN diff based on K Staring's patch (807 bytes, patch)
2018-07-09 15:32 UTC, Tobias Kortkamp
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2018-07-06 05:47:40 UTC
On CURRENT >= r335873 compilation of several ports started failing, including emulators/virtualbox-ose-kmod (5.2.12 as well as 5.2.14) with the error shown below. On poudriere jails prior to r335873, compilation runs smooth.

[...]
cc  -O2 -pipe -fno-strict-aliasing -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX -DRT_WITH_VBOX -w -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64  -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -Iinclude -I. -Ir0drv -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -MD  -MF.depend.logformat.o -MTlogformat.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member  -mno-aes -mno-avx  -std=iso9899:1999 -c /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-5.2.14/out/freebsd.amd64/release/bin/src/vboxdrv/common/log/logformat.c -o logformat.o
--- SUPDrvSem.o ---
In file included from SUPDrvSem.c:33:
--- SUPDrvGip.o ---
In file included from SUPDrvGip.c:33:
./SUPDrvInternal.h:495:5: error: type name requires a specifier or qualifier
    PVM                             pSessionVM;
    ^
/usr/src/sys/sys/priority.h:104:15: note: expanded from macro 'PVM'
#define PVM                     (PRI_MIN_KERN + 4)
Comment 1 K Staring 2018-07-09 06:39:24 UTC
Created attachment 194978 [details]
Crude patch

This patch fixes the problem, although it's a rather crude one.
Comment 2 Tobias Kortkamp freebsd_committer freebsd_triage 2018-07-09 15:32:13 UTC
Created attachment 195000 [details]
SVN diff based on K Staring's patch

Thanks. It seems to solve the problem however crude it may be :)

Here it is in a nicer form that's appliable with svn patch.
Comment 3 Jung-uk Kim freebsd_committer freebsd_triage 2018-07-11 16:18:24 UTC
This should be fixed by r474458.
Comment 4 Jung-uk Kim freebsd_committer freebsd_triage 2018-07-17 22:15:18 UTC
*** Bug 229845 has been marked as a duplicate of this bug. ***