[vbox-dev] Can't compile OSE 3.0.2 on Mac OS X 10.5

Robin Green greenrd at gmail.com
Tue Jul 14 10:15:15 GMT 2009


Actually, no. The assumption is that on Darwin, a libcurl build should be
*forced*, whether the user wants it or not. I have no idea why.
I had to comment out this assumption, as shown below:

if [ "$OS" = "darwin" ]; then
  BUILD_LIBXSLT=1
  BUILD_LIBXML2=1
  #BUILD_LIBCURL=0
fi

Then I get the error I always get when trying to build VirtualBox OSE:

kBuild: Linking xpt_link
ld_classic: Undefined symbols:
_chmod$UNIX2003 referenced from libglib-2 expected to be defined in
libSystem
_close$UNIX2003 referenced from libglib-2 expected to be defined in
libSystem
_creat$UNIX2003 referenced from libglib-2 expected to be defined in
libSystem
_fcntl$UNIX2003 referenced from libglib-2 expected to be defined in
libSystem
_fputs$UNIX2003 referenced from libglib-2 expected to be defined in
libSystem
_getrlimit$UNIX2003 referenced from libglib-2 expected to be defined in
libSystem
_kill$UNIX2003 referenced from libglib-2 expected to be defined in libSystem
_open$UNIX2003 referenced from libglib-2 expected to be defined in libSystem
_read$UNIX2003 referenced from libglib-2 expected to be defined in libSystem
_select$UNIX2003 referenced from libglib-2 expected to be defined in
libSystem
_strerror$UNIX2003 referenced from libglib-2 expected to be defined in
libSystem
_strtod$UNIX2003 referenced from libglib-2 expected to be defined in
libSystem
_waitpid$UNIX2003 referenced from libglib-2 expected to be defined in
libSystem
_write$UNIX2003 referenced from libglib-2 expected to be defined in
libSystem
_pthread_mutexattr_destroy$UNIX2003 referenced from libintl expected to be
defined in libSystem
_pthread_rwlock_init$UNIX2003 referenced from libintl expected to be defined
in libSystem
_pthread_rwlock_rdlock$UNIX2003 referenced from libintl expected to be
defined in libSystem
_pthread_rwlock_unlock$UNIX2003 referenced from libintl expected to be
defined in libSystem
_pthread_rwlock_wrlock$UNIX2003 referenced from libintl expected to be
defined in libSystem
collect2: ld returned 1 exit status
kmk[2]: ***
[/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/out/darwin.x86/release/obj/xpidl/xpidl]
Error 1
The failing command:
@g++-4.0               -L/opt/local/lib -lIDL-2 -lglib-2.0 -lintl -liconv
-mmacosx-version-min=10.4 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk
-Wl,-classic_linker -m32   -o
/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/out/darwin.x86/release/obj/xpidl/xpidl
-filelist
/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/out/darwin.x86/release/obj/xpidl/xpidl.rsp

kmk[2]: ***
[/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/out/darwin.x86/release/obj/xpidl/xpidl]
Deleting file
`/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/out/darwin.x86/release/obj/xpidl/xpidl.rsp'
kmk[2]: Leaving directory `/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE'
kmk[1]: *** [pass_bldprogs_this] Error 2
kmk[1]: Leaving directory `/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE'
kmk: *** [pass_bldprogs_order] Error 2

So I fixed this by doing what I usually do:

kmk VBOX_DEF_MACOSX_VERSION_MIN=10.5

Now it gets much further, but stops with:

kBuild: Pass - DLLs
kmk[1]: Entering directory `/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE'
/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/kBuild/sdks/W2K3DDK.kmk:59:
kBuild: PATH_SDK_W2K3DDK couldn't be determined!
/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/kBuild/sdks/WINPSDKINCS.kmk:61:
kBuild: PATH_SDK_WINPSDKINCS couldn't be determined!
kmk[2]: Entering directory `/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE'
/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/kBuild/sdks/W2K3DDK.kmk:59:
kBuild: PATH_SDK_W2K3DDK couldn't be determined!
/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/kBuild/sdks/WINPSDKINCS.kmk:61:
kBuild: PATH_SDK_WINPSDKINCS couldn't be determined!
kmk[2]: *** No rule to make target
`/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/out/darwin.x86/release/lib/VBox-libcrypto.a',
needed by
`/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/out/darwin.x86/release/obj/VBoxRT/VBoxRT.dylib'.
 Stop.
kmk[2]: Leaving directory `/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE'
kmk[1]: *** [pass_dlls_this] Error 2
kmk[1]: Leaving directory `/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE'
kmk: *** [pass_dlls_order] Error 2

Now I'm not sure how to proceed.
-- 
Robin

2009/7/13 Klaus Espenlaub <Klaus.Espenlaub at sun.com>

> Robin Green wrote:
>
>> So what exactly do I need to do to fix this error? Do I untar a copy of
>> the curl 7.19.4 source code in src/libs/curl-7.19.4/? But I don't think curl
>> includes a file called Makefile.kmk, so I don't think that would work. Or do
>> I need to edit the configure script to stop the build process trying to
>> build curl?
>>
>
> No, the assumption is that you already have a copy of libcurl on your
> system. The configure script right now assumes that the header files are in
> the system default include directories and that the library is found in the
> default library directories. If that's not correct, you can adjust the
> INCCURL and LIBCURL settings, just as it's already done for FreeBSD. You
> could add a few lines to the configure script which searches in several
> directories or add a --with-curl-dir command line parameter.
>
> Klaus
>
>  2009/7/13 Klaus Espenlaub <Klaus.Espenlaub at sun.com <mailto:
>> Klaus.Espenlaub at sun.com>>
>>
>>
>>    Robin Green wrote:
>>
>>        Exact same issue as I had with OSE 3.0 and OSE 3 beta - when is
>>        OSE going to be able to build on Mac OS X?
>>
>>
>>    I think someone already asked this and got an explanation: curl is
>>    not and will not be made part of the VirtualBox tree. So VirtualBox
>>    needs to know where the library is. It's of course possible to
>>    improve the configure script. That's actually pretty easy do, so
>>    someone could contribute this.
>>
>>    All the other messages are harmless and expected.
>>
>>    Klaus
>>
>>
>>
>>        Config.kmk:1675:
>>
>>  /Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/out/darwin.x86/release/GCCConfig.kmk:
>>        No such file or directory
>>        Config.kmk:3811:
>>
>>  /Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/out/darwin.x86/release/revision.kmk:
>>        No such file or directory
>>
>>  /Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/src/libs/Makefile.kmk:51:
>>
>>  /Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/src/libs/curl-7.19.4/Makefile.kmk:
>>        No such file or directory
>>
>>  /Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/kBuild/sdks/W2K3DDK.kmk:59:
>>        kBuild: PATH_SDK_W2K3DDK couldn't be determined!
>>
>>  /Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/kBuild/sdks/WINPSDKINCS.kmk:61:
>>        kBuild: PATH_SDK_WINPSDKINCS couldn't be determined!
>>        kmk: *** No rule to make target
>>
>>  `/Users/greenrd/Downloads/VirtualBox-3.0.2_OSE/src/libs/curl-7.19.4/Makefile.kmk'.
>>         Stop.
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20090714/f5e0b547/attachment.html>


More information about the vbox-dev mailing list