[vos-d] new build system

Karsten Otto otto at inf.fu-berlin.de
Tue Jun 13 04:59:27 EDT 2006


Hi there,

I just gave the vos-bootstrap script a spin on my Mac (10.4), but ran  
into a few problems:

On the first try, it failed in vutil/dlmach.inc:

dlmach.inc: In function 'void* Plugins::findsym(void*, const char*)':
dlmach.inc:59: error: cannot convert '__NSModule**' to '__NSModule*'  
for argument '1' to '__NSSymbol* NSLookupSymbolInModule(__NSModule*,  
const char*)'
dlmach.inc: In function 'int Plugins::close(void*)':
dlmach.inc:68: error: cannot convert '__NSModule**' to '__NSModule*'  
for argument '1' to 'bool NSUnLinkModule(__NSModule*, uint32_t)'

I remember some earlier trouble here, the problem was a wong cast.
I changed (NSNodule*) to (NSModule) in both lines and it worked.

I then tried vos-bootstrap download again (or should that have been  
build?),
and this time it failed with a linker error:

g++ -dynamiclib -single_module  -o .libs/libmetaobject_misc. 
10.0.0.dylib  .libs/hypercard.o .libs/metadata.o .libs/avatar.o .libs/ 
search.o .libs/glob.o .libs/talkative.o .libs/logctrl.o .libs/ 
factory.o  -L/Users/otto/opt/vos/inplace/lib -L/Users/otto/opt/vos/ 
libs/vos/vutil -L/Users/otto/opt/vos/libs/vos/vos -lvos -lvutil - 
lpthread -lresolv -lboost_thread  -install_name  /usr/local/lib/ 
libmetaobject_misc.10.dylib -Wl,-compatibility_version -Wl,11 -Wl,- 
current_version -Wl,11.0
ld: warning can't open dynamic library: /usr/local/lib/libvip.0.dylib  
referenced from: /Users/otto/opt/vos/inplace/lib/libvos.dylib  
(checking for undefined symbols may be affected) (No such file or  
directory, errno = 2)

No surprise there, it should not use /usr/local/lib in the build  
process, and in fact I don't even *have* a /usr/local on my Mac.

Since my build-script-foo is basically nonexistent, I have no idea  
how to fix this. Can I use something like --prefix on the build  
script? Suggestions anyone?

Regards,
Karsten Otto




More information about the vos-d mailing list