Re: [Sablevm-developer] GregorianCalendar native is missing...
Brought to you by:
egagnon
From: David <db...@cs...> - 2004-04-10 05:16:23
|
Hi, I was able to reproduce it with the Debian/unstable. A strace indicated that the file itself is found and successfully opened. I would need a SableVM Debian version that has debugging symbols to investigate further however. Greg, could you build one or give some indication on how to do it? It appears that the ltdl handle for that lib is not added to the native lib or is added but later removed somehow later. In any case, the library is correctly opened and it is possible to get that symbol from it: (gdb) print lt_dlsym(0x10172b00,"Java_java_util_TimeZone_getDefaultTimeZoneId") $3 =3D 263894836 (gdb)=20 However, the code that looks in each native libs, will look only in the 3 previously opened one and not into that one. SableVM itself javalang javaio I don't know why. David On Sat, Apr 10, 2004 at 12:57:36AM +0200, Arnaud Vandyck wrote: > David B=E9langer <db...@cs...> writes: >=20 > > Hi, > > > > This is a native method implemented in Classpath. I try a small exam= ple > > that invokes the constructor of GregorianCalendar and this method but= I > > was not able to reproduce it. > > > > It may be a configuration/installation issue. > > > > Make sure that libjavautil.so is installed. It should be in: > > .../lib/sablevm/sablevm-classpath > > with other libs (libjavaio etc.). >=20 > it seems everything is in there... >=20 > $ ls /usr/lib/sablevm/sablevm-classpath >=20 > libgtkpeer.la libgtkpeer.so libgtkpeer.so.0 libgtkpeer.so.0.0.0 > libjavaawt.la libjavaawt.so libjavaawt.so.0 libjavaawt.so.0.0.0 > libjavaio.la libjavaio.so libjavaio.so.0 libjavaio.so.0.0.0 > libjavalang.la libjavalang.so libjavalang.so.0 libjavalang.so.0.0.0 > libjavalangreflect.la libjavalangreflect.so libjavalangreflect.so.0 > libjavalangreflect.so.0.0.0 libjavanet.la libjavanet.so libjavanet.so.0 > libjavanet.so.0.0.0 libjavanio.la libjavanio.so libjavanio.so.0 > libjavanio.so.0.0.0 libjavautil.la libjavautil.so libjavautil.so.0 > libjavautil.so.0.0.0 >=20 > > What is weird is the fact that it got so far (it loaded the Ant class= es) > > means that some of the libraries at least libjavaio are installed and > > work but not libjavautil... >=20 > So it must be the debian developer of sablevm that is sucking! ;-) > (joking gadek ;-)) >=20 > Guys, here is a test case. Attached is a simple build.xml you can run > with ant. >=20 > 1=B0 run by kaffe: >=20 > $ JAVACMD=3D/usr/bin/kaffe ant >=20 > Unable to locate tools.jar. Expected to find it in /usr/lib/kaffe/lib/t= ools.jar > Buildfile: build.xml >=20 > init: > [echo] What time is it? 20040409 - 2253 >=20 > BUILD SUCCESSFUL > Total time: 1 second >=20 > (the first line is because of ant 1.6, I don't know why?! but everythin= g > runs fine) >=20 > 2=B0 The same with java-sablevm >=20 > $ JAVACMD=3D/usr/bin/java-sablevm ant >=20 > Warning: -Xmx512M option not implemented in java-sablevm wrapper. > Unable to locate tools.jar. Expected to find it in ?/lib/tools.jar > Buildfile: build.xml >=20 > init: > *** Couldn't bind native method Java_java_util_TimeZone_getDefaultTimeZ= oneId *** > *** or Java_java_util_TimeZone_getDefaultTimeZoneId__ *** > *** Couldn't bind native method Java_java_util_TimeZone_getDefaultTimeZ= oneId *** > *** or Java_java_util_TimeZone_getDefaultTimeZoneId__ *** > java.lang.UnsatisfiedLinkError > at java.util.TimeZone.getDefaultTimeZoneId (TimeZone.java) > at java.util.TimeZone.defaultZone (TimeZone.java:99) > at java.util.TimeZone.getDefault (TimeZone.java:1147) > at java.util.GregorianCalendar.GregorianCalendar (GregorianCalendar.= java:121) > at java.text.SimpleDateFormat.SimpleDateFormat (SimpleDateFormat.jav= a:205) > at org.apache.tools.ant.util.DateUtils.static{} (DateUtils.java:65) > at java.lang.VMClass.step8 (VMClass.java) > at java.lang.VMClass.initialize (VMClass.java:126) > at java.lang.Class.initialize (Class.java:163) > at org.apache.tools.ant.DefaultLogger.formatTime (DefaultLogger.java= :277) > at org.apache.tools.ant.DefaultLogger.buildFinished (DefaultLogger.j= ava:157) > at org.apache.tools.ant.Project.fireBuildFinished (Project.java:1797= ) > at org.apache.tools.ant.Main.runBuild (Main.java:652) > at org.apache.tools.ant.Main.startAnt (Main.java:183) > at org.apache.tools.ant.launch.Launcher.run (Launcher.java:197) > at org.apache.tools.ant.launch.Launcher.main (Launcher.java:56) > at java.lang.VirtualMachine.invokeMain (VirtualMachine.java) > at java.lang.VirtualMachine.main (VirtualMachine.java:88) >=20 > Cheers, >=20 > --=20 > Arnaud Vandyck >=20 Content-Description: test-case --=20 --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |