problems with static build on NetBSD-1.2

jason jbaker at cs.utah.edu
Wed Nov 10 09:25:47 PST 1999



After configuring kaffe for NetBSD-1.2 like so:
     ../configure  --with-engine=jit3 --enable-debug --with-staticlib --with-staticvm

libltdl is still built shared
     jbaker at slip253(2) gmake clean all
     test -z "" || rm -f 
     test -z "libltdlc.la" || rm -f libltdlc.la
     rm -rf .libs _libs
     rm -f *.o core *.core
     rm -f *.lo
     source='../../libltdl/ltdl.c' object='ltdl.lo' \
     depfile='.deps/ltdl.Plo' tmpdepfile='.deps/ltdl.TPlo' \
     depmode=gcc  \
     /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../libltdl -I.     -g -O2 -c -o ltdl.lo ../../libltdl/ltdl.c
     mkdir .libs
     gcc -DHAVE_CONFIG_H -I. -I../../libltdl -I. -g -O2 -c  -fPIC -DPIC ../../libltdl/ltdl.c -o .libs/ltdl.lo
     ../../libltdl/ltdl.c: In function `sys_dl_open':
     ../../libltdl/ltdl.c:265: warning: passing arg 1 of `dlopen' discards `const' from pointer target type
     ../../libltdl/ltdl.c: In function `sys_dl_sym':
     ../../libltdl/ltdl.c:297: warning: passing arg 2 of `dlsym' discards `const' from pointer target type
     gcc -DHAVE_CONFIG_H -I. -I../../libltdl -I. -g -O2 -c ../../libltdl/ltdl.c -o ltdl.o >/dev/null 2>&1
     mv -f .libs/ltdl.lo ltdl.lo
     /bin/sh ./libtool --mode=link gcc  -g -O2   -o libltdlc.la   ltdl.lo  
     rm -fr .libs/libltdlc.la .libs/libltdlc.* .libs/libltdlc.*
     ar cru .libs/libltdlc.al ltdl.lo
     ranlib .libs/libltdlc.al
     creating libltdlc.la
     (cd .libs && rm -f libltdlc.la && ln -s ../libltdlc.la libltdlc.la)
and kaffe crashes when ltdl.c accesses a global variable.  

Jason


More information about the kaffe mailing list