Bug 159675 - emulators/virtualbox-ose-kmod is broken after recent pmap update in HEAD
Summary: emulators/virtualbox-ose-kmod is broken after recent pmap update in HEAD
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Virtualbox Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-11 11:10 UTC by xmirya
Modified: 2011-08-12 15:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xmirya 2011-08-11 11:10:11 UTC
emulators/virtualbox-ose-kmod won't compile.

cc -O2 -pipe -march=native -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -w -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -Iinclude -I. -Ir0drv -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -fno-omit-frame-pointer  -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option -c /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.0.12_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/memobj-r0drv-freebsd.c
/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.0.12_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/memobj-r0drv-freebsd.c: In function 'rtR0MemObjFreeBSDPhysPageInit':
/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.0.12_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/memobj-r0drv-freebsd.c:396: error: 'PG_UNMANAGED' undeclared (first use in this function)
/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.0.12_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/memobj-r0drv-freebsd.c:396: error: (Each undeclared identifier is reported only once
/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.0.12_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/memobj-r0drv-freebsd.c:396: error: for each function it appears in.)
*** Error code 1

Stop in /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.0.12_OSE/out/freebsd.amd64/release/bin/src/vboxdrv.

Fix: 

the port built with the kernel sources before that update still works
How-To-Repeat: cd /usr/ports/emulators/virtualbox-ose-kmod
make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-08-11 11:10:23 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vbox

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-08-12 15:45:27 UTC
decke       2011-08-12 14:45:18 UTC

  FreeBSD ports repository

  Added files:
    emulators/virtualbox-ose-additions/files 
                                             patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c 
    emulators/virtualbox-ose-kmod/files 
                                        patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c 
    emulators/virtualbox-ose-kmod-legacy/files 
                                               patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c 
  Log:
  - Fix PG_UNMANAGED compile problem on HEAD after r224746.
  
  Remove explicit initialization of m->flags and m->oflags because per
  default vm_phys_alloc_contig() already initializes the page as unmanaged.
  Chase move of PG_UNMANAGED flag from m->flags to m->oflags and renaming
  to VPO_UNMANAGED for an additional assert.
  
  PR:             ports/159675
  Reported by:    Kyryll A Mirnenko <xmirya@gmail.com>,
                  Michael Butler <imb@protected-networks.net>
  Thanks to:      beat
  
  Revision  Changes    Path
  1.1       +25 -0     ports/emulators/virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c (new)
  1.3       +25 -0     ports/emulators/virtualbox-ose-kmod-legacy/files/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c (new)
  1.3       +25 -0     ports/emulators/virtualbox-ose-kmod/files/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Bernhard Froehlich freebsd_committer freebsd_triage 2011-08-12 15:48:09 UTC
State Changed
From-To: open->closed

Fix was committed.