[kaffe] initial frame position

2005-11-11 Thread Gianluca Moro
hi all,

I'm running kagge with a graphical output
directly on X, without any window manager.

I see that all the applicatio I start are placed in (0,0)
(upper lefr corner of the screen) while starting 
my java application under kaffe it is placed in a bit
on the left, and below the upper screen (about (5,30)).

I imagine this is some default setted in kaffe or in the
java interface: is there an option to force
the position in (0,0), osmething analogous to
give -geometry +0+0?

(My test:

#
LD_PRELOAD=/usr/X11R6/lib/libX11.so:/usr/lib/libpng.so:/usr/lib/libz.so:/usr/local/lib/libjpeg.so
 /usr/local/kaffe/bin/kaffe -geometry +0+0 -Dkaffe.awt.nativelib=xawt
-Xbootclasspath/p:/usr/local/kaffe/kaffeawt.jar Jnoti 

gives:
java.lang.ClassNotFoundException: +0+0 not found in
java.lang.ClassLoader$1{urls=[file:/etc/init.d/./], parent=null}

thanks
giammy




--
Gianluca Moro  http://groups.yahoo.com/group/embeddeditalia/
ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED
[EMAIL PROTECTED]   Visit http://ilpinguino.altervista.org/






___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Build Kaffe 1.1.6 using gcc 3.3.1 on QNX 6.3.0, x86 processor

2005-11-11 Thread Tedd Alevo
Dear List,

I'm trying to build kaffe using the system specified above. My C and C++ 
knowledge is rather a bit out of date, so I don't know if I've done the right 
things.
I did use the following configure-call:

/configure --host=i586-qnx --build=i586-qnx --without-X --without-native-awt
  --without-classpath-gtk-awt --without-alsa --without-esd 
--enable-pure-java-math
  --disable-boehm-gc-configuration

I had to hack a few things, hopefully I did the right things, but I'm open to 
new suggestions. This is waht I did:

/config/i386/atomic.h:

Changed

typedef int8_t atomic8_t;
typedef uint8_t uatomic8_t;
typedef int_fast8_t atomic_fast8_t;
typedef uint_fast8_t uatomic_fast8_t;

typedef int16_t atomic16_t;
typedef uint16_t uatomic16_t;
typedef int_fast16_t atomic_fast16_t;
typedef uint_fast16_t uatomic_fast16_t;

typedef int32_t atomic32_t;
typedef uint32_t uatomic32_t;
typedef int_fast32_t atomic_fast32_t;
typedef uint_fast32_t uatomic_fast32_t;

typedef int64_t atomic64_t;
typedef uint64_t uatomic64_t;
typedef int_fast64_t atomic_fast64_t;
typedef uint_fast64_t uatomic_fast64_t;

to

typedef int8_t atomic8_t;
typedef uint8_t uatomic8_t;
typedef atomic8_t int_fast8_t;
typedef uatomic8_t uint_fast8_t;
typedef int_fast8_t atomic_fast8_t;
typedef uint_fast8_t uatomic_fast8_t;

typedef int16_t atomic16_t;
typedef uint16_t uatomic16_t;
typedef atomic16_t int_fast16_t;
typedef uatomic16_t uint_fast16_t;
typedef int_fast16_t atomic_fast16_t;
typedef uint_fast16_t uatomic_fast16_t;

typedef int32_t atomic32_t;
typedef uint32_t uatomic32_t;
typedef atomic32_t int_fast32_t;
typedef uatomic32_t uint_fast32_t;
typedef int_fast32_t atomic_fast32_t;
typedef uint_fast32_t uatomic_fast32_t;

typedef int64_t atomic64_t;
typedef uint64_t uatomic64_t;
typedef atomic64_t int_fast64_t;
typedef uatomic64_t uint_fast64_t;
typedef int_fast64_t atomic_fast64_t;
typedef uint_fast64_t uatomic_fast64_t;

which is what I was told this file looks like in a building linux dist.

Additionally I had to edit /config/i386/qnx/md.h, since struct _sigcontext 
wasn't approved by the compiler.
I have changed ulong_t to uint32_t, ushort_t to uint16_t and uchar_t to uint8_t.

Now I'm stuck with a compiler error that I can't handle anymore:
error: can't find a register in class `GENERAL_REGS' while reloading `asm'

I'd appreciate your help. Below is some error-msg context. Thank you all!



Alevo

(...)
Making all in kaffe/kaffevm
make[1]: Entering directory `/root/kaffe-1.1.6/kaffe/kaffevm'
Making all in jit
make[2]: Entering directory `/root/kaffe-1.1.6/kaffe/kaffevm/jit'
make  all-am
make[3]: Entering directory `/root/kaffe-1.1.6/kaffe/kaffevm/jit'
if /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. 
-I../../../config  -I../../../kaffe/kaffevm/systems/unix-pthreads 
-I../../../kaffe/kaffevm/jni -I.. -I./.. -DTRANSLATOR -I../../../kaffe/jvmpi 
-I../../../include -I/root/kaffe-1.1.6/./kaffe/kaffevm 
-I/root/kaffe-1.1.6/./kaffe/kaffevm/jit 
-I/root/kaffe-1.1.6/./kaffe/kaffevm/systems/unix-pthreads -I../../../replace 
-I../../../binreloc -I../../../config -I../../../include  -DKAFFE_VMDEBUG 
-D_REENTRANT  -O -fno-pack-struct   -MT methodcalls.lo -MD -MP -MF 
.deps/methodcalls.Tpo -c -o methodcalls.lo methodcalls.c;
then mv -f .deps/methodcalls.Tpo .deps/methodcalls.Plo; else rm -f 
.deps/methodcalls.Tpo; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../../../config 
-I../../../kaffe/kaffevm/systems/unix-pthreads -I../../../kaffe/kaffevm/jni 
-I.. -I./.. -DTRANSLATOR -I../../../kaffe/jvmpi -I../../../include 
-I/root/kaffe-1.1.6/./kaffe/kaffevm -I/root/kaffe-1.1.6/./kaffe/kaffevm/jit 
-I/root/kaffe-1.1.6/./kaffe/kaffevm/systems/unix-pthreads -I../../../replace 
-I../../../binreloc -I../../../config -I../../../include -DKAFFE_VMDEBUG 
-D_REENTRANT -O -fno-pack-struct -MT methodcalls.lo -MD -MP -MF 
.deps/methodcalls.Tpo -c methodcalls.c -o methodcalls.o
In file included from ../../../config/md.h:1,
 from ../locks.h:18,
 from machine.h:179,
 from methodcalls.c:21:
./../../config/i386/qnx/md.h:19:19: warning: extra tokens at end of #undef 
directive
methodcalls.c: In function `engine_callMethod':
./../../config/i386/qnx/md.h:94: error: can't find a register in class 
`GENERAL_REGS' while reloading `asm'
make[3]: *** [methodcalls.lo] Error 1
make[3]: Leaving directory `/root/kaffe-1.1.6/kaffe/kaffevm/jit'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/kaffe-1.1.6/kaffe/kaffevm/jit'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/kaffe-1.1.6/kaffe/kaffevm'
make: *** [all-recursive] Error 1

_
 - by webtopio.com



___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] initial frame position

2005-11-11 Thread Guilhem Lavaux

Gianluca Moro wrote:

hi all,

I'm running kagge with a graphical output
directly on X, without any window manager.

I see that all the applicatio I start are placed in (0,0)
(upper lefr corner of the screen) while starting 
my java application under kaffe it is placed in a bit

on the left, and below the upper screen (about (5,30)).



I think that you are using kaffe-x-awt AWT ? Then there is an heuristic 
algorithm to detect the size of the decoration which is applied to a 
frame. In the case there is no WM maybe it is wrong. However it is 
possible to disengage the heuristic by removing the property 
EXTERNAL_DECO in libraries/clib/awt/X/tlk.c:tlkProperties().


Could you try this ?

Thanks,

Regards,

Guilhem.


I imagine this is some default setted in kaffe or in the
java interface: is there an option to force
the position in (0,0), osmething analogous to
give -geometry +0+0?

(My test:

#
LD_PRELOAD=/usr/X11R6/lib/libX11.so:/usr/lib/libpng.so:/usr/lib/libz.so:/usr/local/lib/libjpeg.so
 /usr/local/kaffe/bin/kaffe -geometry +0+0 -Dkaffe.awt.nativelib=xawt
-Xbootclasspath/p:/usr/local/kaffe/kaffeawt.jar Jnoti 


gives:
java.lang.ClassNotFoundException: +0+0 not found in
java.lang.ClassLoader$1{urls=[file:/etc/init.d/./], parent=null}

thanks
giammy




--
Gianluca Moro  http://groups.yahoo.com/group/embeddeditalia/
ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED
[EMAIL PROTECTED]   Visit http://ilpinguino.altervista.org/






___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe




___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Bug Report - Kaffe with AntiVir

2005-11-11 Thread Guilhem Lavaux

Marko Merl wrote:

hey,

today i installed antivir-workstation-6.32.0.56-linux. it runs perfactly
in the console but if i start the gui (antivir-gui) i got this
error-message:
--- ERROR ---
kaffe-bin:
/build/buildd/kaffe-1.1.6/build-tree/kaffe-1.1.6/kaffe/kaffevm/support.c:351:
lookupClassMethod: Assertion `cls != ((void *)0)' failed.
---  EOF  ---

so, what can i do to get this error away?



Could you try the CVS head version ? :) Generally bugs are already fixed 
here. If it is not the case we will have to enter a debugging session. ;)


