[MacPorts] #40619: virtualbox @4.2.16 Wrong SDK Selected
#40619: virtualbox @4.2.16 Wrong SDK Selected ---------------------------+-------------------------------- Reporter: kprussing74@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: Xcode5 | Port: virtualbox ---------------------------+-------------------------------- 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 -- Ticket URL: <https://trac.macports.org/ticket/40619> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts