[MacPorts] #31734: VirtualBox 4.1.4 doesn't work with Lion and Xcode 4.2
MacPorts
noreply at macports.org
Tue Oct 25 05:03:22 PDT 2011
#31734: VirtualBox 4.1.4 doesn't work with Lion and Xcode 4.2
---------------------------+------------------------------------------------
Reporter: jk@… | Owner: royliu@…
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Resolution: | Keywords:
Port: virtualbox |
---------------------------+------------------------------------------------
Comment(by jk@…):
So I tried this:
{{{
--- Portfile.orig 2011-10-25 12:41:35.000000000 +0200
+++ Portfile 2011-10-25 13:52:52.000000000 +0200
@@ -67,6 +67,10 @@
set kext_dir /Library/Extensions
set startup_items_dir /Library/StartupItems
+if {${configure.compiler} == "clang"} {
+ configure.compiler llvm-gcc-4.2
+}
+
post-patch {
reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" \
}}}
which configures nicely but results in problems using stdarg.h:
{{{
:info:build In file included from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/Virtu
alBox-4.1.4_OSE/include/iprt/stdarg.h:32,
:info:build from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/Virtu
alBox-4.1.4_OSE/include/iprt/assert.h:31,
:info:build from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/Virtu
alBox-4.1.4_OSE/src/VBox/Runtime/common/alloc/alloc.cpp:37:
:info:build /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25:
error: stdarg.h: No such file or directory
}}}
Sorry if this is stupid, but I'm not really into this Portfile-thing...
(yet)
--
Ticket URL: <https://trac.macports.org/ticket/31734#comment:10>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list