Kaffe for m68k/netbsd

Alexandre Oliva oliva at dcc.unicamp.br
Sun Apr 11 14:17:47 PDT 1999


On Apr 11, 1999, Kiyo Inaba <inaba at src.ricoh.co.jp> wrote:

> I've also tested 1.0b4 on m68k/netbsd for shared libraries.

> /bin/sh ../../libtool --mode=link gcc  -g -Wall -Wstrict-prototypes  -L/usr/local/lib  -o Kaffe -export-dynamic main.o -dlopen ../../libraries/clib/native/libnative.la -dlopen ../../libraries/clib/net/libnet.la -dlopen ../../libraries/clib/io/libio.la -dlopen ../../libraries/clib/zip/libzip.la -dlopen ../../libraries/clib/math/libmath.la -dlopen ../../libraries/clib/management/libmanagement.la ../kaffevm/libkaffevm.la  
> mkdir .libs
> creating .libs/KaffeS.c
> extracting global C symbols from `../../libraries/clib/native/.libs/libnative.a'
> extracting global C symbols from `../../libraries/clib/zip/.libs/libzip.a'
> extracting global C symbols from `../../libraries/clib/math/.libs/libmath.a'
> (cd .libs && gcc -c -fno-builtin "KaffeS.c")
> gcc -g -Wall -Wstrict-prototypes -L/usr/local/lib -o .libs/Kaffe main.o .libs/KaffeS.o ../../libraries/clib/native/.libs/libnative.a -lm ../../libraries/clib/zip/.libs/libzip.a -lz ../../libraries/clib/math/.libs/libmath.a -lm -L../kaffevm/.libs -lkaffevm -lgcc -lm -Wl,-R/usr/local/lib
> ../../../kaffe-1.0b4/kaffe/kaffe/main.c:69: Undefined symbol `_lt_dlpreload_default' referenced from text segment
[many more Undefined symbol errors follow]

I guess it's because you already have libkaffevm installed in
/usr/local/lib, and the linker finds it before the uninstalled version
because of the -L/usr/local/lib switch inserted by Kaffe's
configure.in.  We probably shouldn't be adding -L/usr/local/lib to
LDFLAGS; it would probably serve us better in the end of LIBS.
Comments?

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Brasil
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists



More information about the kaffe mailing list