[kaffe] Mac OS X Dynamic Library (autoconf/automake)

Dalibor Topic robilad at kaffe.org
Tue Aug 31 02:03:25 PDT 2004


Michael Franz wrote:

>Hi,
>
>I am getting this error.
>/bin/sh ../../../libtool --mode=link --tag=CC gcc  -Wall   -o
>libkaffegc.la -rpath /usr/local/kaffe/jre/lib/powerpc  -export-dynamic
>-release 1.1.x-cvs gc-incremental.lo gc-mem.lo gc-refs.lo
>gcc -dynamiclib -flat_namespace -undefined suppress -o
>.libs/libkaffegc-1.1.x-cvs.dylib  .libs/gc-incremental.o
>.libs/gc-mem.o .libs/gc-refs.o  -install_name 
>/usr/local/kaffe/jre/lib/powerpc/libkaffegc-1.1.x-cvs.dylib
>ld: common symbols not allowed with MH_DYLIB output format with the
>-multi_module option
>.libs/gc-incremental.o definition of common _garbageman (size 4)
>.libs/gc-incremental.o definition of common _gcStats (size 40)
>.libs/gc-mem.o definition of common _gc_block_base (size 4)
>.libs/gc-mem.o definition of common _gc_heap_base (size 4)
>.libs/gc-mem.o definition of common _gc_heap_limit (size 4)
>.libs/gc-mem.o definition of common _gc_heap_range (size 4)
>.libs/gc-mem.o definition of common _gc_heap_total (size 4)
>.libs/gc-mem.o definition of common _gc_pgbits (size 4)
>.libs/gc-mem.o definition of common _gc_heap_allocation_size (size 4)
>.libs/gc-mem.o definition of common _gc_heap_initial_size (size 4)
>.libs/gc-mem.o definition of common _gc_pgsize (size 4)
>/usr/bin/libtool: internal link edit command failed
>
>I am using autoconf  2.59 and automake 1.84, is this related?  Anyone
>have some background on this?  Ideas on how to solve it?  I am using
>OS X 10.2.8.
>
>thanks
>
>Michael
>
>_______________________________________________
>kaffe mailing list
>kaffe at kaffe.org
>http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
>  
>
Hi Michael,

Thank you for your bug report.

It seems to be a darwin-linking-model-specific issue. I think that it 
can be resolved by making those of the duplicate symbols static that can 
be made static. I'll create a patch today for CVS head. See [1] for an 
explanation in detail.

cheers,
dalibor topic

[1] http://www.tug.org/pipermail/tex-k/2003-June/000723.html




More information about the kaffe mailing list