[kaffe] kaffe VxWorks

2006-09-05 Thread S . HadjSaid

Hello,
i ask if i can  built and run Kaffe VM on VxWorks?
i am using
Plateform target: VxWorks 5.5.1 Intel (x86)
Plateform host: Windows XP
if yes witch version of kaffe ?


Thanks for the info,


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


[kaffe] CVS kaffe (kaz): libraries/clib/net/PlainSocketImpl.c: Changed the wrong name

2006-09-05 Thread Kaffe CVS
PatchSet 7388 
Date: 2006/08/19 22:14:05
Author: kaz
Branch: HEAD
Tag: (none) 
Log:
2006-08-20  Ito Kazumitsu  [EMAIL PROTECTED]

* libraries/clib/net/PlainSocketImpl.c: Changed the wrong name
java.net.IOException to java.io.IOException.

Members: 
ChangeLog:1.4890-1.4891 
libraries/clib/net/PlainSocketImpl.c:1.57-1.58 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4890 kaffe/ChangeLog:1.4891
--- kaffe/ChangeLog:1.4890  Sat Aug 19 21:48:45 2006
+++ kaffe/ChangeLog Sat Aug 19 22:14:05 2006
@@ -1,3 +1,8 @@
+2006-08-20  Ito Kazumitsu  [EMAIL PROTECTED]
+
+   * libraries/clib/net/PlainSocketImpl.c: Changed the wrong name
+   java.net.IOException to java.io.IOException.
+
 2006-08-19  Dalibor Topic  [EMAIL PROTECTED]
 
* libraries/javalib/vmspecific/gnu/classpath/jdwp/VMFrame.java,
Index: kaffe/libraries/clib/net/PlainSocketImpl.c
diff -u kaffe/libraries/clib/net/PlainSocketImpl.c:1.57 
kaffe/libraries/clib/net/PlainSocketImpl.c:1.58
--- kaffe/libraries/clib/net/PlainSocketImpl.c:1.57 Fri Nov 25 21:01:54 2005
+++ kaffe/libraries/clib/net/PlainSocketImpl.c  Sat Aug 19 22:14:10 2006
@@ -790,7 +790,7 @@
   if (unhand(this)-native_fd  0)
 SignalError(java.net.SocketException, Socket was 
closed);
 
-  SignalError(java.net.IOException, SYS_ERROR(rc));
+  SignalError(java.io.IOException, SYS_ERROR(rc));
 } else if (rc == 0  r == 0  len  0) {
   releaseFileToSocket(this);
   return (-1);

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


[kaffe] CVS kaffe (robilad): cleaned up VM interfaces

2006-09-05 Thread Kaffe CVS
PatchSet 7387 
Date: 2006/08/19 21:48:45
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
cleaned up VM interfaces

2006-08-19  Dalibor Topic  [EMAIL PROTECTED]

* libraries/javalib/vmspecific/gnu/classpath/jdwp/VMFrame.java,
libraries/javalib/vmspecific/gnu/classpath/jdwp/VMIdManager.java,
libraries/javalib/vmspecific/gnu/classpath/jdwp/VMMethod.java,
libraries/javalib/vmspecific/gnu/classpath/jdwp/VMVirtualMachine.java,
libraries/javalib/vmspecific/gnu/inet/finger/package.html,
libraries/javalib/vmspecific/gnu/inet/gopher/package.html,
libraries/javalib/vmspecific/gnu/inet/imap/package.html,
libraries/javalib/vmspecific/gnu/inet/nntp/package.html,
libraries/javalib/vmspecific/gnu/inet/pop3/package.html,
libraries/javalib/vmspecific/gnu/inet/smtp/package.html,
libraries/javalib/vmspecific/gnu/java/lang/VMInstrumentationImpl.java,

libraries/javalib/vmspecific/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java,

libraries/javalib/vmspecific/gnu/java/lang/management/VMCompilationMXBeanImpl.java,

libraries/javalib/vmspecific/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java,

libraries/javalib/vmspecific/gnu/java/lang/management/VMMemoryMXBeanImpl.java,

libraries/javalib/vmspecific/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java,

libraries/javalib/vmspecific/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java,

libraries/javalib/vmspecific/gnu/java/lang/management/VMRuntimeMXBeanImpl.java,

libraries/javalib/vmspecific/gnu/java/lang/management/VMThreadMXBeanImpl.java,
libraries/javalib/vmspecific/gnu/java/nio/VMChannel.java,
libraries/javalib/vmspecific/gnu/java/nio/VMPipe.java,
libraries/javalib/vmspecific/gnu/java/nio/VMSelector.java,
libraries/javalib/vmspecific/java/io/VMFile.java,
libraries/javalib/vmspecific/java/io/VMObjectInputStream.java,
libraries/javalib/vmspecific/java/io/VMObjectStreamClass.java,
libraries/javalib/vmspecific/java/lang/VMClass.java,
libraries/javalib/vmspecific/java/lang/VMCompiler.java,
libraries/javalib/vmspecific/java/lang/VMDouble.java,
libraries/javalib/vmspecific/java/lang/VMFloat.java,
libraries/javalib/vmspecific/java/lang/VMMath.java,
libraries/javalib/vmspecific/java/lang/VMObject.java,

libraries/javalib/vmspecific/java/lang/management/VMManagementFactory.java,
libraries/javalib/vmspecific/java/lang/reflect/VMProxy.java,
libraries/javalib/vmspecific/java/net/VMNetworkInterface.java,
libraries/javalib/vmspecific/java/nio/VMDirectByteBuffer.java,
libraries/javalib/vmspecific/java/nio/channels/VMChannels.java:
Removed.

* libraries/javalib/vmspecific/Makefile.am: Removed unimplemented and 
duplicate
VM interfaces.

Members: 
ChangeLog:1.4889-1.4890 
libraries/javalib/vmspecific/Makefile.am:1.1-1.2 
libraries/javalib/vmspecific/Makefile.in:1.1-1.2 

libraries/javalib/vmspecific/gnu/classpath/jdwp/VMFrame.java:1.2-1.3(DEAD) 

libraries/javalib/vmspecific/gnu/classpath/jdwp/VMIdManager.java:1.1-1.2(DEAD) 

libraries/javalib/vmspecific/gnu/classpath/jdwp/VMMethod.java:1.1-1.2(DEAD) 

libraries/javalib/vmspecific/gnu/classpath/jdwp/VMVirtualMachine.java:1.2-1.3(DEAD)
 

libraries/javalib/vmspecific/gnu/inet/finger/package.html:1.1-1.2(DEAD) 

libraries/javalib/vmspecific/gnu/inet/gopher/package.html:1.1-1.2(DEAD) 
libraries/javalib/vmspecific/gnu/inet/imap/package.html:1.1-1.2(DEAD) 
libraries/javalib/vmspecific/gnu/inet/nntp/package.html:1.1-1.2(DEAD) 
libraries/javalib/vmspecific/gnu/inet/pop3/package.html:1.1-1.2(DEAD) 
libraries/javalib/vmspecific/gnu/inet/smtp/package.html:1.1-1.2(DEAD) 

libraries/javalib/vmspecific/gnu/java/lang/VMInstrumentationImpl.java:1.1-1.2(DEAD)
 

libraries/javalib/vmspecific/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java:1.1-1.2(DEAD)
 

libraries/javalib/vmspecific/gnu/java/lang/management/VMCompilationMXBeanImpl.java:1.1-1.2(DEAD)
 

libraries/javalib/vmspecific/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java:1.1-1.2(DEAD)
 

libraries/javalib/vmspecific/gnu/java/lang/management/VMMemoryMXBeanImpl.java:1.1-1.2(DEAD)
 

libraries/javalib/vmspecific/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java:1.1-1.2(DEAD)
 

libraries/javalib/vmspecific/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java:1.1-1.2(DEAD)
 

libraries/javalib/vmspecific/gnu/java/lang/management/VMRuntimeMXBeanImpl.java:1.1-1.2(DEAD)
 

libraries/javalib/vmspecific/gnu/java/lang/management/VMThreadMXBeanImpl.java:1.1-1.2(DEAD)
 
libraries/javalib/vmspecific/gnu/java/nio/VMChannel.java:1.1-1.2(DEAD) 

[kaffe] porting cross compiled kaffe to other platform?

2006-09-05 Thread thuanpv

I'm wondering the way to port kaffe to a development KIT (ARM/Linux for
example).
I cross compiled kaffe successfully for ARM chip (with build system is
i686/Linux and host system is ARM/Linux) and now i want to port this to
AT9200 kit (with ARM CPU and Linux OS). After cross compiling, i have a lot
of files, what should i do to port these file to AT9200 KIT and run kaffe on
it? 
1. Can i port all file to KIT? if yes, what should i do?
2. Do i have to make an unique file (.BIN for example because when my
friends port Linux OS to AT9200, they have to make only one file .BIN, after
that loading this file to KIT)
I have read some topic and also documentation about porting kaffe to other
platform on www.kaffe.org but this document only guide to way to modify some
element on kaffe code, not the way to port an cross compiled kaffe
distribution to other platform.
Thanks so much!

