virtualbox-ose 4.0.8 fails

2011-07-26 Thread Ben Ellis
 On Saturday 25 June 2011 10:28 am, Bernhard Froehlich wrote:
 On Fri, 24 Jun 2011 16:11:27 -0400, Jung-uk Kim wrote:
  On Friday 24 June 2011 02:58 pm, George Kontostanos wrote:
  On Fri, Jun 24, 2011 at 9:51 PM, Jung-uk Kim jkim at freebsd.org
 
  wrote:
   Any ideas regarding the virtualbox itself ?
  
   I am rebuilding world/kernel now. �After that, I'll rebuild
   virtualbox-ose and try to fix it unless someone beat me to it.
  
   :-)
  
   Jung-uk Kim
 
  Brilliant !!!
 
  Please try this patch:
 
  http://people.freebsd.org/~jkim/patch-src-VBox-Main-src-server-fr
 eebsd-HostHardwareFreeBSD.cpp
 
  Just drop this in ports/emulators/virtualbox-ose/files and
  rebuild.

 Thanks a lot, they look good. Do you agree that those two patches
 are licensed under MIT License so that i can push them upstream?

 Yes, of course.  Please feel free.

Hi guys,

I am still having this issue building virtualbox on freebsd-current.

I initially had some errors with some lib32 files (crt*) but thought I
had over-come these issues.
The HostHardwareFreeBSD.cpp patch described above appears to have been
applied already, so I am at a loss as to what do next.

It's a fairly vanilla build, the main difference is that I used the
text installer to get a GUI-less build (for my headless machine).
For this reason, I have also excluded qt in the virtualbox-ose config.

As this is my first post on here, please allow me to overshare my
setup, as well as the actual error below:

Cheers


# uname -a
FreeBSD jupiter 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Thu May 12
15:34:46 UTC 2011
r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

# grep \= /usr/ports/emulators/virtualbox-ose/Makefile | head -2
PORTNAME=       virtualbox-ose
DISTVERSION=    4.0.12

# grep -v \# /var/db/ports/virtualbox-ose/options
_OPTIONS_READ=virtualbox-ose-4.0.12
WITHOUT_QT4=true
WITHOUT_DEBUG=true
WITH_GUESTADDITIONS=true
WITH_DBUS=true
WITHOUT_PULSEAUDIO=true
WITHOUT_X11=true
WITH_VDE=true
WITH_VNC=true
WITHOUT_WEBSERVICE=true
WITHOUT_NLS=true

# And the final stage of the build...
kBuild: Pass - Programs
kBuild: Compiling VBoxSVC -
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.12_OSE/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp
kBuild: Compiling VBoxSVC -
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.12_OSE/src/VBox/Main/src-server/freebsd/PerformanceFreeBSD.cpp
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.12_OSE/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp:
In function 'int getDVDInfoFromCAM(DriveInfoList*, bool*)':
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.12_OSE/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp:195:
error: 'struct device_match_pattern' has no member named 'data'
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.12_OSE/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp:196:
error: 'struct device_match_pattern' has no member named 'data'
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.12_OSE/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp:197:
error: 'struct device_match_pattern' has no member named 'data'
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.12_OSE/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp:198:
error: 'struct device_match_pattern' has no member named 'data'
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.12_OSE/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp:199:
error: 'struct device_match_pattern' has no member named 'data'
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.12_OSE/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp:253:
warning: invalid conversion from 'int' to 'periph_pattern_flags'
kmk: *** 
[/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.12_OSE/out/freebsd.amd64/release/obj/VBoxSVC/src-server/freebsd/HostHardwareFreeBSD.o]
Error 1
The failing command:
@c++ -c -O2 -g -pipe -Wshadow  -Wno-long-long -Wno-variadic-macros
-Wno-long-long -Wno-non-virtual-dtor -Wshadow -fshort-wchar
-fpermissive -fexceptions -frtti -O2 -mtune=generic
-fno-omit-frame-pointer -fno-strict-aliasing
-fvisibility-inlines-hidden -fvisibility=hidden
-DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -g -pipe
-Wshadow -Wno-long-long -Wno-variadic-macros -Wno-long-long
-Wno-non-virtual-dtor -Wshadow -fshort-wchar -fpermissive -fexceptions
-frtti -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing
-fvisibility-inlines-hidden -fvisibility=hidden
-DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -m64
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.12_OSE/src/VBox/Main/include
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.12_OSE/out/freebsd.amd64/release/obj/VBoxSVC
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.12_OSE/out/freebsd.amd64/release/obj/Main/
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.12_OSE/src/VBox/Main
-I/usr/include -I/usr/X11R6/include -I/usr/local/include