Thanks,

Regards,

Guilhem.


thanks for your help forward.


see you,
---
Marko Merl
http://www.linux-tux.at


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe




___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Question about function 'sysdepCallMethod'

2005-11-11 Thread Guilhem Lavaux

Hi,

sysdepCallMethod is not simply this. It ensures that the arguments are 
passed correctly according to the ABI for some architecture/os/compiler 
combination. Generally it must be written in assembly or using some 
tricks of the compiler. sysdepCallMethod takes a pointer to some 
function, its arguments and then build a function call and finally call 
it. Once the function returns, the returned value is taken from the 
stack/registers and pushed into the return value memory.


Regards,

Guilhem.

qi fenghai wrote:
Hi all, Please advise if 'sysdepCallMethod' can be implemented by this 
way as bellow:


method 1:
 in JVM:
typedef int (*FUNCTYPE)();  //function's return type is int
FUNCTYPE *nativefunc = (FUNCTYPE)dlsym(handle, foo);
//four argument
(*nativefunc)(1, 2.5);

 in share library:
int foo(int, double);

method 2:
 in JVM:
typedef int (*FUNCTYPE)(...);  //function's return type is int, 
argument list is '...'

FUNCTYPE *nativefunc = (FUNCTYPE)dlsym(handle, foo);
//four argument
(*nativefunc)(1, 2.5);

 in share library:
int foo(int, double);

_
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:  http://messenger.msn.com/cn 


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe




___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe