Re: SableVM on ARM Zaurus

"Grzegorz B. Prokopski" <[email protected]>
Newsgroups gmane.comp.java.vm.sablevm.general
Organization SableVM - LGPL'ed Free Java VM http://sablevm.org
Message-ID <[email protected]>
On Sun, 2005-09-01 at 15:10 +0100, Cortez The Killer wrote:
> > Where did you get this message from?  Would you suggest a patch
> > to sablevm that would print it out in case of such a problem?
> > 
> 
> See for yourself. I changed the Java_java_lang_VMRuntime_nativeLoad
> routine as follows:
[...]
>     handle = lt_dlopenext (filename);
[...]
>     if (handle == NULL)
>       {
> 	errmsg = lt_dlerror ();
> 	_svmm_gfree_utf_chars (filename);
> 	goto end;
>       }
[...]
> printf("GrepLine9: Java_java_lang_VMRuntime_nativeLoad exit, errmsg
> is: %s\n", errmsg); fflush(NULL);
[...]
> return errmsg == NULL ? 1 : 0;
[...]
> > Great!  This also means we really need to provide information about
> > what the real problem was, so that the next person didn't need to
> > repeat the whole cycle :-/
> 
> What do you suggest, should I make a step-by-step how-to?

No.  I only want to make sure the kind of message you finally got, ie.
"libart_lgpl_2.so.2 could not be found" will be printed to user when he
hits such a problem.  It looks like simply lack printing out the error
message received from lt_dlerro(), if I think right.

Cheers,

			Grzegorz B. Prokopski
-- 
Grzegorz B. Prokopski           <[email protected]>
SableVM - Free, LGPL'ed Java VM  http://sablevm.org
Why SableVM ?!?                  http://sablevm.org/wiki/Features
Debian GNU/Linux - the Free OS   http://www.debian.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.