Re: virtualbox-ose 4.0.8 fails

2011-07-26 Thread Jung-uk Kim
On Tuesday 26 July 2011 08:00 am, Ben Ellis wrote:
  On Saturday 25 June 2011 10:28 am, Bernhard Froehlich wrote:
  On Fri, 24 Jun 2011 16:11:27 -0400, Jung-uk Kim wrote:
   On Friday 24 June 2011 02:58 pm, George Kontostanos wrote:
   On Fri, Jun 24, 2011 at 9:51 PM, Jung-uk Kim jkim at
   freebsd.org
  
   wrote:
Any ideas regarding the virtualbox itself ?
   
I am rebuilding world/kernel now. 占�After that, I'll
rebuild virtualbox-ose and try to fix it unless someone
beat me to it.
   
:-)
   
Jung-uk Kim
  
   Brilliant !!!
  
   Please try this patch:
  
   http://people.freebsd.org/~jkim/patch-src-VBox-Main-src-server
  -fr eebsd-HostHardwareFreeBSD.cpp
  
   Just drop this in ports/emulators/virtualbox-ose/files and
   rebuild.
 
  Thanks a lot, they look good. Do you agree that those two
  patches are licensed under MIT License so that i can push them
  upstream?
 
  Yes, of course.  Please feel free.

 Hi guys,

 I am still having this issue building virtualbox on
 freebsd-current.

 I initially had some errors with some lib32 files (crt*) but
 thought I had over-come these issues.
 The HostHardwareFreeBSD.cpp patch described above appears to have
 been applied already, so I am at a loss as to what do next.

 It's a fairly vanilla build, the main difference is that I used the
 text installer to get a GUI-less build (for my headless machine).
 For this reason, I have also excluded qt in the virtualbox-ose
 config.

 As this is my first post on here, please allow me to overshare my
 setup, as well as the actual error below:

 Cheers


 # uname -a
 FreeBSD jupiter 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Thu May 12
 15:34:46 UTC 2011
 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

[SNIP]

Your world/kernel is too old.  Rebuild and install world/kernel or 
install 9.0-BETA1 when it is ready.

Jung-uk Kim
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-27 Thread Sergey V. Dyatko
On Sat, 25 Jun 2011 16:28:41 +0200
Bernhard Froehlich de...@freebsd.org wrote:

 On Fri, 24 Jun 2011 16:11:27 -0400, Jung-uk Kim wrote:
  On Friday 24 June 2011 02:58 pm, George Kontostanos wrote:
  On Fri, Jun 24, 2011 at 9:51 PM, Jung-uk Kim j...@freebsd.org
  wrote:
   Any ideas regarding the virtualbox itself ?
  
   I am rebuilding world/kernel now. �After that, I'll rebuild
   virtualbox-ose and try to fix it unless someone beat me to it.
   :-)
  
   Jung-uk Kim
 
  Brilliant !!!
  
  Please try this patch:
  
  http://people.freebsd.org/~jkim/patch-src-VBox-Main-src-server-freebsd-HostHardwareFreeBSD.cpp
  
  Just drop this in ports/emulators/virtualbox-ose/files and rebuild.
 
 Thanks a lot, they look good. Do you agree that those two patches are
 licensed under MIT License so that i can push them upstream?
 
