Opened 4 years ago

Last modified 8 months ago

#41392 new defect

Virtualbox @4.2.14: failed to determine Darwin version

Reported by: mkae (Marko Käning) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: mavericks, yosemite, elcapitan Cc: stanimura, ktaylor1024@…, sam.halliday@…, cooljeanius (Eric Gallager), akimd (Akim Demaille), gamperl@…, kpreid (Kevin Reid), t-remke@…, joel@…, edhem.bajric@…, 66ton99@…, posita (Matt Bogosian (formerly @mbogosian)), markemer (Mark Anderson), subs@…, lord@…, kiav1976@…, myint (Steven Myint)
Port: virtualbox

Description

Virtualbox' build system cannot handle Mavericks yet:

:info:configure Checking for environment: Determined build machine: darwin.amd64, target machine: darwin.amd64, OK.
:info:configure Checking for kBuild: found, OK.
:info:configure Checking for Darwin version:   failed to determine Darwin version. (uname -r: 13.0.0)
:info:configure Check /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.o
rg_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/configure.log for d
etails
:info:configure 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" && ./configure --with-qt-dir=/opt/local --with-openssl-dir=/opt/local --with-gcc=/opt/local/bin/gcc-apple-4.2 --with-g++=/opt/local/bin/g++-apple-4.2 --enable-vde --enable-vnc
:info:configure Exit code: 1
:error:configure org.macports.configure for port virtualbox returned: configure failure: command execution failed
:debug:configure Error code: NONE

Change History (30)

comment:1 Changed 4 years ago by ryandesign (Ryan Schmidt)

  • Keywords mavericks added; Mavericks removed

We should try updating the port to the latest version. If that still doesn't work, then this problem should be reported the developers of virtualbox.

comment:2 Changed 4 years ago by mkae (Marko Käning)

I agree. Thanks for hinting out this ticket.

comment:3 Changed 4 years ago by ryandesign (Ryan Schmidt)

  • Cc aruminat@… added

Has duplicate #41414.

comment:4 Changed 4 years ago by ktaylor1024@…

  • Cc ktaylor1024@… added

Cc Me!

comment:5 in reply to: ↑ description Changed 4 years ago by dony@…

THis also fails for me. I've seen a version of the failing script for this ticket here : https://www.virtualbox.org/svn/vbox/trunk/configure

An entry is lacking in the "case" instruction in function "check_darwinversion()" to take into account that uname now returns 13.

cheers Christophe


Replying to mk@…:

Virtualbox' build system cannot handle Mavericks yet:

:info:configure Checking for environment: Determined build machine: darwin.amd64, target machine: darwin.amd64, OK.
:info:configure Checking for kBuild: found, OK.
:info:configure Checking for Darwin version:   failed to determine Darwin version. (uname -r: 13.0.0)
:info:configure Check /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.o
rg_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/configure.log for d
etails
:info:configure 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" && ./configure --with-qt-dir=/opt/local --with-openssl-dir=/opt/local --with-gcc=/opt/local/bin/gcc-apple-4.2 --with-g++=/opt/local/bin/g++-apple-4.2 --enable-vde --enable-vnc
:info:configure Exit code: 1
:error:configure org.macports.configure for port virtualbox returned: configure failure: command execution failed
:debug:configure Error code: NONE

comment:6 Changed 4 years ago by sam.halliday@…

  • Cc sam.halliday@… added

Cc Me!

comment:7 Changed 4 years ago by sam.halliday@…

still no joy :-(

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

  • Cc egall@… added

Cc Me!

comment:9 Changed 4 years ago by eddieh (Eddie Hillenbrand)

Has anyone tried patching the the configure script? Does anyone know if there is a ticket in the VirtualBox bug tracker corresponding to this issue? If a ticket exists in their system, I can't seem to find it.

Last edited 4 years ago by eddieh (Eddie Hillenbrand) (previous) (diff)

comment:10 Changed 4 years ago by akimd (Akim Demaille)

  • Cc akim.demaille@… added

Cc Me!

comment:11 Changed 4 years ago by gamperl@…

  • Cc gamperl@… added

Cc Me!

comment:12 Changed 4 years ago by kpreid (Kevin Reid)

  • Cc kpreid@… added

Cc Me!

comment:13 Changed 4 years ago by t-remke@…

  • Cc t-remke@… added

Cc Me!

comment:14 Changed 4 years ago by joel@…

Please reference https://forums.virtualbox.org/viewtopic.php?f=31&t=44590.

I looked at the configure script, and noticed the following starting at line 1999: check_darwinversion() { ... You'll see a case statement that matches each kernel release. It looks like they have some simple code to select the proper SDK from Xcode that is used while compiling. It should be trivial to add a statement for kernel 13 and point to the proper developer SDK.

I'm not very macports savvy, so I'm not sure how to make a patch and submit it, or even what the proper way to test my theory in the build system so that macports will successfully install the package or I'd just do it all and put a patch on this ticket.

comment:15 Changed 4 years ago by joel@…

  • Cc joel@… added

Cc Me!

comment:16 Changed 4 years ago by ryandesign (Ryan Schmidt)

  • Cc edhem.bajric@… added

Has duplicate #43565. As stated previously in this ticket, somebody needs to try updating the port to the current version, and please submit a diff of that. If that still doesn't work on Mavericks, then please file a bug report with the developers of VirtualBox.

comment:17 follow-ups: Changed 4 years ago by acmeprocessgroup@…

Sorry to keep persisting about this bug, but it appears the fix to allow virtualbox to install via ports is still not working. The VirtualBox people have read the reports here and have checked the two most recent VirtualBox releases .. they work.

So not sure who is responsible, but I think everyone who has reproduced and reported this problem would appreciate having it fixed pronto.

comment:18 in reply to: ↑ 17 Changed 4 years ago by cooljeanius (Eric Gallager)

Replying to acmeprocessgroup@…:

The VirtualBox people have read the reports here and have checked the two most recent VirtualBox releases .. they work.

Link to where they said this?

comment:19 in reply to: ↑ 17 Changed 4 years ago by pixilla (Bradley Giesbrecht)

Replying to acmeprocessgroup@…:

So not sure who is responsible

The virtualbox port is nomaintainer so no one is responsible and patches are always welcome.

comment:20 Changed 3 years ago by 66ton99@…

  • Cc 66ton99@… added

Cc Me!

comment:21 Changed 3 years ago by posita (Matt Bogosian (formerly @mbogosian))

  • Cc mtb19@… added

Cc Me!

comment:22 Changed 3 years ago by markemer (Mark Anderson)

  • Cc emer@… added

Cc Me!

comment:23 Changed 3 years ago by ryandesign (Ryan Schmidt)

  • Cc subs@… added

Has duplicate #47045.

comment:24 Changed 2 years ago by lord@…

  • Cc lord@… added

Cc Me!

comment:25 in reply to: ↑ description Changed 2 years ago by nbasanes@…

I get the following error for installing virtualbox:

The output for the failed configure failure follows:

$ sudo port install virtualbox
Password:
--->  Computing dependencies for virtualbox
--->  Configuring virtualbox
Error: org.macports.configure for port virtualbox returned: configure failure: command execution failed
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

I also got the following results from the log file:

http://0bin.net/paste/RtIXLCPaxH7CMori#vSlC+GribhUjK6D5sZjoja+v0cS0OyMDBksEJOMXvhy

The above link expires in one month from this post, but the following line from the log stood out to me:

info:configure 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" && ./configure --with-qt-dir=/opt/local --with-openssl-dir=/opt/local --with-gcc=/opt/local/bin/gcc-apple-4.2 --with-g++=/opt/local/bin/g++-apple-4.2 --enable-vde --enable-vnc

Replying to mk@…:

Virtualbox' build system cannot handle Mavericks yet:

:info:configure Checking for environment: Determined build machine: darwin.amd64, target machine: darwin.amd64, OK.
:info:configure Checking for kBuild: found, OK.
:info:configure Checking for Darwin version:   failed to determine Darwin version. (uname -r: 13.0.0)
:info:configure Check /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.o
rg_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/configure.log for d
etails
:info:configure 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" && ./configure --with-qt-dir=/opt/local --with-openssl-dir=/opt/local --with-gcc=/opt/local/bin/gcc-apple-4.2 --with-g++=/opt/local/bin/g++-apple-4.2 --enable-vde --enable-vnc
:info:configure Exit code: 1
:error:configure org.macports.configure for port virtualbox returned: configure failure: command execution failed
:debug:configure Error code: NONE

comment:26 Changed 2 years ago by nbasanes@…

, This looks like a case of a missing or out of date build dependency, to me.

comment:27 Changed 2 years ago by wf@…

With El Capitan the problem persists:

Checking for Darwin version: failed to determine Darwin version. (uname -r: 15.2.0)

this patch improves the darwin check

2003a2004,2009
>     
>     15\.*)
>       darwin_ver="10.11" # El Capitan
>       sdk="`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk"
>       CXX_FLAGS="-mmacosx-version-min=10.7 -isysroot $sdk -Wl,-syslibroot,$sdk"
>       ;; 

now i get qt4 not found ...

I am trying the binary from https://www.virtualbox.org/wiki/Downloads now

Last edited 22 months ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:28 Changed 20 months ago by ryandesign (Ryan Schmidt)

  • Cc kiav1976@… added
  • Keywords yosemite elcapitan added
  • Summary changed from Virtualbox @4.2.14: doesn't build on Mavericks to Virtualbox @4.2.14: failed to determine Darwin version

Has duplicate #51160. See also #40786 and #50622 proposing updates to the port.

comment:29 Changed 18 months ago by essandess (Steve Smith)

CC me.

comment:30 Changed 8 months ago by myint (Steven Myint)

  • Cc myint added
Note: See TracTickets for help on using tickets.