[MacPorts] #31734: VirtualBox 4.1.4 doesn't work with Lion and Xcode 4.2
MacPorts
noreply at macports.org
Thu Oct 27 04:03:42 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@…):
Ok, using this patch:
{{{
--- Portfile.orig 2011-10-25 12:41:35.000000000 +0200
+++ Portfile 2011-10-27 12:56:08.000000000 +0200
@@ -67,6 +67,17 @@
set kext_dir /Library/Extensions
set startup_items_dir /Library/StartupItems
+if {${configure.compiler} == "clang" ||
+ ${configure.compiler} == "llvm-gcc-4.2"} {
+ configure.compiler gcc-4.2
+ if {![file executable ${configure.cc}]} {
+ depends_build-append port:apple-gcc42
+ configure.compiler apple-gcc-4.2
+ # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2
+ configure.cxx ${prefix}/bin/g++-apple-4.2
+ }
+}
+
post-patch {
reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" \
}}}
I end up with...
main.log:
{{{
:info:configure Checking for ssl:
:info:configure libcrypto not found at -I/opt/local/include
/opt/local/lib/libcrypto.dylib /opt/local/lib/libssl.dylib or openssl
headers not found
}}}
configure.log:
{{{
***** Checking ssl *****
compiling the following source file:
#include <cstdio>
#include <openssl/opensslv.h>
#include <openssl/ssl.h>
extern "C" int main(void)
{
printf("found version %s", OPENSSL_VERSION_TEXT);
SSL_library_init();
#if OPENSSL_VERSION_NUMBER >= 0x00908000
printf(", OK.\n");
return 0;
#else
printf(", expected version 0.9.8 or higher\n");
return 1;
#endif
}
using the following command line:
/usr/bin/g++-4.2 -mmacosx-version-min=10.6 -isysroot
/Developer/SDKs/MacOSX10.6.sdk
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.6.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.1.4_OSE/.tmp_out
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.1.4_OSE/.tmp_src.cc
"-I/opt/local/include /opt/local/lib/libcrypto.dylib
/opt/local/lib/libssl.dylib"
In file included from /opt/local/include/openssl/bio.h:67,
from /opt/local/include/openssl/ssl.h:152,
from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.1.4_OSE/.tmp_src.cc:3:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h:
No such file or directory
}}}
Same problem as with llvm-gcc-4.2 but at a different place
--
Ticket URL: <https://trac.macports.org/ticket/31734#comment:14>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list