Hi, 

Works good for me (head, amd64).
Pushing patches into upstream is a good idea. What prevents
to put them in ports tree now?


-- 
wbr, tiger

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-27 Thread Bernhard Froehlich
On Mon, 27 Jun 2011 10:54:08 +0300, Sergey V. Dyatko wrote:
 On Sat, 25 Jun 2011 16:28:41 +0200
 Bernhard Froehlich de...@freebsd.org wrote:
 
 On Fri, 24 Jun 2011 16:11:27 -0400, Jung-uk Kim wrote:
  On Friday 24 June 2011 02:58 pm, George Kontostanos wrote:
  On Fri, Jun 24, 2011 at 9:51 PM, Jung-uk Kim j...@freebsd.org
  wrote:
   Any ideas regarding the virtualbox itself ?
  
   I am rebuilding world/kernel now. �After that, I'll rebuild
   virtualbox-ose and try to fix it unless someone beat me to it.
   :-)
  
   Jung-uk Kim
 
  Brilliant !!!
 
  Please try this patch:
 
  http://people.freebsd.org/~jkim/patch-src-VBox-Main-src-server-freebsd-HostHardwareFreeBSD.cpp
 
  Just drop this in ports/emulators/virtualbox-ose/files and rebuild.

 Thanks a lot, they look good. Do you agree that those two patches are
 licensed under MIT License so that i can push them upstream?

 Hi, 
 
 Works good for me (head, amd64).
 Pushing patches into upstream is a good idea. What prevents
 to put them in ports tree now?

I just waited for some feedback as I could not test it myself right
now.

-- 
Bernhard Fröhlich
http://www.bluelife.at/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-27 Thread Matt

On 06/27/11 02:49, Bernhard Froehlich wrote:

On Mon, 27 Jun 2011 10:54:08 +0300, Sergey V. Dyatko wrote:

On Sat, 25 Jun 2011 16:28:41 +0200
Bernhard Froehlichde...@freebsd.org  wrote:


On Fri, 24 Jun 2011 16:11:27 -0400, Jung-uk Kim wrote:

On Friday 24 June 2011 02:58 pm, George Kontostanos wrote:

On Fri, Jun 24, 2011 at 9:51 PM, Jung-uk Kimj...@freebsd.org

wrote:

Any ideas regarding the virtualbox itself ?

I am rebuilding world/kernel now. �After that, I'll rebuild
virtualbox-ose and try to fix it unless someone beat me to it.
:-)

Jung-uk Kim

Brilliant !!!

Please try this patch:

http://people.freebsd.org/~jkim/patch-src-VBox-Main-src-server-freebsd-HostHardwareFreeBSD.cpp

Just drop this in ports/emulators/virtualbox-ose/files and rebuild.

Thanks a lot, they look good. Do you agree that those two patches are
licensed under MIT License so that i can push them upstream?


Hi,

Works good for me (head, amd64).
Pushing patches into upstream is a good idea. What prevents
to put them in ports tree now?

I just waited for some feedback as I could not test it myself right
now.



Worked on my machines running a VM with two procs, also was able to 
complete two different OS installs. No issues for what it's worth.


Thanks again,
Matt

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-27 Thread Jung-uk Kim
On Saturday 25 June 2011 10:28 am, Bernhard Froehlich wrote:
 On Fri, 24 Jun 2011 16:11:27 -0400, Jung-uk Kim wrote:
  On Friday 24 June 2011 02:58 pm, George Kontostanos wrote:
  On Fri, Jun 24, 2011 at 9:51 PM, Jung-uk Kim j...@freebsd.org
 
  wrote:
   Any ideas regarding the virtualbox itself ?
  
   I am rebuilding world/kernel now. �After that, I'll rebuild
   virtualbox-ose and try to fix it unless someone beat me to it.
  
   :-)
  
   Jung-uk Kim
 
  Brilliant !!!
 
  Please try this patch:
 
  http://people.freebsd.org/~jkim/patch-src-VBox-Main-src-server-fr
 eebsd-HostHardwareFreeBSD.cpp
 
  Just drop this in ports/emulators/virtualbox-ose/files and
  rebuild.

 Thanks a lot, they look good. Do you agree that those two patches
 are licensed under MIT License so that i can push them upstream?

Yes, of course.  Please feel free.

Jung-uk Kim
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-27 Thread Bernhard Froehlich
On Mon, 27 Jun 2011 11:40:31 -0400, Jung-uk Kim wrote:
 On Saturday 25 June 2011 10:28 am, Bernhard Froehlich wrote:
 On Fri, 24 Jun 2011 16:11:27 -0400, Jung-uk Kim wrote:
  On Friday 24 June 2011 02:58 pm, George Kontostanos wrote:
  On Fri, Jun 24, 2011 at 9:51 PM, Jung-uk Kim j...@freebsd.org
 
  wrote:
   Any ideas regarding the virtualbox itself ?
  
   I am rebuilding world/kernel now. �After that, I'll rebuild
   virtualbox-ose and try to fix it unless someone beat me to it.
  
   :-)
  
   Jung-uk Kim
 
  Brilliant !!!
 
  Please try this patch:
 
  http://people.freebsd.org/~jkim/patch-src-VBox-Main-src-server-fr
 eebsd-HostHardwareFreeBSD.cpp
 
  Just drop this in ports/emulators/virtualbox-ose/files and
  rebuild.

 Thanks a lot, they look good. Do you agree that those two patches
 are licensed under MIT License so that i can push them upstream?
 
 Yes, of course.  Please feel free.

Shouldn't the changes only be done for __FreeBSD_version = 900038 ?
It's also not fully correct because the version wasn't bumped for the
CAM changes but it's the best we can get.

The same is true for the cpuset_t change but the version wasn't bumped
either.

http://svnweb.freebsd.org/base?view=revisionrevision=223081
http://svnweb.freebsd.org/base?view=revisionrevision=222813

-- 
Bernhard Froehlich
http://www.bluelife.at/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-27 Thread Jung-uk Kim
On Monday 27 June 2011 03:42 pm, Bernhard Froehlich wrote:
 On Mon, 27 Jun 2011 11:40:31 -0400, Jung-uk Kim wrote:
  On Saturday 25 June 2011 10:28 am, Bernhard Froehlich wrote:
  On Fri, 24 Jun 2011 16:11:27 -0400, Jung-uk Kim wrote:
   On Friday 24 June 2011 02:58 pm, George Kontostanos wrote:
   On Fri, Jun 24, 2011 at 9:51 PM, Jung-uk Kim
   j...@freebsd.org
  
   wrote:
Any ideas regarding the virtualbox itself ?
   
I am rebuilding world/kernel now. �After that, I'll rebuild
virtualbox-ose and try to fix it unless someone beat me to
it.
   
:-)
   
Jung-uk Kim
  
   Brilliant !!!
  
   Please try this patch:
  
   http://people.freebsd.org/~jkim/patch-src-VBox-Main-src-server
  -fr eebsd-HostHardwareFreeBSD.cpp
  
   Just drop this in ports/emulators/virtualbox-ose/files and
   rebuild.
 
  Thanks a lot, they look good. Do you agree that those two
  patches are licensed under MIT License so that i can push them
  upstream?
 
  Yes, of course.  Please feel free.

 Shouldn't the changes only be done for __FreeBSD_version = 900038
 ? It's also not fully correct because the version wasn't bumped for
 the CAM changes but it's the best we can get.

 The same is true for the cpuset_t change but the version wasn't
 bumped either.

 http://svnweb.freebsd.org/base?view=revisionrevision=223081
 http://svnweb.freebsd.org/base?view=revisionrevision=222813

To be absolutely correct, yes, we need to bump __FreeBSD_version 
first.  However, it is very close to feature freeze and I don't think 
anybody wants to do that ATM.  For -CURRENT, I don't think it really 
matters as I said earlier:

http://docs.freebsd.org/cgi/mid.cgi?201106241352.14262.jkim

Now, are you going to fix __FreeBSD_version = 70 in these 
files, too? ;-)

Jung-uk Kim
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-25 Thread Bernhard Froehlich
On Fri, 24 Jun 2011 16:11:27 -0400, Jung-uk Kim wrote:
 On Friday 24 June 2011 02:58 pm, George Kontostanos wrote:
 On Fri, Jun 24, 2011 at 9:51 PM, Jung-uk Kim j...@freebsd.org
 wrote:
  Any ideas regarding the virtualbox itself ?
 
  I am rebuilding world/kernel now. �After that, I'll rebuild
  virtualbox-ose and try to fix it unless someone beat me to it.
  :-)
 
  Jung-uk Kim

 Brilliant !!!
 
 Please try this patch:
 
 http://people.freebsd.org/~jkim/patch-src-VBox-Main-src-server-freebsd-HostHardwareFreeBSD.cpp
 
 Just drop this in ports/emulators/virtualbox-ose/files and rebuild.

Thanks a lot, they look good. Do you agree that those two patches are
licensed under MIT License so that i can push them upstream?

-- 
Bernhard Froehlich
http://www.bluelife.at/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


virtualbox-ose 4.0.8 fails

2011-06-24 Thread George Kontostanos
Hi everyone,

I am trying to compile virtualbox-ose 4.0.8 but it fails with

/out/freebsd.amd64/debug -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE
-DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING
-DRTPATH_APP_PRIVATE=\/usr/local/share/virtualbox-ose\
-DRTPATH_APP_PRIVATE_ARCH=\/usr/local/lib/virtualbox\
-DRTPATH_SHARED_LIBS=\/usr/local/lib/virtualbox\
-DRTPATH_APP_DOCS=\/usr/local/share/doc/virtualbox-ose\
-DRT_LOCK_STRICT -DRT_LOCK_STRICT_ORDER -DDEBUG -DDEBUG_gkontos
-DDEBUG_USERNAME=gkontos -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64
-D__AMD64__ -DIN_RING3 -DUNICODE -DNDEBUG=1 -DVBOX_WITH_XPCOM
-DVBOX_MAIN_SETTINGS_ADDONS -DIN_VMM_STATIC
-DVBOX_WITH_SYS_V_IPC_SESSION_WATCHER -DVBOX_WITH_RAW_MODE
-DVBOX_WITH_NETFLT -DVBOX_WITH_CROGL -DVBOX_WITH_GUEST_PROPS
-DVBOX_WITH_GUEST_CONTROL -DVBOX_WITH_HOSTNETIF_API -DVBOX_WITH_VDE
-DVBOX_WITH_NEW_SYS_V_KEYGEN -DVBOX_WITH_VBOXSDL -DVBOX_WITH_HEADLESS
-DVBOX_WITH_QTGUI -DVBOX_WITH_HGCM -DVBOX_WITH_ALSA -DVBOX_WITH_E1000
-DVBOX_WITH_VIRTIO -DVBOX_WITH_AHCI -DVBOX_WITH_LSILOGIC
-DVBOX_WITH_RESOURCE_USAGE_API -DVBOX_WITH_PDM_ASYNC_COMPLETION
-DVBOX_WITH_EXTPACK -DVBOX_WITH_VUSB -DVBOX_WITH_S3 -DVBOX_WITH_USB
-DVBOX_WITH_NEW_USB_CODE_ON_DARWIN -DVBOX_WITH_HOSTNETIF_API
-DVBOX_USE_LIBHAL
-Wp,-MD,/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.8_OSE/out/freebsd.amd64/debug/obj/VBoxSVC/src-server/freebsd/HostHardwareFreeBSD.o.dep
-Wp,-MT,/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.8_OSE/out/freebsd.amd64/debug/obj/VBoxSVC/src-server/freebsd/HostHardwareFreeBSD.o
-Wp,-MP -o 
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.8_OSE/out/freebsd.amd64/debug/obj/VBoxSVC/src-server/freebsd/HostHardwareFreeBSD.o
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.8_OSE/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp
kmk: *** Waiting for unfinished jobs
kmk: *** Exiting with status 2
*** Error code 2

Stop in /usr/ports/emulators/virtualbox-ose.
*** Error code 1

Stop in /usr/ports/emulators/virtualbox-ose.

I have even try to build with debug symbols but I don't see anything
different. The system is running GENERIC kernel with debug options
disabled.

options COMPAT_FREEBSD32

Is included in the kernel as I saw that this has caused similar
problems in the past.

Any help would be appreciated
-- 
George Kontostanos
aisecure.net
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-24 Thread Matt

On 06/24/11 09:41, George Kontostanos wrote:

Hi everyone,

I am trying to compile virtualbox-ose 4.0.8 but it fails with

/out/freebsd.amd64/debug -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE
-DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING
-DRTPATH_APP_PRIVATE=\/usr/local/share/virtualbox-ose\
-DRTPATH_APP_PRIVATE_ARCH=\/usr/local/lib/virtualbox\
-DRTPATH_SHARED_LIBS=\/usr/local/lib/virtualbox\
-DRTPATH_APP_DOCS=\/usr/local/share/doc/virtualbox-ose\
-DRT_LOCK_STRICT -DRT_LOCK_STRICT_ORDER -DDEBUG -DDEBUG_gkontos
-DDEBUG_USERNAME=gkontos -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64
-D__AMD64__ -DIN_RING3 -DUNICODE -DNDEBUG=1 -DVBOX_WITH_XPCOM
-DVBOX_MAIN_SETTINGS_ADDONS -DIN_VMM_STATIC
-DVBOX_WITH_SYS_V_IPC_SESSION_WATCHER -DVBOX_WITH_RAW_MODE
-DVBOX_WITH_NETFLT -DVBOX_WITH_CROGL -DVBOX_WITH_GUEST_PROPS
-DVBOX_WITH_GUEST_CONTROL -DVBOX_WITH_HOSTNETIF_API -DVBOX_WITH_VDE
-DVBOX_WITH_NEW_SYS_V_KEYGEN -DVBOX_WITH_VBOXSDL -DVBOX_WITH_HEADLESS
-DVBOX_WITH_QTGUI -DVBOX_WITH_HGCM -DVBOX_WITH_ALSA -DVBOX_WITH_E1000
-DVBOX_WITH_VIRTIO -DVBOX_WITH_AHCI -DVBOX_WITH_LSILOGIC
-DVBOX_WITH_RESOURCE_USAGE_API -DVBOX_WITH_PDM_ASYNC_COMPLETION
-DVBOX_WITH_EXTPACK -DVBOX_WITH_VUSB -DVBOX_WITH_S3 -DVBOX_WITH_USB
-DVBOX_WITH_NEW_USB_CODE_ON_DARWIN -DVBOX_WITH_HOSTNETIF_API
-DVBOX_USE_LIBHAL
-Wp,-MD,/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.8_OSE/out/freebsd.amd64/debug/obj/VBoxSVC/src-server/freebsd/HostHardwareFreeBSD.o.dep
-Wp,-MT,/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.8_OSE/out/freebsd.amd64/debug/obj/VBoxSVC/src-server/freebsd/HostHardwareFreeBSD.o
-Wp,-MP -o 
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.8_OSE/out/freebsd.amd64/debug/obj/VBoxSVC/src-server/freebsd/HostHardwareFreeBSD.o
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.0.8_OSE/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp
kmk: *** Waiting for unfinished jobs
kmk: *** Exiting with status 2
*** Error code 2

Stop in /usr/ports/emulators/virtualbox-ose.
*** Error code 1

Stop in /usr/ports/emulators/virtualbox-ose.

I have even try to build with debug symbols but I don't see anything
different. The system is running GENERIC kernel with debug options
disabled.

