Re: [kaffe] Deadlock in JIT3 println call

2003-06-04 Thread Helmer Krämer
On Wed, 04 Jun 2003 18:23:23 +1000
Tony Wyatt <[EMAIL PROTECTED]> wrote:

Hi Tony,

> I'm trying to rid myself of runtime errors in the JIT3 (version 1.0.7) 
> on the m68k Amiga platform. Currently I'm wrestling with this one:
> 
> When executing the expression:
> 
> println("=" + (fmeth() / fmeth()) ), kaffe goes into deadlock. It only
> happens when the argument is an expression of two methods, producing a NaN.
> A single float and it works. A single NaN and it works. A method that
> returns a NaN works. An ordinary method call instead of "println" works.
>
> Has anyone any thoughts? Needless to say, it doesn't happen on other
> platforms running JIT3.

since you were only asking for some thoughts, here are
some, without knowing whether they are useful at all ;)

>From what you've said above, I'd assume that something
like "println ("="+Float.toString( fmeth() / fmeth() ))"
works? And so does "println (fmeth() / fmeth())"? What
about "new StringBuffer("=").append(fmeth() / fmeth())"?

Greetings,
Helmer

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Kaffe CVS: kaffe hkraemer

2003-06-04 Thread Kaffe CVS

CVSROOT:/cvs/kaffe
Module name:kaffe
Changes by: hkraemer03/06/04 03:07:20

Modified files:
.  : ChangeLog 
libraries/javalib/java/util: ResourceBundle.java 
kaffe/scripts  : kaffe.in 
kaffe/kaffevm/systems/unix-pthreads: thread-impl.c 
 thread-internal.h 
libraries/javalib/java/math: BigInteger.java 

Log message:
2003-06-04  Helmer Kraemer  <[EMAIL PROTECTED]>

* kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
(jthread_sleep): added missing method

* libraries/javalib/java/util/ResourceBundle.java:
(getBundle): don't forget to search the default locale
if necessary
(getSpecificBundle): moved caching of ResourceBundles to here

* libraries/javalib/java/math/BigInteger.java:
(intValue, longValue): fixed my broken patch

* kaffe/scripts/kaffe.in: allow prepending stuff to BOOTCLASSPATH


___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Super-H ports

2003-06-04 Thread Dalibor Topic
hi Kiyo,

--- Kiyo Inaba <[EMAIL PROTECTED]> wrote:
> I wrote:
> > I have some doubts for the result but, my linux box says
> It may take a while how 'InetAddressImpl' issue is settled, and I
> don't want to destroy some efforts I made (by debuging jit code
> etc...), I send tentative patch for Super-H. This patch is against
> CVS 030515 (just one day before the introduction of new InetAddressImpl),
> and mainly let configure know the architecture 'superh'.

I've checked in the bit about config.sub. I think the config-mem.h patch for
ssize is obsolete since your patch from 2003-05-30, and the stringParsing.c
changes were applied by Tim, or me, I'm not sure. I hope that we can fix the
remaining problems with linux 2.0 soon, so we can have you back on CVS HEAD ;)

> BTW, the failure last time are because of some libraries I don't
> install on sh3 machine, and without that, all tests passed.

that's very good, another happy platform ;) thanks!

cheers,
dalibor topic

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Kaffe CVS: kaffe dalibor

2003-06-04 Thread Kaffe CVS

CVSROOT:/cvs/kaffe
Module name:kaffe
Changes by: dalibor 03/06/04 02:56:47

Modified files:
.  : ChangeLog config.sub 
libltdl: config.sub 

Log message:
2003-06-04 Kiyo Inaba <[EMAIL PROTECTED]>

* config.sub, libltdl/config.sub:
added superh to known sh platforms.


___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] kaffe awt with qt embedded on board like ipaq

2003-06-04 Thread Sankalpa


Hi

Hi what sort of configuration should I have in my qt source to build
awt support with qt for kaffe?

ie

./configure -xplatform linux-ipaq-g++   //static

./configure -xplatform linux-arm-g++ -shared//srared

