Netbsd, libtool and a.out (Was: Re: [kaffe] Re: NetBSD/68k as problems)

Dalibor Topic robilad at kaffe.org
Fri May 21 10:17:15 PDT 2004


Hi Kiyo,

Kiyo Inaba wrote:
> Hi again,
> 
> Next issue for NetBSD/m68k.
> 
> I am now trying to test both NetBSD-1.6.2/ia32 and NetBSD-1.5/m68k
> and while producing kaffe/kaffe/.libs/kaffe-bin, the script generated
> by libtool is slightly different.
> 
> For NetBSD-1.6.2/ia32
> gcc -g -O2 -Wno-import -Wchar-subscripts -Wcomment -Wformat=2 -Wimplicit-int -Wm
> ain -Wmissing-braces -Wmultichar -Wparentheses -Wreturn-type -Wswitch -Wtrigraph
> s -Wuninitialized -W -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast
> -qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-retur
> n -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-nore
> turn -Wredundant-decls -Wnested-externs -Winline -Wlong-long -o .libs/kaffe-bin 
> main.o version.o .libs/kaffe-binS.o -Wl,--export-dynamic  ../kaffevm/.libs/libka
> ffevm.so -lm ../../replace/.libs/libreplace.so ../../libltdl/.libs/libltdlc.a -W
> l,--rpath -Wl,/usr/local/kaffe/jre/lib/i386
> 
> But for NetBSD-1.5/m68k
> gcc -g -O2 -Wno-import -Wchar-subscripts -Wcomment -Wformat=2 -Wimplicit-int -Wm
> ain -Wmissing-braces -Wmultichar -Wparentheses -Wreturn-type -Wswitch -Wtrigraph
> s -Wuninitialized -W -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast
> -qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-retur
> n -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-de
> cls -Wnested-externs -Winline -Wlong-long -fno-omit-frame-pointer -o .libs/kaffe
> -bin main.o version.o .libs/kaffe-binS.o  ../../libraries/clib/net/.libs/libnet.
> a -L/proj/kaffe/kaffe-snap-040422-m68k-netbsd-again/replace/.libs -L../kaffevm/.
> libs -lkaffevm -lm -L../../replace/.libs -lreplace -lm68k ../../libltdl/.libs/li
> bltdlc.a -R/usr/local/kaffe/jre/lib/m68k
> 
> And I got "ld: -lkaffevm: no match".
> 
> After several hours, it realized that NetBSD-1.5/m68k uses 'a.out' for the
> output format. Has 'a.out' supported with latest libtools used in kaffe?

Hm, looking at the libtool CVS in netbsd, I see that they have some 
patches for libtool in their CVS.

http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/devel/libtool/patches/

so I guess the m4 one *might* help. I've looked at the netbsd 
tech-toolchain and tech-pkg lists for threads on libtool and a.out, and 
it seems that Nick Hudson would be the person to know more. I've cc:ed 
him on this.

In any case, it would be great if you could run the libtool 1.5.6 
regression tests on netbsd 1.5/m68k and submit the results to the 
libtool developers. I doubt that they get much testing on a.out 
platforms nowdays :)

cheers,
dalibor topic




More information about the kaffe mailing list