options COMPAT_FREEBSD32

Is included in the kernel as I saw that this has caused similar
problems in the past.

Any help would be appreciated
It fails a couple ways actually, first on an isDVD in a disk system 
request...commenting out the inq_(something, not in front of machine 
with recent svn) parts of that code yields virtualbox compiling, but 
failing during kmod compile due to the recent change (without revision 
bump) from cpumask_t to cpuset_t.


It seems like recent CAM changes and CPU change are going to require 
some changes to virtualbox in HostHardwareFreeBSD.c and mp-r0drv.c at 
least. Even though OS revision was not bumped, perhaps Makefile can 
switch on presence of cpuset userland utility?


Luckily I only csup'd a machine I don't really need Vbox on, so I'm 
holding back all other machines until Vbox maintainers sort out the issue.


Matt

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-24 Thread Jung-uk Kim
On Friday 24 June 2011 01:14 pm, Matt wrote:
 It fails a couple ways actually, first on an isDVD in a disk system
 request...commenting out the inq_(something, not in front of
 machine with recent svn) parts of that code yields virtualbox
 compiling, but failing during kmod compile due to the recent change
 (without revision bump) from cpumask_t to cpuset_t.

 It seems like recent CAM changes and CPU change are going to
 require some changes to virtualbox in HostHardwareFreeBSD.c and
 mp-r0drv.c at least. Even though OS revision was not bumped,
 perhaps Makefile can switch on presence of cpuset userland utility?

 Luckily I only csup'd a machine I don't really need Vbox on, so I'm
 holding back all other machines until Vbox maintainers sort out the
 issue.

You should be able to build the kmod with this patch.

http://people.freebsd.org/~jkim/patch-src-VBox-Runtime-r0drv-freebsd-mp-r0drv-freebsd.c

Just drop this patch in ports/emulators/virtualbox-ose-kmod/files and 
rebuild.

Please note the revision wasn't set right for the obvious reason, 
though.  Do we really need revision bump, BTW?  Current means no 
seat belt anyway. ;-)

Cheers,

Jung-uk Kim
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-24 Thread Matt

On 06/24/11 10:52, Jung-uk Kim wrote:

On Friday 24 June 2011 01:14 pm, Matt wrote:

It fails a couple ways actually, first on an isDVD in a disk system
request...commenting out the inq_(something, not in front of
machine with recent svn) parts of that code yields virtualbox
compiling, but failing during kmod compile due to the recent change
(without revision bump) from cpumask_t to cpuset_t.

It seems like recent CAM changes and CPU change are going to
require some changes to virtualbox in HostHardwareFreeBSD.c and
mp-r0drv.c at least. Even though OS revision was not bumped,
perhaps Makefile can switch on presence of cpuset userland utility?

Luckily I only csup'd a machine I don't really need Vbox on, so I'm
holding back all other machines until Vbox maintainers sort out the
issue.

You should be able to build the kmod with this patch.

http://people.freebsd.org/~jkim/patch-src-VBox-Runtime-r0drv-freebsd-mp-r0drv-freebsd.c

Just drop this patch in ports/emulators/virtualbox-ose-kmod/files and
rebuild.

Please note the revision wasn't set right for the obvious reason,
though.  Do we really need revision bump, BTW?  Current means no
seat belt anyway. ;-)

Cheers,

Jung-uk Kim

Thanks for the patch. I had read a comment somewhere complaining about 
detecting cpuset_t or cpumask_t regarding osrevision. Not really an 
issue, because it can be tested for without a bump.


Who needs seatbelts anyway... :). CURRENT  a cold beer is good enough 
for my home systems. Certainly prevents boredom anyway.


The Virtualbox error (not kmod error) looked like it was using an 
undefined struct to determine drive types, which I assume has been removed.


If you  the make output into a file and search for isDVD, you'll find 
that particular error, if still present. I just commented out the parts 
of the struct we don't have anymore, and it did compile...definitely 
could be dangerous, I haven't actually launched virtualbox with that 
fix...it could make for subtle or major problems. Your mileage  
seatbelt may vary :)


