[vbox-dev] Compile error on SnowLeopard (openssl version mismatch)
Tom Birch
froody at gmail.com
Sat Oct 24 22:22:32 PDT 2009
Ah right, so it seems like at least on SnowLeopard, the matching for
openssl in the configure script is a bit broken - there's 1 digit of
precision missing from the version number, so it thinks that 0.9.7 is
good. After fixing that (patch below) I tried to build openssl with
macports, but it breaks because openssl doesn't like to use an SDK,
and VBox uses the 10.5 SDK, so there's link errors:
Undefined symbols:
"_fopen$UNIX2003", referenced from:
_BIO_new_file in libcrypto.a(bss_file.o)
_file_ctrl in libcrypto.a(bss_file.o)
_open_console in libcrypto.a(ui_openssl.o)
_open_console in libcrypto.a(ui_openssl.o)
Does anybody build VBox on SnowLeopard? If so, how do you get around this?
Also, I hear VBox has support for the 64bit kernel in SnowLeopard, how
do you guys do that if you require the 10.5 SDK everywhere?
cheers,
Tom
Index: configure
===================================================================
--- configure (revision 24052)
+++ configure (working copy)
@@ -818,7 +818,7 @@
extern "C" int main(void)
{
printf("found version %s", OPENSSL_VERSION_TEXT);
-#if OPENSSL_VERSION_NUMBER >= 0x0090800
+#if OPENSSL_VERSION_NUMBER >= 0x00908000
printf(", OK.\n");
return 0;
#else
On Sat, Oct 24, 2009 at 11:19 AM, Christian Pöštzsch
<Christian.Poetzsch at sun.com> wrote:
> Hi Tom,
>
> have you rerun the configure script, it should check that? You are right the
> OpenSSL version in the 10.5 SDK isn't sufficient anymore. Please install a
> newer one with the help of MacPorts or manually. You can specify the path
> with configure options.
>
> Christian
>
> Tom Birch wrote:
>>
>> I've been trying to compile trunk on SnowLeopard and I get the errors
>> below. I believe this is due to the sha code expecting a newer version
>> of openssl than is in the 10.5 SDK. The problem was introduced in
>> r23503 (I can build and run r23500 fine, but r23501/2 have other
>> issues).
>>
>> Is this a known issue? Is it likely to be fixed anytime soon?
>>
>> cheers,
>> Tom
>>
>> /Users/local/vboxtrunk/include/iprt/sha.h:143: error: 'SHA256_CTX'
>> does not name a type
>> /Users/local/vboxtrunk/include/iprt/sha.h:222: error: 'SHA512_CTX'
>> does not name a type
>> kBuild: Compiling VBoxRT -
>> /Users/local/vboxtrunk/src/VBox/Runtime/r3/darwin/mp-darwin.cpp
>> /Users/local/vboxtrunk/src/VBox/Runtime/common/checksum/sha512.cpp:44:
>> error: 'union RTSHA512CONTEXT' has no member named 'Private'
>>
>> _______________________________________________
>> vbox-dev mailing list
>> vbox-dev at virtualbox.org
>> http://vbox.innotek.de/mailman/listinfo/vbox-dev
>
>
> --
> Dr. Christian Pötzsch Sun Microsystems http://www.sun.com/
>
More information about the vbox-dev
mailing list