Opened 11 years ago

Closed 8 years ago

#40619 closed defect (duplicate)

virtualbox @4.2.16 Wrong SDK Selected

Reported by: kprussing (Keith) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: anddam (Andrea D'Amore), cooljeanius (Eric Gallager)
Port: virtualbox

Description

After recently upgrading to Xcode 5, VirtualBox will not compile. At first glance, the error is identical to that posted in #35808. After reading the comments and investigating the configure log, the command that fails is (full log attached)

/opt/local/bin/g++-apple-4.2 -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -g -O -Wall -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/.tmp_out /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/.tmp_src.cc "-I/opt/local/include /opt/local/lib/libcrypto.dylib /opt/local/lib/libssl.dylib"
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/.tmp_src.cc:1:18: error: cstdio: No such file or directory

Digging around, it turns out that the 10.7 SDK has been removed from of Xcode 5 and 10.8 is now included.

Reading ticket:35808#comment9 lead me to the configure script where there is a 'To Do' note to use Xcode/SDK version to get the version number. Playing around a bit, I was able to establish the following code snippet to extract the SDK name and version number

$ sdkname=`xcodebuild -showsdks | grep macosx | awk '{print $NF}'`
$ echo $sdkname
macosx10.8
$ xcodebuild -version -sdk ${sdkname} SDKVersion
10.8

I would offer an explicit patch, but I'm exactly sure where this would need to go, and I don't know how it would effect those who haven't upgraded Xcode yet. I also do not know how wide spread the issue of the missing SDK will be.

Keith

OS X 10.8.5 Xcode 5.0 Build version 5A1413

Attachments (1)

configure.log (67.3 KB) - added by kprussing (Keith) 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by kprussing (Keith)

Attachment: configure.log added

comment:1 Changed 10 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

Cc Me!

Version 0, edited 10 years ago by anddam (Andrea D'Amore) (next)

comment:2 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

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

Keywords: Xcode5 removed
Resolution: duplicate
Status: newclosed

Let's call this a duplicate of #35808.

Note: See TracTickets for help on using tickets.