Matt

Matt


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-24 Thread George Kontostanos

 You should be able to build the kmod with this patch.

 http://people.freebsd.org/~jkim/patch-src-VBox-Runtime-r0drv-freebsd-mp-r0drv-freebsd.c

 Just drop this patch in ports/emulators/virtualbox-ose-kmod/files and
 rebuild.

 Please note the revision wasn't set right for the obvious reason,
 though.  Do we really need revision bump, BTW?  Current means no
 seat belt anyway. ;-)

 Cheers,

 Jung-uk Kim


Yes the module build fine with this. Any ideas regarding the virtualbox itself ?

Cheers

-- 
George Kontostanos
aisecure.net
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-24 Thread Jung-uk Kim
On Friday 24 June 2011 02:40 pm, George Kontostanos wrote:
  You should be able to build the kmod with this patch.
 
  http://people.freebsd.org/~jkim/patch-src-VBox-Runtime-r0drv-free
 bsd-mp-r0drv-freebsd.c
 
  Just drop this patch in ports/emulators/virtualbox-ose-kmod/files
  and rebuild.
 
  Please note the revision wasn't set right for the obvious reason,
  though. �Do we really need revision bump, BTW? �Current means
  no seat belt anyway. ;-)
 
  Cheers,
 
  Jung-uk Kim

 Yes the module build fine with this.

Good.

 Any ideas regarding the virtualbox itself ?

I am rebuilding world/kernel now.  After that, I'll rebuild 
virtualbox-ose and try to fix it unless someone beat me to it. :-)

Jung-uk Kim
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-24 Thread George Kontostanos
On Fri, Jun 24, 2011 at 9:51 PM, Jung-uk Kim j...@freebsd.org wrote:


 Any ideas regarding the virtualbox itself ?

 I am rebuilding world/kernel now.  After that, I'll rebuild
 virtualbox-ose and try to fix it unless someone beat me to it. :-)

 Jung-uk Kim


Brilliant !!!

-- 
George Kontostanos
aisecure.net
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-24 Thread Jung-uk Kim
On Friday 24 June 2011 02:58 pm, George Kontostanos wrote:
 On Fri, Jun 24, 2011 at 9:51 PM, Jung-uk Kim j...@freebsd.org 
wrote:
  Any ideas regarding the virtualbox itself ?
 
  I am rebuilding world/kernel now. �After that, I'll rebuild
  virtualbox-ose and try to fix it unless someone beat me to it.
  :-)
 
  Jung-uk Kim

 Brilliant !!!

Please try this patch:

http://people.freebsd.org/~jkim/patch-src-VBox-Main-src-server-freebsd-HostHardwareFreeBSD.cpp

Just drop this in ports/emulators/virtualbox-ose/files and rebuild.

Cheers,

Jung-uk Kim
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: virtualbox-ose 4.0.8 fails

2011-06-24 Thread George Kontostanos
On Fri, Jun 24, 2011 at 11:11 PM, Jung-uk Kim j...@freebsd.org wrote:
 On Friday 24 June 2011 02:58 pm, George Kontostanos wrote:
 On Fri, Jun 24, 2011 at 9:51 PM, Jung-uk Kim j...@freebsd.org
 wrote:
  Any ideas regarding the virtualbox itself ?
 
  I am rebuilding world/kernel now.  After that, I'll rebuild
  virtualbox-ose and try to fix it unless someone beat me to it.
  :-)
 
  Jung-uk Kim

 Brilliant !!!

 Please try this patch:

 http://people.freebsd.org/~jkim/patch-src-VBox-Main-src-server-freebsd-HostHardwareFreeBSD.cpp

 Just drop this in ports/emulators/virtualbox-ose/files and rebuild.

 Cheers,

 Jung-uk Kim


Excellent work!

Best Regards,

-- 
George Kontostanos
aisecure.net
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org