Can I avoid qt*/lib/*.so in my LD_LIBRARY_PATH to function qt awt?


Thanks

Sankalpa


___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] FAQ.cross-compiling

2003-06-04 Thread Dalibor Topic
Hi Kiyo,

--- Kiyo Inaba <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Here, you can find 'FAQ.cross-compiling'. If someone can kindly improve
> my description, it is very welcome.

Great! I've been looking for something like this document for quite a while
now.

thanks, checked in!

cheers,
dalibor topic

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Kaffe CVS: kaffe dalibor

2003-06-04 Thread Kaffe CVS

CVSROOT:/cvs/kaffe
Module name:kaffe
Changes by: dalibor 03/06/04 02:45:45

Modified files:
.  : ChangeLog 
FAQ: FAQ.automake FAQ.awt FAQ.unicode 
Added files:
FAQ: FAQ.cross-compiling 

Log message:
2003-06-04  Dalibor Topic <[EMAIL PROTECTED]>

* FAQ/FAQ.automake:
updated autotools version information.

* FAQ/FAQ.unicode:
rewritten to just say that kaffe uses Classpath's implementation.

* FAQ/FAQ.awt:
Added Troubleshooting and Projects section. Added Qtopia to list
of Qt platforms the AWT impementation should run on.

2003-06-04 Kiyo Inaba <[EMAIL PROTECTED]>

* FAQ/FAQ.cross-compiling: new file


___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


RE: [kaffe] kafee-qt 1.0.7 for ipaq on a board like assabet

2003-06-04 Thread Sankalpa
Hi Dalibor

First of all I must thank you for giving prompt replies and helping.

I managed to crosscompile kaffe 1.0.7 for arm and able to run a simple
helloworld without any errors.

Then I changed my configuration such that
./configure --with-x --host=arm-linux --prefix=/kaffe --with-awt=qt
--with-qtdir=/tmp/qt-2.3.2

(I have qt embedded 2.3.2)

Now I found I can run hello world but not a simple awt application.

It says that

BUG IN DYNAMIC LINKER ld.so: ../sysdeps/arm/dl-machine.h: 461:
elf_machine_lazy_rel: Assertion `((reloc->r_info) & 0xff) == 22' failed!


What may be the wrong?

Is it possible for me to statically link libawt.so with required
qt-2.3.2/lib.(In otherwords without needing qt/lib/*.so in my machine at
run time) 

Thanks

Sankalpa




On Wed, 2003-06-04 at 14:44, Dalibor Topic wrote:
> Hi sankalpa,
> 
> --- Sankalpa Gamwarige <[EMAIL PROTECTED]> wrote:
> > Are you sure you got that ipk file from kaffe.org?
> > No I downloaded from http://yamaguch.sytes.net/~tora/download/ipkg/
> 
> then they could be able to help you better than we can ;) 
> 
> If you are using binary packages, there is no way for us to figure out what
> modifications the packager made to the original sources, when they branched
> away from the CVS tree, what settings they compiled with etc. There are so many
> unknowns that you are better off asking the packager directly, who might even
> have seen your problems during his attempts to package the software. when that
> fails, grab the latest source from CVS, try again and please come back to
> report success or failure ;)
> 
> > What's a winmanager?
> > its a qt application which does the window management.U can connect to it
> > if u donot wish to run u`r qt based application as a standard alone one.
> 
> ah, so it's something different from QWS? Can't each application simply be it's
> own qws server?
>  
> > ipk is tar.gz format in which another tar.gz files are resident to my
> > observation (data.tar.gz and control.tar.gz).
> 
> so it's another packaging format for binaries for embedded (linux?) platforms.
> 
> thanks for the information! and good luck tracking down the bug.
> 
> cheers,
> dalibor topic
> 
> __
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com



___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


RE: [kaffe] kafee-qt 1.0.7 for ipaq on a board like assabet

2003-06-04 Thread Dalibor Topic
Hi sankalpa,

--- Sankalpa Gamwarige <[EMAIL PROTECTED]> wrote:
> Are you sure you got that ipk file from kaffe.org?
>   No I downloaded from http://yamaguch.sytes.net/~tora/download/ipkg/

then they could be able to help you better than we can ;) 

If you are using binary packages, there is no way for us to figure out what
modifications the packager made to the original sources, when they branched
away from the CVS tree, what settings they compiled with etc. There are so many
unknowns that you are better off asking the packager directly, who might even
have seen your problems during his attempts to package the software. when that
fails, grab the latest source from CVS, try again and please come back to
report success or failure ;)

> What's a winmanager?
>   its a qt application which does the window management.U can connect to it
> if u donot wish to run u`r qt based   application as a standard alone one.

ah, so it's something different from QWS? Can't each application simply be it's
own qws server?
 
> ipk is tar.gz format in which another tar.gz files are resident to my
> observation (data.tar.gz and control.tar.gz).

so it's another packaging format for binaries for embedded (linux?) platforms.

thanks for the information! and good luck tracking down the bug.

cheers,
dalibor topic

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Deadlock in JIT3 println call

2003-06-04 Thread Tony Wyatt
Hi all,

I'm trying to rid myself of runtime errors in the JIT3 (version 1.0.7) 
on the m68k Amiga platform. Currently I'm wrestling with this one:

When executing the expression:

println("=" + (fmeth() / fmeth()) ), kaffe goes into deadlock. It only
happens when the argument is an expression of two methods, producing a NaN.
A single float and it works. A single NaN and it works. A method that
returns a NaN works. An ordinary method call instead of "println" works.

Here is the whole test fragment:

import java.io.*;

class FloatTest
{
public static void main(String[] args)
{
System.out.println("=" + (fmeth() / fmeth()) );
}   

public static float fmeth()
{
return 0.0f;
}
}

/* Expected Output:
=NaN
*/

