<div dir="ltr"><div>Hi,</div><div><br></div>I am trying to compile the 3.1.4_OSE tarball on Snow Leopard.<div><br clear="all">The instructions at <a href="http://www.virtualbox.org/wiki/Mac%20OS%20X%20build%20instructions">http://www.virtualbox.org/wiki/Mac%20OS%20X%20build%20instructions</a> links to page with a binary version of Qt4 compiled for i386. However, the default target architecture in Snow Leopard is 64-bit.</div>
<div><br></div><div>So I went ahead and did a 'sudo port install qt4-mac', went back into the Virtual Box 3.1.4 directory and:</div><div><br></div><div><div>$ ./configure --disable-hardening --with-openssl-dir=/opt/local/ --with-qt4-dir=/opt/local/Library/</div>
<div>...</div><div>$ kmk</div><div>[...]</div><div>kBuild: Linking VBoxRT</div><div>Undefined symbols:</div><div>  "_fopen$UNIX2003", referenced from:</div><div>      _BIO_new_file in libcrypto.a(bss_file.o)</div>
<div>      _file_ctrl in libcrypto.a(bss_file.o)</div><div>      _open_console in libcrypto.a(ui_openssl.o)</div><div>      _open_console in libcrypto.a(ui_openssl.o)</div><div>ld: symbol(s) not found</div><div>collect2: ld returned 1 exit status</div>
<div>kmk[2]: *** [/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/obj/VBoxRT/VBoxRT.dylib] Error 1</div><div>The failing command:</div><div>@g++-4.0 -dynamiclib                                            -mmacosx-version-min=10.5 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -Wl,-headerpad_max_install_names  -Wl,-no_compact_linkedit -current_version 3.1.4 -framework IOKit -install_name @executable_path/VBoxRT.dylib -m32 -read_only_relocs suppress  -o /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/obj/VBoxRT/VBoxRT.dylib  -filelist /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/obj/VBoxRT/VBoxRT.rsp    -liconv   /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/lib/SUPR3.a   /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/lib/VBox-liblzf.a   -lz   /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/lib/VBox-kStuff.a   /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/lib/VBox-libxml2.a   /opt/local//lib/libcrypto.a   -lcurl</div>
<div>kmk[2]: *** [/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/obj/VBoxRT/VBoxRT.dylib] Deleting file `/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/obj/VBoxRT/VBoxRT.rsp'</div>
<div>kmk[2]: *** Waiting for unfinished jobs....</div><div>kmk[2]: Leaving directory `/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE'</div><div>kmk[2]: Entering directory `/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE'</div>
<div>kmk[2]: *** Exiting with status 2</div><div>kmk[1]: *** [pass_dlls_this] Error 2</div><div>kmk[1]: Leaving directory `/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE'</div><div>kmk: *** [pass_dlls_order] Error 2</div>
<div><br></div></div><div>It looks like the command line flags refer to 10.5's SDK and the build process ends up confused about which version of libSystem to link against. Any help?</div><div> </div><div>Nadav<br>
</div></div>