Opened 4 years ago

Last modified 2 years ago

#40223 new defect

virtualbox: 4.2.16 build fails on Snow Leopard

Reported by: pixilla (Bradley Giesbrecht) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: haspatch Cc: anddam (Andrea D'Amore), royliu@…, rmstonecipher@…, cooljeanius (Eric Gallager), mccutchon.brian@…
Port: virtualbox

Description (last modified by pixilla (Bradley Giesbrecht))

virtualbox @4.2.4_0+vde2+vnc was the last version that built on Snow Leopard.

Link to the Snow Leopard buildbots failed build 18698 of virtualbox r107918.

Attachments (1)

patch-emulators-virtualbox-osx10.6.diff (2.9 KB) - added by pixilla (Bradley Giesbrecht) 4 years ago.

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by pixilla (Bradley Giesbrecht)

comment:1 Changed 4 years ago by pixilla (Bradley Giesbrecht)

Request for comments.

With the attached patch virtualbox 4.2.16 installs on Snow Leopard and my vm's appear to work correctly. I have not tested this patch on other versions of Mac OS.

The attached patch removes the src/libs/xpcom18a4/Config.kmk patch from patch-build.diff.

comment:2 Changed 4 years ago by pixilla (Bradley Giesbrecht)

  • Description modified (diff)

comment:3 Changed 4 years ago by pixilla (Bradley Giesbrecht)

  • Description modified (diff)

comment:4 Changed 4 years ago by cooljeanius (Eric Gallager)

  • Cc egall@… added

Cc Me!

comment:5 Changed 2 years ago by mccutchon.brian@…

I, too, am unable to build virtualbox on Snow Leopard, but this includes @4.0 and @3.0. Here is an attempt to build @4.2.16:

$ sudo port clean virtualbox && sudo port -v install virtualbox
--->  Cleaning virtualbox
--->  Computing dependencies for virtualbox.
--->  Fetching archive for virtualbox
--->  virtualbox-4.2.16_0+vde2+vnc.darwin_10.i386.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch virtualbox-4.2.16_0+vde2+vnc.darwin_10.i386.tbz2 from http://packages.macports.org/virtualbox
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch virtualbox-4.2.16_0+vde2+vnc.darwin_10.i386.tbz2 from http://lil.fr.packages.macports.org/virtualbox
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch virtualbox-4.2.16_0+vde2+vnc.darwin_10.i386.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/virtualbox
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   300    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Fetching distfiles for virtualbox
--->  Verifying checksums for virtualbox
--->  Checksumming VirtualBox-4.2.16.tar.bz2
--->  Extracting virtualbox
--->  Extracting VirtualBox-4.2.16.tar.bz2
--->  Applying patches to virtualbox
--->  Applying patch-build.diff
patching file Config.kmk
patching file LocalConfig.kmk
patching file Makefile.kmk
patching file configure
patching file kBuild/units/qt4.kmk
patching file src/libs/xpcom18a4/Config.kmk
patching file src/libs/xpcom18a4/python/Makefile.kmk
--->  Applying patch-startup.diff
patching file src/VBox/Installer/darwin/VBoxStartupItems/VirtualBox/VirtualBox
--->  Applying patch-vde.diff
patching file configure
patching file include/VBox/VDEPlugSymDefs.h
--->  Patching LocalConfig.kmk: s|@APPLICATIONS_DIR@|/Applications/MacPorts|g
--->  Patching LocalConfig.kmk: s|@MACOSX_DEPLOYMENT_TARGET@|10.5|g
--->  Patching VirtualBox: s|@KEXT_DIR@|/opt/local/Library/Extensions|g
--->  Patching VDEPlugSymDefs.h: s|@PREFIX@|/opt/local|g
--->  Configuring virtualbox
Checking for environment: Determined build machine: darwin.x86, target machine: darwin.x86, OK.
Checking for kBuild: found, OK.
Checking for Darwin version: found version 10.6 (SDK: /Developer/SDKs/MacOSX10.5.sdk), OK.
Checking for gcc: found version 4.2.1, OK.
Checking for Open Watcom: 
  ** Open Watcom was not found!
Checking for libIDL: found version 0.8.14, OK.
Checking for ssl: found version OpenSSL 1.0.2d 9 Jul 2015, OK.
Checking for libcurl: found version 7.44.0, OK.
Checking for OpenGL support: enabled
Checking for Qt4: found version 4.8.7, OK.
Checking for Qt4 devtools: found version 4.8.7, OK.
Checking for Python support: enabled
Checking for Java support: OK.
Checking for libvncserver: found version 0.9.9, OK.

Successfully generated '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/AutoConfig.kmk' and '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/env.sh'.
Source '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/env.sh' once before you start to build VBox:

  source /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/env.sh
  kmk


  +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++
  Hardening is enabled which means that the VBox binaries will not run from
  the binary directory. The binaries have to be installed suid root and some
  more prerequisites have to be fulfilled which is normally done by installing
  the final package. For development, the hardening feature can be disabled
  by specifying the --disable-hardening parameter. Please never disable that
  feature for the final distribution!
  +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++

Enjoy!
--->  Building virtualbox
2015-08-21 13:20:38.681 xcodebuild[66563:807] CFPreferences: user home directory at file://localhost/opt/local/var/macports/home/ is unavailable. User domains will be volatile.
Config.kmk:2318: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/out/darwin.x86/release/GCCConfig.kmk: No such file or directory
Config.kmk:5228: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/out/darwin.x86/release/revision.kmk: No such file or directory
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/kBuild/footer-inherit-uses-tools.kmk:573: *** kBuild: Cannot find include file for the template 'XPCOMOSX106'! Searched:  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/kBuild/templates .  Stop.
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16" && . env.sh && kmk all KBUILD_VERBOSE=full 
Exit code: 2
Error: org.macports.build for port virtualbox returned: command execution failed
Warning: targets not executed for virtualbox: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port virtualbox for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port virtualbox failed

comment:6 Changed 2 years ago by mccutchon.brian@…

  • Cc mccutchon.brian@… added

Cc Me!

Note: See TracTickets for help on using tickets.