error when system.load()

2001-11-30 Thread Dorothy Wu



hi,
I met a problem when I use JNI.
 
I wrote two shared 
libraries (c/c++).
Then I used them in my c/c++ 
application.
Everything is Ok, my c/c++ application can use 
these libraries.
 
But when I use it in kaffe by JNI,
Only one library can load, another can never loaded 
by System.load().
Error is:
"UnsatisfiedLinkError: file not 
found."
 
I have checked the path, everything is 
OK.
The difference between these two libraries is,  the 
latter do not link any library.
The link command is:
"ld -shared --whole-archive x.o y.o -o 
libxy.so"
I do not think it is the reason why I can not load 
it.
 
But why, it is a bug of System.load()?
 
Thanks!
 
Stock Wu
 
 


Re: error when system.load()

2001-11-30 Thread Jharana



hi,
try using the ld -G x.o -o libx.so instead of ld - shared, or try the
g++ -shared -L command.
hope this helps, bye,
Jharana
Dorothy Wu wrote:

hi,I
met a problem when I use JNI. I
wrote two shared libraries (c/c++).Then
I used them in my c/c++ application.Everything
is Ok, my c/c++ application can use these libraries. But
when I use it in kaffe by JNI,Only
one library can load, another can never loaded by System.load().Error
is:"UnsatisfiedLinkError:
file not found." I
have checked the path, everything is OK.The
difference between these two libraries is, the latter do not link any library.The
link command is:"ld -shared
--whole-archive x.o y.o -o libxy.so"I
do not think it is the reason why I can not load it. But
why, it is a bug of System.load()? Thanks! Stock
Wu  






*
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*
Visit us at http://www.mahindrabt.com




Problem: "ksemPut : Assertion 'sem --> count = = 0' failed."

2001-11-30 Thread Santosh Kumar Janmanchi

Hi,

Problem --

"Kaffe : ksem.h :115 : ksemPut : Assertion 'sem --> count  = =  0' failed
Aborted"

Analysis is -- It is an assertion failure when the count was 1. Which means
that when 'ksemGet' times out, still 'ksemPut' is getting called. We are
using the following version 1.0.6 of Kaffe (kaffe-snap-20010819).

Has anybody encountered this problem. Is there a fix available for it?

With regards,
Santosh
WIPRO TECHNOLOGIES.



---
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.




Re: flestmail - daily - 6/11 passed (54.5%) (0 errors, 5 failures)

2001-11-30 Thread Archie Cobbs


> FAIL  build
> --
> Excerpts from 
>/foo/z/flest/testdir/kaffe_flest/--with-engine=jit3__enable-debug/build.log
> ...
> 
> 
>254.   name = (String)e.getValue();
>^
> *** Error: The type "java/util/Map$Entry" with default access is not visible here.
> gmake[1]: *** [lib/stamp] Error 1
> gmake[1]: Leaving directory 
>`/foo/z/flest/testdir/kaffe_flest/--with-engine=jit3__enable-debug/obj-kaffe_flest/libraries/javalib'
> gmake: *** [Klasses] Error 2
> close failed: , status 512
> fatal: build failed
> --

Could whoever is responsible for this test setup please update
jikes to version 1.15 ? This problem is due to a bug in jikes
(I think).

Thanks,
-Archie

__
Archie Cobbs * Packet Design * http://www.packetdesign.com