-- 
View this message in context: 
http://www.nabble.com/porting-cross-compiled-kaffe-to-other-platform--tf2135138.html#a5892326
Sent from the kaffe general forum at Nabble.com.


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


[kaffe] CVS kaffe (robilad): use GLIBJ_ZIP throughout the build system

2006-09-05 Thread Kaffe CVS
PatchSet 7389 
Date: 2006/08/20 22:27:29
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
use GLIBJ_ZIP throughout the build system

2006-08-20  Dalibor Topic  [EMAIL PROTECTED]

* configure.ac: Substitute GLIBJ_ZIP for location of glibj.zip.

* Makefile.am (BUILD_ENVIRONMENT-make),
include/Makefile.am,
libraries/javalib/Makefile.am,
libraries/javalib/awt-implementations/kaffe/Makefile.am,
libraries/javalib/dnsjava/Makefile.am,
libraries/javalib/gmp-math/Makefile.am,
libraries/javalib/gnu-inet/Makefile.am,
libraries/javalib/tritonus-sound/Makefile.am,
libraries/javalib/vmspecific/Makefile.am,
libraries/javalib/zlib-zip/Makefile.am,
test/internal/Makefile.am,
test/jni/Makefile.am,
tools/gjdoc/javalib/Makefile.am,
tools/javatools/Makefile.am:
Use GLIBJ_ZIP.

Members: 
ChangeLog:1.4891-1.4892 
Makefile.am:1.113-1.114 
Makefile.in:1.264-1.265 
configure:1.567-1.568 
configure.ac:1.245-1.246 
config/Makefile.in:1.227-1.228 
external/Makefile.in:1.18-1.19 
external/gcc/Makefile.in:1.19-1.20 
external/gcc/zlib/Makefile.in:1.19-1.20 
include/Makefile.am:1.133-1.134 
include/Makefile.in:1.290-1.291 
kaffe/Makefile.in:1.181-1.182 
kaffe/jvmpi/Makefile.in:1.105-1.106 
kaffe/kaffe/Makefile.in:1.203-1.204 
kaffe/kaffeh/Makefile.in:1.186-1.187 
kaffe/kaffevm/Makefile.in:1.240-1.241 
kaffe/kaffevm/boehm-gc/Makefile.in:1.68-1.69 
kaffe/kaffevm/gcj/Makefile.in:1.161-1.162 
kaffe/kaffevm/intrp/Makefile.in:1.170-1.171 
kaffe/kaffevm/jit/Makefile.in:1.180-1.181 
kaffe/kaffevm/jit3/Makefile.in:1.150-1.151 
kaffe/kaffevm/jni/Makefile.in:1.74-1.75 
kaffe/kaffevm/kaffe-gc/Makefile.in:1.67-1.68 
kaffe/kaffevm/systems/Makefile.in:1.170-1.171 
kaffe/kaffevm/systems/beos-native/Makefile.in:1.161-1.162 
kaffe/kaffevm/systems/drops-l4threads/Makefile.in:1.24-1.25 
kaffe/kaffevm/systems/oskit-pthreads/Makefile.in:1.167-1.168 
kaffe/kaffevm/systems/unix-jthreads/Makefile.in:1.171-1.172 
kaffe/kaffevm/systems/unix-pthreads/Makefile.in:1.147-1.148 
kaffe/kaffevm/verifier/Makefile.in:1.73-1.74 
kaffe/man/Makefile.in:1.168-1.169 
kaffe/scripts/Makefile.in:1.209-1.210 
kaffe/scripts/bat/Makefile.in:1.160-1.161 
kaffe/scripts/compat/Makefile.in:1.187-1.188 
kaffe/xprof/Makefile.in:1.136-1.137 
libraries/Makefile.in:1.164-1.165 
libraries/clib/Makefile.in:1.182-1.183 
libraries/clib/awt/Makefile.in:1.179-1.180 
libraries/clib/awt/X/Makefile.in:1.173-1.174 
libraries/clib/awt/nano-X/Makefile.in:1.45-1.46 
libraries/clib/awt/qt/Makefile.in:1.127-1.128 
libraries/clib/io/Makefile.in:1.179-1.180 
libraries/clib/management/Makefile.in:1.182-1.183 
libraries/clib/math/Makefile.in:1.176-1.177 
libraries/clib/native/Makefile.in:1.228-1.229 
libraries/clib/net/Makefile.in:1.188-1.189 
libraries/clib/nio/Makefile.in:1.113-1.114 
libraries/clib/security/Makefile.in:1.148-1.149 
libraries/clib/sound/Makefile.in:1.73-1.74 
libraries/clib/sound/alsa/Makefile.in:1.74-1.75 
libraries/clib/sound/common/Makefile.in:1.73-1.74 
libraries/clib/sound/esd/Makefile.in:1.74-1.75 
libraries/clib/target/Makefile.in:1.33-1.34 
libraries/clib/target/Linux/Makefile.in:1.33-1.34 
libraries/clib/target/generic/Makefile.in:1.33-1.34 
libraries/clib/zip/Makefile.in:1.181-1.182 
libraries/javalib/Makefile.am:1.455-1.456 
libraries/javalib/Makefile.in:1.570-1.571 
libraries/javalib/awt-implementations/Makefile.in:1.58-1.59 
libraries/javalib/awt-implementations/kaffe/Makefile.am:1.22-1.23 
libraries/javalib/awt-implementations/kaffe/Makefile.in:1.76-1.77 
libraries/javalib/dnsjava/Makefile.am:1.2-1.3 
libraries/javalib/dnsjava/Makefile.in:1.3-1.4 
libraries/javalib/gmp-math/Makefile.am:1.10-1.11 
libraries/javalib/gmp-math/Makefile.in:1.66-1.67 
libraries/javalib/gnu-inet/Makefile.am:1.1-1.2 
libraries/javalib/gnu-inet/Makefile.in:1.1-1.2 
libraries/javalib/tritonus-sound/Makefile.am:1.1-1.2 
libraries/javalib/tritonus-sound/Makefile.in:1.2-1.3 
libraries/javalib/vmspecific/Makefile.am:1.2-1.3 
libraries/javalib/vmspecific/Makefile.in:1.2-1.3 
libraries/javalib/zlib-zip/Makefile.am:1.2-1.3 
libraries/javalib/zlib-zip/Makefile.in:1.2-1.3 
replace/Makefile.in:1.123-1.124 
test/Makefile.in:1.173-1.174 
test/internal/Makefile.am:1.29-1.30 
test/internal/Makefile.in:1.146-1.147 
test/jni/Makefile.am:1.15-1.16 
test/jni/Makefile.in:1.77-1.78 

[kaffe] CVS kaffe (alper): new Xynth Windowing System AWT backend

2006-09-05 Thread Kaffe CVS
PatchSet 7392 
Date: 2006/08/22 12:54:38
Author: alper
Branch: HEAD
Tag: (none) 
Log:
new Xynth Windowing System AWT backend

Members: 
ChangeLog:1.4894-1.4895 
Makefile.am:1.115-1.116 
WHATSNEW:1.57-1.58 
configure.ac:1.247-1.248 
FAQ/FAQ.awt:1.15-1.16 
kaffe/kaffe/Makefile.am:1.35-1.36 
kaffe/kaffe/main.c:1.100-1.101 
libraries/clib/awt/Makefile.am:1.14-1.15 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4894 kaffe/ChangeLog:1.4895
--- kaffe/ChangeLog:1.4894  Tue Aug 22 12:24:34 2006
+++ kaffe/ChangeLog Tue Aug 22 12:54:38 2006
@@ -1,3 +1,21 @@
+2006-08-22  Alper Akcan [EMAIL PROTECTED]
+   * Makefile.am,
+   configure.ac,
+   WHATSNEW,
+   README.xynth,
+   libraries/javalib/Makefile.am,
+   libraries/clib/awt/xynth/graphic.c,
+   libraries/clib/awt/xynth/image.c,
+   libraries/clib/awt/xynth/font.c,
+   libraries/clib/awt/xynth/toolkit.h,
+   libraries/clib/awt/xynth/color.c,
+   libraries/clib/awt/xynth/window.c,
+   libraries/clib/awt/xynth/Makefile.am,
+   libraries/clib/awt/xynth/event.c,
+   libraries/clib/awt/xynth/toolkit.c:
+   
+   new xynth based awt backend.
+
 2006-08-22  Dalibor Topic  [EMAIL PROTECTED]
 
Switched nio libraries to GNU Classpath's version.
Index: kaffe/Makefile.am
diff -u kaffe/Makefile.am:1.115 kaffe/Makefile.am:1.116
--- kaffe/Makefile.am:1.115 Tue Aug 22 12:24:38 2006
+++ kaffe/Makefile.am   Tue Aug 22 12:54:41 2006
@@ -240,6 +240,9 @@
 if COND_KAFFE_X_AWT
 DIRECTORIES_AFTER_RTJAR += libraries/clib/awt/X
 endif
+if COND_KAFFE_XYNTH_AWT
+DIRECTORIES_AFTER_RTJAR += libraries/clib/awt/xynth
+endif
 endif
 
 check-local:
Index: kaffe/WHATSNEW
diff -u kaffe/WHATSNEW:1.57 kaffe/WHATSNEW:1.58
--- kaffe/WHATSNEW:1.57 Wed Aug  9 21:43:04 2006
+++ kaffe/WHATSNEW  Tue Aug 22 12:54:42 2006
@@ -5,6 +5,7 @@
 * Added --disable-zlib-zip optin to use GNU Classpath's
   java.util.zip implementation.
 * Removed comm, servlet, microsoft and pjava extensions.
+* Xynth Windowing System based AWT backend.
 
 What's New In Kaffe 1.1.7
 --
Index: kaffe/configure.ac
diff -u kaffe/configure.ac:1.247 kaffe/configure.ac:1.248
--- kaffe/configure.ac:1.247Tue Aug 22 12:24:45 2006
+++ kaffe/configure.ac  Tue Aug 22 12:54:42 2006
@@ -2015,6 +2015,30 @@
fi
 fi
 
+AC_ARG_WITH([kaffe-xynth-awt],
+   AS_HELP_STRING([--with-kaffe-xynth-awt],
+   [enable build of Kaffe's Xynth AWT engine (not built by 
default)]),
+   [],
+   [with_kaffe_xynth_awt=no]
+)
+
+AM_CONDITIONAL(COND_KAFFE_XYNTH_AWT, test x$with_kaffe_xynth_awt != xno)
+
+if test x$enable_native_awt = xyes; then
+   if test x$with_kaffe_xynth_awt = xyes; then
+
+   dnl 
---
+   dnl Xynth AWT support
+   dnl 
---
+
+   AWT_LIBS=-lxynth
+   AWT_LIBS=$CTLIBS $AWT_LIBS
+   AC_SUBST(AWT_LIBS)
+   
+   AWT_LIB=$AWT_LIB 
\$(top_builddir)/libraries/clib/awt/xynth/libxynthawt.la
+   fi
+fi
+
 dnl -
 dnl Configure sound backend
 dnl -
@@ -2551,6 +2575,7 @@
 AC_CONFIG_FILES([libraries/clib/awt/X/Makefile])
 AC_CONFIG_FILES([libraries/clib/awt/qt/Makefile])
 AC_CONFIG_FILES([libraries/clib/awt/nano-X/Makefile])
+AC_CONFIG_FILES([libraries/clib/awt/xynth/Makefile])
 AC_CONFIG_FILES([libraries/clib/sound/Makefile])
 AC_CONFIG_FILES([libraries/clib/sound/alsa/Makefile])
 AC_CONFIG_FILES([libraries/clib/sound/common/Makefile])
Index: kaffe/FAQ/FAQ.awt
diff -u kaffe/FAQ/FAQ.awt:1.15 kaffe/FAQ/FAQ.awt:1.16
--- kaffe/FAQ/FAQ.awt:1.15  Sat Mar 25 13:16:15 2006
+++ kaffe/FAQ/FAQ.awt   Tue Aug 22 12:54:42 2006
@@ -164,6 +164,22 @@
 
   kaffe -Xkaffe-nanox-awt YourClass
 
+* --with-kaffe-xynth-awt
+
+  an Xynth Windowing System based AWT backend.
+
+  The Xynth based AWT backend has been written by Alper Akcan from
+  Xynth Team.
+
+  See http://www.xynth.org for information on Xynth Window System.
+  Additional url: http://gsulinux.org/~distch/projects/xynth
+
+  You need to run kaffe with -Xkaffe-xynth-awt option, in order for it
+  to load the correct classes for this AWT. So you should run your
+  code with
+
+  kaffe -Xkaffe-xynth-awt YourClass
+
 Troubleshooting
 ---
 
Index: kaffe/kaffe/kaffe/Makefile.am
diff -u kaffe/kaffe/kaffe/Makefile.am:1.35 kaffe/kaffe/kaffe/Makefile.am:1.36
--- kaffe/kaffe/kaffe/Makefile.am:1.35  Sun Jul  9 16:58:43 2006
+++ kaffe/kaffe/kaffe/Makefile.am   Tue Aug 22 12:54:42 2006
@@ -30,6 +30,10 @@
 INCLUDE_KAFFE_NANOX_AWT = -DKAFFE_NANOX_AWT_INCLUDED
 endif
 
+if COND_KAFFE_XYNTH_AWT
+INCLUDE_KAFFE_XYNTH_AWT = -DKAFFE_XYNTH_AWT_INCLUDED
+endif
+
 

[kaffe] CVS kaffe (robilad): switched io over to gnu classpath's version

2006-09-05 Thread Kaffe CVS
PatchSet 7394 
Date: 2006/08/24 11:06:19
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
switched io over to gnu classpath's version

2006-08-24  Dalibor Topic  [EMAIL PROTECTED]

Switched io libraries to GNU Classpath's version.

* libraries/clib/io/Makefile.am,
libraries/clib/io/Makefile.in,
libraries/clib/io/java_io_VMObjectInputStream.c,
libraries/clib/io/java_io_VMObjectStreamClass.c:
Removed.

* Makefile.am (BUILD_ENVIRONMENT-make): Set KAFFELIBRARYPATH to GNU 
Classpath's
java-io native library.

* configure.ac (JAVA_LIBS) Removed kaffe's native io library.
Don't output Makefile for Kaffe's native io libraries.

* kaffe/kaffevm/Makefile.am: Added Kaffe's native io code
implementation to the library.

* libraries/clib/Makefile.am: (SUBDIRS) Removed io.

Members: 
ChangeLog:1.4896-1.4897 
Makefile.am:1.117-1.118 
Makefile.in:1.267-1.268 
configure:1.570-1.571 
configure.ac:1.249-1.250 
kaffe/kaffevm/Makefile.am:1.86-1.87 
kaffe/kaffevm/Makefile.in:1.243-1.244 
libraries/clib/Makefile.am:1.27-1.28 
libraries/clib/Makefile.in:1.185-1.186 
libraries/clib/io/Makefile.am:1.23-1.24(DEAD) 
libraries/clib/io/Makefile.in:1.181-1.182(DEAD) 
libraries/clib/io/java_io_VMObjectInputStream.c:1.3-1.4(DEAD) 
libraries/clib/io/java_io_VMObjectStreamClass.c:1.3-1.4(DEAD) 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4896 kaffe/ChangeLog:1.4897
--- kaffe/ChangeLog:1.4896  Thu Aug 24 01:05:18 2006
+++ kaffe/ChangeLog Thu Aug 24 11:06:19 2006
@@ -1,3 +1,24 @@
+2006-08-24  Dalibor Topic  [EMAIL PROTECTED]
+
+Switched io libraries to GNU Classpath's version.
+
+   * libraries/clib/io/Makefile.am,
+   libraries/clib/io/Makefile.in,
+   libraries/clib/io/java_io_VMObjectInputStream.c,
+   libraries/clib/io/java_io_VMObjectStreamClass.c:
+   Removed.
+
+* Makefile.am (BUILD_ENVIRONMENT-make): Set KAFFELIBRARYPATH to GNU 
Classpath's
+java-io native library.
+
+* configure.ac (JAVA_LIBS) Removed kaffe's native io library.
+Don't output Makefile for Kaffe's native io libraries.
+
+* kaffe/kaffevm/Makefile.am: Added Kaffe's native io code
+implementation to the library.
+
+* libraries/clib/Makefile.am: (SUBDIRS) Removed io.
+
 2006-08-23  Dalibor Topic  [EMAIL PROTECTED]
 
Switched net libraries to GNU Classpath's version.
Index: kaffe/Makefile.am
diff -u kaffe/Makefile.am:1.117 kaffe/Makefile.am:1.118
--- kaffe/Makefile.am:1.117 Thu Aug 24 01:05:21 2006
+++ kaffe/Makefile.am   Thu Aug 24 11:06:23 2006
@@ -175,7 +175,7 @@
 BUILD_ENVIRONMENT-make: Makefile
echo 
BOOTCLASSPATH=$(top_builddir)/libraries/javalib/vmspecific/kaffe-vminterface.jar\''$(PATHSEP)'\'$(top_builddir)/libraries/javalib/zlib-zip/kaffe-zlib.jar\''$(PATHSEP)'\'$(GLIBJ_ZIP)\''$(PATHSEP)'\'\$${BOOTCLASSPATH}\''$(PATHSEP)'\'$(DNSJAVA_JAR)\''$(PATHSEP)'\'\;
 export BOOTCLASSPATH | sed 's,/,$(DIRSEP),g;s,\\,,g'  
BUILD_ENVIRONMENT.new; \
echo 
CLASSPATH=.\''$(PATHSEP)'\'\$${GNU_CRYPTO_JAR}\''$(PATHSEP)'\'\$${JAVAX_SECURITY_JAR}\''$(PATHSEP)'\'$(BCEL_JAR)\''$(PATHSEP)'\'$(GNU_CRYPTO_JAR)\''$(PATHSEP)'\'$(JAVAX_SECURITY_JAR)\;
 export CLASSPATH | sed 's,/,$(DIRSEP),g;s,\\,,g'  BUILD_ENVIRONMENT.new; 
\
-   echo 
KAFFELIBRARYPATH=\$${KAFFELIBRARYPATH+\\$$KAFFELIBRARYPATH\\''$(PATHSEP)'\'}$(top_builddir)/libraries/clib/native/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/clib/net/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/clib/io/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/javalib/external/classpath/native/jni/java-nio/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/javalib/external/classpath/native/jni/java-net/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/clib/zip/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/clib/management/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/clib/security/.libs\;
 export KAFFELIBRARYPATH  BUILD_ENVIRONMENT.new; \
+   echo 
KAFFELIBRARYPATH=\$${KAFFELIBRARYPATH+\\$$KAFFELIBRARYPATH\\''$(PATHSEP)'\'}$(top_builddir)/libraries/clib/native/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/clib/net/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/clib/io/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/javalib/external/classpath/native/jni/java-nio/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/javalib/external/classpath/native/jni/java-net/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/javalib/external/classpath/native/jni/java-io/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/clib/zip/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/clib/management/.libs\''$(PATHSEP)'\'$(top_builddir)/libraries/clib/security/.libs\;
 export KAFFELIBRARYPATH  BUILD_ENVIRONMENT.new; \
echo JAVA=$(top_builddir)/kaffe/kaffe/kaffe-bin$(EXEEXT)\; export JAVA 
 BUILD_ENVIRONMENT.new; \
rm -f BUILD_ENVIRONMENT
 

Re: [kaffe] Kaffe porting on MIPS

2006-09-05 Thread Dalibor Topic

NaveenYadav wrote:


Hi ,
 


Hi nadeev,


CC=mipsel-linux-gcc NM=mipsel-linux-nm \
AR=mipsel-linux-ar AS=mipsel-linux-as LD=mipsel-linux-ld  
KAFFEH=/home/naveen/jvm/kaffe-native/kaffe/kaffeh/kaffeh \
./configure --host=mipsel-linux --build=i686-linux 
prefix=/home/naveen/jvm/cross \
 --enable-pure-java-math  --disable-alsa --disable-native-awt 
--disable-xawt-xi18n --without-x 
--with-libraries=/usr/tools/mipsel-linux/libs 
--with-includes=/usr/tools/mipsel-linux/include  --disable-gtk-peer 
--without-awt  --disable-sound
 
** 
*What may be the Reason;*


The mips jit probably needs some poerting work. Please build kaffe with 
the interpreter engine first, using --with-engine=intrp and try to get 
that to work, i.e.

to pass all regression tests in make check, before hacking on the jit.

From the error message, I'd guess that setting up the exception frame 
does not work as expected. You'll have to look at the code in 
config/mips/jit.h and config/mips/mips.c and adapt it for your needs.


cheers,
dalibor topic

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


[kaffe] CVS kaffe (robilad):

2006-09-05 Thread Kaffe CVS
*** ERROR *** cvsps failed - lastCandidate was 0

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


[kaffe] CVS kaffe (alper):

2006-09-05 Thread Kaffe CVS
*** ERROR *** cvsps failed - lastCandidate was 0

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


[kaffe] Re: Kaffe porting on MIPS

2006-09-05 Thread NaveenYadav




Hi ,

I do cross compile kaffe and run hello world 
program on native and it run successfully. Then I do cross compile and test same 
program and i got the error .

 compile   
 Run
  Status
1. X-86   
  X-86   
  success
2. 
X-86 
MIPS4kec Fail 

3. MIPS4Kec 
MIPS4Kec   Fail 
4. MIPS4Kec  
X-86Success

What May be the Reason 

Best Regards

Naveen 



- Original Message - 

  From: 
  NaveenYadav 
  To: kaffe@kaffe.org ; [EMAIL PROTECTED] 
  Sent: Thursday, August 17, 2006 5:19 
  PM
  Subject: Kaffe porting on MIPS
  
  
  Host side ::
  [EMAIL PROTECTED] bin]# ./kaffe -vmdebug INIT 
  helloinitCollector()initCollector() 
  doneinitNativeThreads(0x4)Detected stackSize 
  262144initNativeThreads(0x4) 
  doneutf8ConstInit()utf8ConstInit() 
  doneinitClasspath()initClasspath() done, got 
  /home/naveen/jvm/native/jre/lib/glibj.zip:/home/naveen/jvm/native/lib/tools.jarinitNative()got 
  lpath /home/naveen/jvm/native/jre/lib/i386:/home/naveen/jvm/native/lib and 
  libraryPath 
  /home/naveen/jvm/native/jre/lib/i386:/home/naveen/jvm/native/libtrying to 
  load /home/naveen/jvm/native/jre/lib/i386/libjavalanginitNative() 
  donecreate names and 
  signaturesdoneinitBaseClasses()initTypes()initTypes() 
  donefinishTypes()finishTypes() doneinitBaseClasses() 
  doneinitExceptions()initThreads()initThreads() 
  doneHello #---o/p
  
  my config file is ..
  ./configure 
  prefix=/home/naveen/jvm/native \--enable-pure-java-math 
  --disable-alsa --disable-native-awt --disable-xawt-xi18n --without-x 
  --disable-gtk-peer --without-awt --disable-sound
  
  
  On Target Side.
  my configure is
  
  CC=mipsel-linux-gcc NM=mipsel-linux-nm 
  \AR=mipsel-linux-ar AS=mipsel-linux-as LD=mipsel-linux-ld 
  KAFFEH=/home/naveen/jvm/kaffe-native/kaffe/kaffeh/kaffeh \./configure 
  --host=mipsel-linux --build=i686-linux prefix=/home/naveen/jvm/cross 
  \--enable-pure-java-math --disable-alsa --disable-native-awt 
  --disable-xawt-xi18n --without-x --with-libraries=/usr/tools/mipsel-linux/libs 
  --with-includes=/usr/tools/mipsel-linux/include --disable-gtk-peer 
  --without-awt --disable-sound
  
  and result is ::
  ./kaffe -vmdebug INIT 
  helloinitCollector()initCollector() 
  doneinitNativeThreads(0x1)Detected stackSize 
  1048576initNativeThreads(0x1) 
  doneutf8ConstInit()utf8ConstInit() 
  doneinitClasspath()initClasspath() done, got 
  /home/naveen/jvm/cross/jre/lib/glibj.zip:/home/naveen/jvm/cross/lib/tools.jarinitNative()got 
  lpath /home/naveen/jvm/cross/jre/lib/mips:/home/naveen/jvm/cross/lib and 
  libraryPath /home/naveen/jvm/cross/jre/lib/mipsbtrying to load 
  /home/naveen/jvm/cross/jre/lib/mips/libjavalanginitNative() donecreate 
  names and 
  signaturesdoneinitBaseClasses()initTypes()initTypes() 
  donefinishTypes()finishTypes() donecheck initBaseClasses() 
  doneIn loop0kaffe-bin: exception.c:106: vmExcept_setJNIFrame: 
  Assertion `fp != (JNIFrameAddress)0' failed.Aborted
  
  i have done one modification in 
  
  kaffe-cross/config/mips/common.h
  //#ifdef _R5900//#define PS2LINUX//#undef 
  HAVE_MIPSII_INSTRUCTIONS//#endif #ifdef _R3000#define 
  PS2LINUX#undef HAVE_MIPSII_INSTRUCTIONS#endifI have added 
  _R3000
  
  What may be the 
  Reason;
  
  Best Regards
  Naveen 
  
  
  
  
  
  
  
  
  
  
___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] CVS kaffe (robilad): No comment

2006-09-05 Thread Kaffe CVS
invalid cache revision line '0
'|'0
'

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


[kaffe] CVS kaffe (robilad): No comment

2006-09-05 Thread Kaffe CVS
request for non-existent rev 1.4899 in file ChangeLog

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


[kaffe] CVS kaffe (robilad):

2006-09-05 Thread Kaffe CVS
*** ERROR *** cvsps failed - lastCandidate was 0

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


[kaffe] CVS kaffe (robilad):

2006-09-05 Thread Kaffe CVS
*** ERROR *** cvsps failed - lastCandidate was 0

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


Re: [kaffe] Kaffe porting on MIPS

2006-09-05 Thread Dalibor Topic
On Sat, 2006-09-02 at 12:40 +0530, NaveenYadav wrote:
 Hi ,
 
 Thanks I am able to port Basic kaffe on MIPS Target, and able to run Hello
 World program,

Cool.

 How can i attach Graphic to kaffe , We are using EDGE Graphics Library.
 SO i could not able to found any document how to add Graphics Support..

Graphics support is done through the class library. If you need Swing
support, you need to use GNU Classpath's peers, otherwise you can use
Kaffe's peerless AWT.

If you, say, want to make GNU Classpath's AWT support EDGE, you have
several choices:

a) Find an AWT peer implementation for it and plug it into Kaffe (for
example EDGE + SDL for EDGE (I don't know if it exists at all) + JSDL +
Odonata)
b) Write your own AWT peers from scratch
c) Port one of the existing AWT peer backends (like gtk+) to EDGE

cheers,
dalibor topic


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


[kaffe] CVS kaffe (robilad):

2006-09-05 Thread Kaffe CVS
*** ERROR *** cvsps failed - lastCandidate was 0

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


[kaffe] CVS kaffe (robilad):

2006-09-05 Thread Kaffe CVS
*** ERROR *** cvsps failed - lastCandidate was 0

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


[kaffe] CVS kaffe (robilad):

2006-09-05 Thread Kaffe CVS
*** ERROR *** cvsps failed - lastCandidate was 0

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


[kaffe] CVS kaffe (robilad): resynced with GNU Classpath 0.92 and switched kaffe to use GNU Classpath's nio l

2006-09-05 Thread Kaffe CVS
PatchSet 7391 
Date: 2006/08/22 12:24:34
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
resynced with GNU Classpath 0.92 and switched kaffe to use GNU Classpath's nio 
libs as far as possible

2006-08-22  Dalibor Topic  [EMAIL PROTECTED]

Switched nio libraries to GNU Classpath's version.

* Makefile.am (BUILD_ENVIRONMENT-make): Set KAFFELIBRARYPATH to GNU 
Classpath's
java-nio native library.

* configure.ac (JAVA_LIBS) Removed kaffe's native nio library.
Dont disable core jni libraries when building GNU Classpath. Don't
output Makefile for Kaffe's native nio libraries.

* kaffe/kaffevm/Makefile.am: Added dependencies for GNU Classpath's
classpath utility library. Added Kaffe's gnu_java_nio_VMSelector.c
implementation to the library.

* libraries/clib/Makefile.am: (SUBDIRS) Removed nio.

* libraries/clib/nio/Makefile.am,
libraries/clib/nio/Makefile.in,
libraries/clib/nio/gnu_java_nio_VMChannel.c,
libraries/clib/nio/gnu_java_nio_VMPipe.c,
libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c,
libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c,
libraries/clib/nio/gnu_java_nio_charset_iconv_IconvEncoder.c,
libraries/clib/nio/java_nio_MappedByteBufferImpl.c,
libraries/clib/nio/java_nio_VMDirectByteBuffer.c:
Removed.

* libraries/javalib/external/classpath: Resynced with 0.92.

Members: 
ChangeLog:1.4893-1.4894 
Makefile.am:1.114-1.115 
Makefile.in:1.265-1.266 
configure:1.568-1.569 
configure.ac:1.246-1.247 
kaffe/kaffevm/Makefile.am:1.84-1.85 
kaffe/kaffevm/Makefile.in:1.241-1.242 
libraries/clib/Makefile.am:1.25-1.26 
libraries/clib/Makefile.in:1.183-1.184 
libraries/clib/nio/Makefile.am:1.23-1.24(DEAD) 
libraries/clib/nio/Makefile.in:1.114-1.115(DEAD) 
libraries/clib/nio/gnu_java_nio_VMChannel.c:1.1-1.2(DEAD) 
libraries/clib/nio/gnu_java_nio_VMPipe.c:1.1-1.2(DEAD) 

libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c:1.6-1.7(DEAD) 

libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c:1.8-1.9(DEAD) 

libraries/clib/nio/gnu_java_nio_charset_iconv_IconvEncoder.c:1.7-1.8(DEAD) 
libraries/clib/nio/java_nio_MappedByteBufferImpl.c:1.2-1.3(DEAD) 
libraries/clib/nio/java_nio_VMDirectByteBuffer.c:1.13-1.14(DEAD) 
libraries/javalib/external/classpath/ChangeLog:1.34-1.35 
libraries/javalib/external/classpath/INSTALL:1.5-1.6 
libraries/javalib/external/classpath/Makefile.in:1.23-1.24 
libraries/javalib/external/classpath/NEWS:1.15-1.16 
libraries/javalib/external/classpath/README:1.2-1.3 
libraries/javalib/external/classpath/configure:1.30-1.31 
libraries/javalib/external/classpath/configure.ac:1.17-1.18 
libraries/javalib/external/classpath/doc/Makefile.in:1.20-1.21 
libraries/javalib/external/classpath/doc/hacking.info:1.8-1.9 
libraries/javalib/external/classpath/doc/tools.info:1.6-1.7 
libraries/javalib/external/classpath/doc/vmintegration.info:1.17-1.18 
libraries/javalib/external/classpath/doc/vmintegration.texinfo:1.7-1.8 
libraries/javalib/external/classpath/doc/api/Makefile.in:1.21-1.22 
libraries/javalib/external/classpath/examples/Makefile.in:1.25-1.26 

libraries/javalib/external/classpath/examples/gnu/classpath/examples/awt/Demo.java:1.4-1.5
 

libraries/javalib/external/classpath/examples/gnu/classpath/examples/management/TestBeans.java:INITIAL-1.1
 

libraries/javalib/external/classpath/examples/gnu/classpath/examples/swing/Demo.java:1.12-1.13
 
libraries/javalib/external/classpath/external/Makefile.in:1.22-1.23 

libraries/javalib/external/classpath/external/relaxngDatatype/Makefile.in:1.9-1.10
 

libraries/javalib/external/classpath/external/sax/Makefile.in:1.22-1.23 

libraries/javalib/external/classpath/external/sax/org/xml/sax/AttributeList.java:1.34-1.35
 

libraries/javalib/external/classpath/external/sax/org/xml/sax/Attributes.java:1.34-1.35
 

libraries/javalib/external/classpath/external/sax/org/xml/sax/ContentHandler.java:1.34-1.35
 

libraries/javalib/external/classpath/external/sax/org/xml/sax/DTDHandler.java:1.34-1.35
 

libraries/javalib/external/classpath/external/sax/org/xml/sax/DocumentHandler.java:1.34-1.35
 

libraries/javalib/external/classpath/external/sax/org/xml/sax/EntityResolver.java:1.34-1.35
 

libraries/javalib/external/classpath/external/sax/org/xml/sax/ErrorHandler.java:1.34-1.35
 

libraries/javalib/external/classpath/external/sax/org/xml/sax/HandlerBase.java:1.34-1.35
 

libraries/javalib/external/classpath/external/sax/org/xml/sax/InputSource.java:1.34-1.35
 


[kaffe] CVS kaffe (robilad):

2006-09-05 Thread Kaffe CVS
*** ERROR *** cvsps failed - lastCandidate was 0

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


[kaffe] CVS kaffe (robilad):

2006-09-05 Thread Kaffe CVS
*** ERROR *** cvsps failed - lastCandidate was 0

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


[kaffe] CVS kaffe (robilad):

2006-09-05 Thread Kaffe CVS
*** ERROR *** cvsps failed - lastCandidate was 0

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


[kaffe] CVS kaffe (robilad): resynced nio native code with GNU Classpath

2006-09-05 Thread Kaffe CVS
PatchSet 7390 
Date: 2006/08/21 22:04:49
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
resynced nio native code with GNU Classpath

2006-08-21  Dalibor Topic  [EMAIL PROTECTED]

* libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c,
libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c,
libraries/clib/nio/gnu_java_nio_charset_iconv_IconvEncoder.c,
libraries/clib/nio/java_nio_VMDirectByteBuffer.c,

Resynced with GNU Classpath:

2006-01-09  Mark Wielaard  [EMAIL PROTECTED]

* native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c
(mapImpl): Add PROT_WRITE when mode == 'c' (MAP_PRIVATE). Make sure
there is enough space to mmap().

2006-01-10  Roman Kennke  [EMAIL PROTECTED]

* native/jni/java-nio/java_nio_VMDirectByteBuffer.c
(get): Release the array with the correct pointer.
(put): Release the array with the correct pointer. Copy the array
around _before_ releasing it.

Members: 
ChangeLog:1.4892-1.4893 
libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c:1.5-1.6 
libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c:1.7-1.8 
libraries/clib/nio/gnu_java_nio_charset_iconv_IconvEncoder.c:1.6-1.7 
libraries/clib/nio/java_nio_VMDirectByteBuffer.c:1.12-1.13 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4892 kaffe/ChangeLog:1.4893
--- kaffe/ChangeLog:1.4892  Sun Aug 20 22:27:29 2006
+++ kaffe/ChangeLog Mon Aug 21 22:04:49 2006
@@ -1,3 +1,25 @@
+2006-08-21  Dalibor Topic  [EMAIL PROTECTED]
+
+   * libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c,
+   libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c,
+   libraries/clib/nio/gnu_java_nio_charset_iconv_IconvEncoder.c,
+   libraries/clib/nio/java_nio_VMDirectByteBuffer.c,
+
+   Resynced with GNU Classpath:
+
+   2006-01-09  Mark Wielaard  [EMAIL PROTECTED]
+
+* native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c
+(mapImpl): Add PROT_WRITE when mode == 'c' (MAP_PRIVATE). Make sure
+there is enough space to mmap().
+
+   2006-01-10  Roman Kennke  [EMAIL PROTECTED]
+
+* native/jni/java-nio/java_nio_VMDirectByteBuffer.c
+(get): Release the array with the correct pointer.
+(put): Release the array with the correct pointer. Copy the array
+around _before_ releasing it.
+
 2006-08-20  Dalibor Topic  [EMAIL PROTECTED]
 
* configure.ac: Substitute GLIBJ_ZIP for location of glibj.zip.
Index: kaffe/libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c
diff -u kaffe/libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c:1.5 
kaffe/libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c:1.6
--- kaffe/libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c:1.5
Thu Jan  5 01:33:10 2006
+++ kaffe/libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.cMon Aug 
21 22:04:52 2006
@@ -1,5 +1,5 @@
 /* gnu_java_nio_channels_FileChannelImpl.c -
-   Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
+   Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -384,7 +384,7 @@
 {
   int native_fd;
   jlong file_size;
-  ssize_t bytes_written;
+  int bytes_written;
   jlong save_offset, new_offset;
   char data;
   int result;
@@ -538,11 +538,27 @@
   return NULL;
 }
 
+  fd = get_native_fd (env, obj);
+
   prot = PROT_READ;
-  if (mode == '+')
-prot |= PROT_WRITE;
+  if (mode == '+' || mode == 'c')
+{
+  /* When writing we need to make sure the file is big enough,
+ otherwise the result of mmap is undefined. */
+  jlong filesize;
+  filesize = Java_gnu_java_nio_channels_FileChannelImpl_size(env, obj);
+  if (filesize == -1)
+   return NULL;
+  if (position + size  filesize)
+   if (ftruncate(fd, position + size) == -1)
+ {
+   JCL_ThrowException (env, IO_EXCEPTION, strerror (errno));
+   return NULL;
+ }
+  prot |= PROT_WRITE;
+}
+
   flags = (mode == 'c' ? MAP_PRIVATE : MAP_SHARED);
-  fd = get_native_fd (env, obj);
   p = mmap (NULL, (size_t) ALIGN_UP (size, pagesize), prot, flags,
fd, ALIGN_DOWN (position, pagesize));
   if (p == MAP_FAILED)
Index: kaffe/libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c
diff -u kaffe/libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c:1.7 
kaffe/libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c:1.8
--- kaffe/libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c:1.7  
Fri Oct 21 16:03:22 2005
+++ kaffe/libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c  Mon Aug 
21 22:04:52 2006
@@ -123,8 +123,8 @@
   size_t lenIn = (size_t) remIn;
   size_t lenOut = (size_t) remOut * 2;
 
-  inputcopy = input = (*env)-GetByteArrayElements (env, inArr, NULL);
-  outputcopy = output = (*env)-GetCharArrayElements 

[kaffe] CVS kaffe (robilad):

2006-09-05 Thread Kaffe CVS
*** ERROR *** cvsps failed - lastCandidate was 0

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


[kaffe] CVS kaffe (robilad):

2006-09-05 Thread Kaffe CVS
*** ERROR *** cvsps failed - lastCandidate was 0

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


[kaffe] Kaffe and JNI

2006-09-05 Thread Patrick McNeil

Hi,

I'm trying to use Kaffe with JNI, but the FindClass call from C is  
throwing a java.lang.ClassNotFoundException


Specifically, my C code is:

if (!(ph_exception_class = (*env)-FindClass(env,
  com/phidgets/PhidgetException)))
{
WARN(Coulnd't find class \com/phidgets/PhidgetException\);

(*env)-ExceptionDescribe(env);
(*env)-ExceptionClear(env);

abort();
}

I'm running the java code with:

java -cp .:phidget21.jar ManagerExample

which outputs:

PHIDGET21: Coulnd't find class com/phidgets/PhidgetException
java.lang.ClassNotFoundException: com/phidgets/PhidgetException
   at java.lang.Class.forName (Class.java)
   at java.lang.Class.forName (Class.java:44)
   at java.lang.Runtime.linkLibrary (Runtime.java)
   at java.lang.Runtime.loadLibrary (Runtime.java:187)
   at java.lang.System.loadLibrary (System.java:175)
   at com.phidgets.Phidget.clinit (Phidget.java:22)
   at ManagerExample.main (ManagerExample.java:14)
Aborted

phidget21.jar contains the class com/phidgets/PhidgetException and  
since I specify it with cp it should be on the CLASSPATH, but it's  
not being found for whatever reason.


This works fine with Sun's JRE, but I need to use it on ARM, so I  
need to use Kaffe (which I'd rather use anyways).


Thanks for any advice

-Patrick


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


[kaffe] CVS kaffe (robilad):

2006-09-05 Thread Kaffe CVS
*** ERROR *** cvsps failed - lastCandidate was 0

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


[kaffe] regarding kaffe for blackfin

2006-09-05 Thread saravanan sar
hi..i need to run java run time environment in blackfin EZkit board.i had downloaded and compiled jikes and kaffe for my linux PC. now i need to cross compile kaffe for blackfin processor.  Is there kaffe source files for blackfin processor...? or should i add any patch file for that...?where can i download the patch files or the source files?if no means then how to do i cross compile that for blackfin board.(i'm using BF537 EZKIT board..) ...?thanks in advancesaravanan   
	

	
		 
Here's a new way to find what you're looking for - Yahoo! Answers  
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] CVS kaffe (robilad):

2006-09-05 Thread Kaffe CVS
*** ERROR *** cvsps failed - lastCandidate was 0

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


Re: [kaffe] Kaffe porting on MIPS

2006-09-05 Thread NaveenYadav
Hi ,

Thanks I am able to port Basic kaffe on MIPS Target, and able to run Hello
World program,
How can i attach Graphic to kaffe , We are using EDGE Graphics Library.
SO i could not able to found any document how to add Graphics Support..

Best Regards
Naveen
- Original Message - 
From: Dalibor Topic [EMAIL PROTECTED]
To: NaveenYadav [EMAIL PROTECTED]
Cc: kaffe@kaffe.org; [EMAIL PROTECTED]
Sent: Friday, August 25, 2006 12:28 PM
Subject: Re: [kaffe] Kaffe porting on MIPS


 NaveenYadav wrote:

  Hi ,
 

 Hi nadeev,

  CC=mipsel-linux-gcc NM=mipsel-linux-nm \
  AR=mipsel-linux-ar AS=mipsel-linux-as LD=mipsel-linux-ld
  KAFFEH=/home/naveen/jvm/kaffe-native/kaffe/kaffeh/kaffeh \
  ./configure --host=mipsel-linux --build=i686-linux
  prefix=/home/naveen/jvm/cross \
   --enable-pure-java-math  --disable-alsa --disable-native-awt
  --disable-xawt-xi18n --without-x
  --with-libraries=/usr/tools/mipsel-linux/libs
  --with-includes=/usr/tools/mipsel-linux/include  --disable-gtk-peer
  --without-awt  --disable-sound
 
  **
  *What may be the Reason;*

 The mips jit probably needs some poerting work. Please build kaffe with
 the interpreter engine first, using --with-engine=intrp and try to get
 that to work, i.e.
 to pass all regression tests in make check, before hacking on the jit.

  From the error message, I'd guess that setting up the exception frame
 does not work as expected. You'll have to look at the code in
 config/mips/jit.h and config/mips/mips.c and adapt it for your needs.

 cheers,
 dalibor topic




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


[kaffe] Testing the list

2006-09-05 Thread Jim Pick
Hi,


I'm just testing the list.  I discovered that the mailman process on the
server was dead, which explains why there hasn't been any mail lately.
Actually, it looks like there's been no mail for two weeks.  Sorry about
that.  Hopefully it's working again.

Cheers,

 - Jim

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