When executed, it merely prints out "Dumping live threads", and the three
threads "gc", "finaliser" and "main". The runtime is deadlocked.

Has anyone any thoughts? Needless to say, it doesn't happen on other
platforms running JIT3.

cheers
tony


___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [freenet-dev] Re: [kaffe] Kaffe and Freenet, round (N+1)

2003-06-04 Thread Helmer Krämer
On 04 Jun 2003 09:17:14 +0200
Mark Wielaard <[EMAIL PROTECTED]> wrote:

Hi,

> > So, the upshot is, I'm still running early-May CVS Kaffe.  It's the
> > only thing that still works.
> 
> But I didn't know that it already worked with an older kaffe version.
> Can you determine on which date it actually broke?
> The strange thing is that the last work on the kaffe implementation of
> BigInteger is from Januari.

this is actually my bad. Kaffe's BigInteger.longValue() gave wrong
results for negative values. While trying to fix that, I managed
to get some errors in it that I didn't notice because my testcases
succeeded :((( 

Sorry for all the trouble,
Helmer 

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [freenet-dev] Re: [kaffe] Kaffe and Freenet, round (N+1)

2003-06-04 Thread Mark Wielaard
Hi,

On Wed, 2003-06-04 at 05:08, Greg Wooledge wrote:
> Toad ([EMAIL PROTECTED]) wrote:
> > On Tue, Jun 03, 2003 at 01:58:58AM +0200, Mark Wielaard wrote:
> > > You might want to try to configure kaffe with --enable-pure-java-math
> > > that will give you another (the GNU Classpath) java.math.BigInteger
> > > implementation (which doesn't use the native libgmp).
> > 
> > Eeek. Slw. But I suppose if it's all that works.
> [...]
> Next, I tried with --enable-pure-java-math.  This seemed to be working
> better; I could run the node and retrieve documents via fproxy (the
> web interface) without "Negative bit address" errors.  But, as Toad
> said, it's incredibly slow compared to gmp.  Running top, I saw
> kaffe-bin take about 30-40% (with spikes up to 90%) of the CPU when
> I hit a few image-heavy pages.  Normally I don't see it get over
> 50% even when it's doing FEC decoding -- under normal conditions,
> like retrieving a few pages of images, it never got over 20% or so.

Good it works (more or less, haven't a clue about the coma thing).
Bad it is slow.
The same code is used in gcj where is doesn't seeem slow at all but that
might be because gcj is an ahead-of-time compiler that can much better
optimize this code then the kaffe just in time compiler.
The GNU Classpath implementation is based on the pure java gnu.math.MPN
class which says:

/** This contains various low-level routines for unsigned bigints.
 * The interfaces match the mpn interfaces in gmp,
 * so it should be easy to replace them with fast native functions
 * that are trivial wrappers around the mpn_ functions in gmp
 * (at least on platforms that use 32-bit "limbs").
 */

So one approach might be to create a gnu.math.MPNNative that actually
wraps the gpm functions.

> So, the upshot is, I'm still running early-May CVS Kaffe.  It's the
> only thing that still works.

But I didn't know that it already worked with an older kaffe version.
Can you determine on which date it actually broke?
The strange thing is that the last work on the kaffe implementation of
BigInteger is from Januari.

Cheers,

Mark


___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


RE: [kaffe] kafee-qt 1.0.7 for ipaq on a board like assabet

2003-06-04 Thread Sankalpa Gamwarige
Are you sure you got that ipk file from kaffe.org?
No I downloaded from http://yamaguch.sytes.net/~tora/download/ipkg/

What's a winmanager?
its a qt application which does the window management.U can connect to it
if u donot wish to run u`r qt based application as a standard alone one.

ipk is tar.gz format in which another tar.gz files are resident to my
observation (data.tar.gz and control.tar.gz).


-Original Message-
From: Dalibor Topic [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 5:56 AM
To: Sankalpa; kaffe mail list
Subject: Re: [kaffe] kafee-qt 1.0.7 for ipaq on a board like assabet


Hi Sankalpa,

--- Sankalpa <[EMAIL PROTECTED]> wrote:
> Hi
>
>   I have successfully ported linux 2.4.18 rmk 7 to a customised board
> like assabet.I managed to up qt 2.3.2 with ipaq configuration (doing
> some minor modifications to suite to my system touch screen driver).Now
> I can run example aplications in qt 2.3.2 very well.
>
>   To up kaffe on my machine I downloaded kaffe-qte_1.0.7-0.1_arm.ipk and
> extracted them to /opt directory and added /opt/Q*/bin to my path.
>   So I managed to run simple Hello.class java program.

Are you sure you got that ipk file from kaffe.org?

> I tried to run simple awt applications in following ways.
>
> 1.with winmanager -qws& up and qt lib path is added to my
> LD_LIBRARY_PATH
>
> 2.without winmanager up.

What's a winmanager?

> In both occations I got following error.
>
> # java Panel1
> java.lang.ExceptionInInitializerError: [exception was
> java.lang.UnsatisfiedLinkError: libawt: not found]
> at java.awt.Button.(Button.java:44)
> at java.awt.Button.(Button.java:36)
> at Panel1.(Panel1.java:18)
> at Panel1.main(Panel1.java:40)
> java.lang.UnsatisfiedLinkError: libawt: not found
> at java.lang.Throwable.fillInStackTrace(Throwable.java:native)
> at java.lang.Throwable.(Throwable.java:38)
> at java.lang.Error.(Error.java:21)
> at java.lang.LinkageError.(LinkageError.java:21)
> at
> java.lang.UnsatisfiedLinkError.(UnsatisfiedLinkError.java:21)
> at java.lang.Runtime.loadLibrary(Runtime.java:150)
> at java.lang.System.loadLibrary(System.java:142)
> at java.awt.Button.(Button.java:44)
> at java.awt.Button.(Button.java:36)
> at Panel1.(Panel1.java:18)
> at Panel1.main(Panel1.java:40)
>
> Further I searched for libawt.*.so and added that path to LD_LI*RY_PATH
> but result is same.
>
> What may be the problem?

Dynamic linking of libawt fails. Read FAQ/FAQ.debugging and use gdb to
figure
out what's really happening. Set a breakpoint on loadNativeLibrary and see
if
you can find out what's the exact cause for the breakage.

There are so many ways for linking of c++ libraries to fail, it's not even
funny (bad moc version in path, bad QTDIr setting, bad QTEDIR setting, wrong
compiler ABI version, and whatever makes qt awt fail on my suse box right
now
wtihout leaving a stack trave in the debugger while it works on my mandrake
box, or as the most bizarre cause I've seen with qt-embedded: not piping
std*
streams to /dev/null ). Without going over through it using gdb, there is no
way you can find out what's the cause du jour ;)

I assume you should first ask wherever you got that ipk file from. I, for
example, don't even know what an ipk file is ;)

good luck hunting the problem down,
dalibor topic

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com


___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [freenet-dev] Re: [kaffe] Kaffe and Freenet, round (N+1)

2003-06-04 Thread Greg Wooledge
Toad ([EMAIL PROTECTED]) wrote:
> On Tue, Jun 03, 2003 at 01:58:58AM +0200, Mark Wielaard wrote:
> > You might want to try to configure kaffe with --enable-pure-java-math
> > that will give you another (the GNU Classpath) java.math.BigInteger
> > implementation (which doesn't use the native libgmp).
> 
> Eeek. Slw. But I suppose if it's all that works.

OK, here we go.

I started by updating from OpenBSD 3.2 to 3.3.  Then I ran Freenet
with Kaffe from early May, which is what I've been using normally
with rather good results.  This seemed to be OK, just as it was
before the OS upgrade.

Then I tried building recent CVS Kaffe (I think it's about 2 days
old now).  I got the same results as before: "Negative bit address",
whatever that means, whenever I tried to access a document.

Then I upgraded gmp from 3.1.1 (the OpenBSD 3.2 port) to 4.1.1 (the
3.3 port).  I rebuilt Kaffe with that version of gmp, and still got
the same results: "Negative bit address".

Next, I tried with --enable-pure-java-math.  This seemed to be working
better; I could run the node and retrieve documents via fproxy (the
web interface) without "Negative bit address" errors.  But, as Toad
said, it's incredibly slow compared to gmp.  Running top, I saw
kaffe-bin take about 30-40% (with spikes up to 90%) of the CPU when
I hit a few image-heavy pages.  Normally I don't see it get over
50% even when it's doing FEC decoding -- under normal conditions,
like retrieving a few pages of images, it never got over 20% or so.

Then, after about 1:30 of CPU time, the node went into a "comatose"
state.  I see this fairly often even with the early-May Kaffe; the
node just sits there, not eating any CPU; sometimes it pulls out by
itself after a few *minutes*(!), but usually it's time to restart it.
After waiting about 5 minutes, I restarted it.

Meanwhile, stdout/stderr had this:

kaffe-bin in malloc(): warning: recursive call.
kaffe-bin in malloc(): warning: recursive call.
kaffe-bin in malloc(): warning: recursive call.

And freenet.log had this:

03-Jun-03 10:42:16 PM (freenet.interfaces.PublicInterface, Interface # tcp/36963, 
NORMAL): Getting thread to dispatch in PublicInterface took more than 10 seconds! If 
this happens frequently, report it to [EMAIL PROTECTED] Waited 101231 millis.
java.lang.Exception: debug
at java.lang.Throwable.fillInStackTrace(Throwable.java:native)
at java.lang.Throwable.(Throwable.java:44)
at java.lang.Exception.(Exception.java:24)
at freenet.interfaces.PublicInterface.dispatch(PublicInterface.java:109)
at freenet.interfaces.Interface.acceptConnections(Interface.java:220)
at freenet.interfaces.Interface.run(Interface.java:172)
at java.lang.Thread.run(Thread.java:334)

(This occurred several times.)

Pretty soon, the restarted node had ground itself down into a coma
just like the first time.  top showed the CPU usage had dropped to
nothing, with about 1:33 elapsed CPU.  No more images were coming
through on the web interface.  There weren't any messages in the
logs this time, though.

So, the upshot is, I'm still running early-May CVS Kaffe.  It's the
only thing that still works.

-- 
Greg Wooledge  |   "Truth belongs to everybody."
[EMAIL PROTECTED]  |- The Red Hot Chili Peppers
http://wooledge.org/~greg/ |


pgp0.pgp
Description: PGP signature


Re: [kaffe] Kaffe CVS: kaffe dalibor

2003-06-04 Thread Dalibor Topic
Hi,

I've finally got around to merge in Jim Huang's Qtopia patch for kaffe's qt
based awt. I've only been able to test this on my mandrake 9.1 box with Qt3 and
it worked fine there. My old suse box seems to have problems with it, since it
crashes kaffe with a null pointer exception with qt2, qt3, qt-embedded and
qtopia, but I blame it on bad, old suse 7.3 ;) Testing this configurations, and
deciding that I can't do nothing against it, is why it took me so long to get
this patch checked in. so sorry for any delays, especially release freeze
related ones ;)

this is what happens on my suse box:  
> /tmp/kaffe-qt2/bin/kaffe -jar TextEdit.jar 
tlkProperties
qapp initialization.

tlkInit Done.
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
at java.awt.Toolkit.tlkInit(Toolkit.java:native)

and the stack trace is empty since the backtrace produces an error about not
being able to dereference a null pointer, so there is some stack corruption
going on. I'll kindly leave fixing of that kind of problems to people who
actually use kaffe's qt-based AWT if the problem occurs on their systems ;)

As usual, any feedback, patches and praise are welcome ;)
 
cheers,
dalibor topic

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] kafee-qt 1.0.7 for ipaq on a board like assabet

2003-06-04 Thread Dalibor Topic
Hi Sankalpa,

--- Sankalpa <[EMAIL PROTECTED]> wrote:
> Hi
> 
>   I have successfully ported linux 2.4.18 rmk 7 to a customised board
> like assabet.I managed to up qt 2.3.2 with ipaq configuration (doing
> some minor modifications to suite to my system touch screen driver).Now
> I can run example aplications in qt 2.3.2 very well.
> 
>   To up kaffe on my machine I downloaded kaffe-qte_1.0.7-0.1_arm.ipk and
> extracted them to /opt directory and added /opt/Q*/bin to my path.
>   So I managed to run simple Hello.class java program.

Are you sure you got that ipk file from kaffe.org?

> I tried to run simple awt applications in following ways.
> 
> 1.with winmanager -qws& up and qt lib path is added to my
> LD_LIBRARY_PATH
> 
> 2.without winmanager up.

What's a winmanager?
 
> In both occations I got following error.
> 
> # java Panel1
> java.lang.ExceptionInInitializerError: [exception was
> java.lang.UnsatisfiedLinkError: libawt: not found]
> at java.awt.Button.(Button.java:44)
> at java.awt.Button.(Button.java:36)
> at Panel1.(Panel1.java:18)
> at Panel1.main(Panel1.java:40)
> java.lang.UnsatisfiedLinkError: libawt: not found
> at java.lang.Throwable.fillInStackTrace(Throwable.java:native)
> at java.lang.Throwable.(Throwable.java:38)
> at java.lang.Error.(Error.java:21)
> at java.lang.LinkageError.(LinkageError.java:21)
> at
> java.lang.UnsatisfiedLinkError.(UnsatisfiedLinkError.java:21)
> at java.lang.Runtime.loadLibrary(Runtime.java:150)
> at java.lang.System.loadLibrary(System.java:142)
> at java.awt.Button.(Button.java:44)
> at java.awt.Button.(Button.java:36)
> at Panel1.(Panel1.java:18)
> at Panel1.main(Panel1.java:40)
> 
> Further I searched for libawt.*.so and added that path to LD_LI*RY_PATH
> but result is same.
> 
> What may be the problem?

Dynamic linking of libawt fails. Read FAQ/FAQ.debugging and use gdb to figure
out what's really happening. Set a breakpoint on loadNativeLibrary and see if
you can find out what's the exact cause for the breakage.

There are so many ways for linking of c++ libraries to fail, it's not even
funny (bad moc version in path, bad QTDIr setting, bad QTEDIR setting, wrong
compiler ABI version, and whatever makes qt awt fail on my suse box right now
wtihout leaving a stack trave in the debugger while it works on my mandrake
box, or as the most bizarre cause I've seen with qt-embedded: not piping std*
streams to /dev/null ). Without going over through it using gdb, there is no
way you can find out what's the cause du jour ;)

I assume you should first ask wherever you got that ipk file from. I, for
example, don't even know what an ipk file is ;)

good luck hunting the problem down,
dalibor topic

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] kaffe on board like assabet with qt

2003-06-04 Thread Dalibor Topic
Hi Sankalpa,

--- Sankalpa <[EMAIL PROTECTED]> wrote:
> Hi
> 
>   I have downloaded kaffe-1.0.7.tar.gz and kaffe-awt-qt.tgz and extracted
> them.I have a well functioning cross toolchain for arm on my i386 linux
> host.
>   Further I have compiled and successfully running qt 2.3.2 on my arm
> machine using that tool chain.
> 
>   Can someone advise me how to compile kaffe for arm with qt support for
> awt?

If you want kaffe with a qt awt that should build out of the box (does that
from, but I'm not cross comiling), use the latest CVS version. Read FAQ/FAQ.awt
for more information. If you have to use kaffe 1.0.7 and kaffe-awt-qt as it is,
... well, read the docs coming with the patch ;)

cheers,
dalibor topic

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Kaffe-AWT-QT

2003-06-04 Thread Dalibor Topic
Hi Samuel,

--- Samuel <[EMAIL PROTECTED]> wrote:
> Hi All,
> I've tried again and again, but I still cannot fix it. I am using the
> kaffe 1.0.7 and qt-embedded 3.2.0. I got error message when I make the
> kaffe-awt-qt. Could anyone tell me which version they are use and get
> success? I have already read the readme.qt also. Anyone have any ideas are
> welcome. Thank you.

check out this thread for more information on what I did to get kaffe embedded
to run. http://www.kaffe.org/pipermail/kaffe/2003-March/029009.html

I was using kaffe from CVS and qt-embedded-free 3.1.2.

cheers,
dalibor topic

p.s. it might be helpful to post the actual error messages you get, just in
case someone has already seen them ;)


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Kaffe CVS: kaffe dalibor

2003-06-04 Thread Kaffe CVS

CVSROOT:/cvs/kaffe
Module name:kaffe
Changes by: dalibor 03/06/03 16:32:08

Modified files:
.  : ChangeLog aclocal.m4 configure gwqt.m4 
libraries/clib/awt/qt: clr.cc evt.cc fnt.cc img.cc tlk.cc wnd.cc 

Log message:
2003-06-03  Dalibor Topic <[EMAIL PROTECTED]>

* gwqt.m4:
Added detection of Qtopia, which means new libs are added to the
linker flags, and a new macro QPE is defined for conditional
compilation of Qtopia specific bits.

* aclocal.m4, configure: regenerated.

2003-06-03 Jim Huang <[EMAIL PROTECTED]>

Adapted Kaffe's Qt based AWT to compile under Qtopia.

* libraries/clib/awt/qt/clr.cc,
libraries/clib/awt/qt/evt.cc,
libraries/clib/awt/qt/tlk.cc,
libraries/clib/awt/qt/wnd.cc:
Use QPEApplication instead of QApplication. Include appropriate
headers.

* libraries/clib/awt/qt/fnt.cc:
Use unifont under QPE.

* libraries/clib/awt/qt/img.cc:
Ifdef-ed out createShmXImage and destroyShmXImage.
Replaced a fprintf by a DBG.


___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] java.lang.UnsatisfiedLinkError: not enough memory

2003-06-04 Thread Ito Kazumitsu
> "+" == Helmer Krämer <[EMAIL PROTECTED]> writes:

+> On Tue, 03 Jun 2003 07:36:26 +0900
+> Ito Kazumitsu <[EMAIL PROTECTED]> wrote:

>> I think lt_dlmalloc/lt_dlfree may well use malloc/free because
>> on a platform which has its own argz_* functions,  which seem
>> to be in glibc,  malloc/free seems to be used in argz_* functions.

+> have you tried implementing a kdlrealloc that uses gc_realloc()?

Thank you for your suggestion.  I made such kdlrealloc and tested it.
I have just commited the new external.c.

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Kaffe CVS: kaffe kaz

2003-06-04 Thread Kaffe CVS

CVSROOT:/cvs/kaffe
Module name:kaffe
Changes by: kaz 03/06/03 08:54:42

Modified files:
.  : ChangeLog 
kaffe/kaffevm  : external.c 

Log message:
* kaffe/kaffevm/external.c
added new function kdlrealloc() to be used as lt_dlrealloc by ltdl.c


___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Release Dates (was Re: [kaffe] Qt AWT backend works underQtopia(Qt Palmtop))

2003-06-04 Thread Jim Pick
On Mon, 2003-06-02 at 08:50, Kiyo Inaba wrote:
> Hi Jim,
> 
> > On Mon, 2003-06-02 at 02:29, Dalibor Topic wrote:
> >> Yeah, I think 2003-06-04 should be the day when all features for the next
> >> version are in and the focus switches over to testing and fixing the
> >> platform-specific bugs and build-problems.
> >>
> >> That would make 2003-06-07 or 2003-06-08 the next release date.
> >Yep.  That's what I meant too...
> 
> So, only 3 days available to adjust 'platform-specific' issues...
> This is the point for me why I asked the original question. If you
> plan to include some regression test results for several platforms
> in the release notes, this period becomes shorter than previous
> release. Of course, I don't remember clearly for the last time because
> it was 11 months ago :-)
> 
> Just for your info, regression test on m68k takes more than 12 hours,
> and if I test all three configurations, the test itself may take this
> period ;-<
> 
> Isn't it good time to consider maintaining development branch on which
> developers introduce new features, and release (or maintenance) branch
> on which developers can only modify bugs, or platform-specific issues?

Well, the original plan for 1.1.0 was to freeze on May 18th, and release
on June 1st.  Obviously, we didn't freeze on May 18th, and did not
release on June 1st.  I'll take the blame for that - I wasn't
prepared...

My intention is to label the 1.1.x series of releases as "development
releases".  We'll do a big 1.2.0 release sometime in the future, which
we will label a "production release".  So we'll be following the
convention as the Linux kernel, where odd-numbered minor number releases
are development, and even-numbered minor number releases are production.

Here's a proposal for 1.1.1 - I think we should do a two month cycle. 
We should freeze on July 27th (bug fixes only afterwards), and release
on August 3rd.  That will give us a week of testing next time.  I don't
want to freeze for too long, because most of the things we call
"features" are actually just really big bug fixes.  :-)

As for regression test results - what I'd like to do is to get some more
automated reporting via the website.  And maybe we could snapshot that
for the development releases.  This seems like a longer term project
though, for future releases.

Cheers,

 - Jim


___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] SH3 problem

2003-06-04 Thread Kiyo Inaba
Hi,

Since I can not play with Kaffe tomorrow (I hope 'only'), if someone
can give me some hints for current problem for sh3-linux.

If I use, 

Engine: Interpreter   Version: 1.1.x-cvs   Java Version: 1.1
Configuration/Compilation options:
  Compile date  : Tue Jun 3 01:27:10 JST 2003
  Compile host  : marshall
  Install prefix: /usr/local/kaffe
  Thread system : unix-jthreads
  CC: sh3-linux-gcc
  CFLAGS: -g
  LDFLAGS   : 
  ChangeLog head: 2003-05-17 Benja Fallenstein <[EMAIL PROTECTED]>

regression test works, but if I use

Engine: Interpreter   Version: 1.1.x-cvs   Java Version: 1.1
Configuration/Compilation options:
  Compile date  : Tue Jun 3 11:47:36 JST 2003
  Compile host  : marshall
  Install prefix: /usr/local/kaffe
  Thread system : unix-jthreads
  CC: sh3-linux-gcc
  CFLAGS: -g
  LDFLAGS   : 
  ChangeLog head: 2003-05-19  Helmer Kraemer  <[EMAIL PROTECTED]>

then regression test produces,


error compiling:
java.lang.ClassNotFoundException: at/dms/kjc/Main
at kaffe.lang.SystemClassLoader.findClass0(SystemClassLoader.java:native)
at kaffe.lang.SystemClassLoader.findClass(SystemClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:149)
at java.lang.Class.forName(Class.java:74)
at java.lang.Class.forName(Class.java:43)
Caused by: 
FAIL: HelloWorldApp.java


There are so many changes in these two days, and I can not point out
which mod introduces this problem.

Kiyo

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe