[kaffe] CVS kaffe (kaz): libraries/javalib/java/text/SimpleDateFormat.java:

2003-09-01 Thread Kaffe CVS
PatchSet 4004 
Date: 2003/08/31 23:13:33
Author: kaz
Branch: HEAD
Tag: (none) 
Log:
2003-08-31  Ito Kazumitsu [EMAIL PROTECTED]

* libraries/javalib/java/text/SimpleDateFormat.java:
(compileFormat) corrected the way to check letters from 'A' to 'Z'
and from 'a' to 'z'.

Members: 
ChangeLog:1.1600-1.1601 
libraries/javalib/java/text/SimpleDateFormat.java:1.24-1.25 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1600 kaffe/ChangeLog:1.1601
--- kaffe/ChangeLog:1.1600  Sun Aug 31 22:08:52 2003
+++ kaffe/ChangeLog Sun Aug 31 23:13:33 2003
@@ -1,3 +1,9 @@
+2003-08-31  Ito Kazumitsu [EMAIL PROTECTED]
+
+   * libraries/javalib/java/text/SimpleDateFormat.java:
+   (compileFormat) corrected the way to check letters from 'A' to 'Z'
+   and from 'a' to 'z'.
+
 2003-08-31  Timothy S. Stack [EMAIL PROTECTED]
 
* Makefile.am:
Index: kaffe/libraries/javalib/java/text/SimpleDateFormat.java
diff -u kaffe/libraries/javalib/java/text/SimpleDateFormat.java:1.24 
kaffe/libraries/javalib/java/text/SimpleDateFormat.java:1.25
--- kaffe/libraries/javalib/java/text/SimpleDateFormat.java:1.24Tue Aug 26 
05:38:50 2003
+++ kaffe/libraries/javalib/java/text/SimpleDateFormat.java Sun Aug 31 23:13:34 
2003
@@ -118,7 +118,7 @@
   field = formatData.getLocalPatternChars().indexOf(thisChar);
   if (field == -1) {
current = null;
-   if (Character.isLetter(thisChar)) {
+   if ((thisChar = 'A'  thisChar = 'Z') || (thisChar = 'a'  thisChar = 
'z')) {
  // Not a valid letter
  tokens.addElement(new FieldSizePair(-1,0));
} else if (thisChar == '\'') {

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


Re: [kaffe] Details on backported stuff...

2003-09-01 Thread Jim Pick
On Sun, 31 Aug 2003 16:22:25 -0600 (MDT)
Timothy Stack [EMAIL PROTECTED] wrote:

 
 hi,
 
 I've back ported some stuff from the JanosVM to do run time
 access/link checking on the byte code, some verification related
 stuff, and test cases for all of the above.  Hopefully, it will work
 fine, I've tested it with a fair amount of local stuff.  However, you
 might get an IllegalAccessError in weird places, if so, just send
 email and I'll get to fixing it.

When doing a make install (and make check too), kjc seems to be
triggering IllegalAccessErrors...

make[3]: Entering directory 
`/home/jim/jimpick/kaffe/build/test-head/build/test/regression/compile_time'
java.lang.IllegalAccessError: java/security/SecureClassLoader.defineClass
   at kaffe.lang.AppClassLoader$JarSource.findClass (AppClassLoader.java:143)
   at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291)
   at java.lang.ClassLoader.loadClass (ClassLoader.java:142)
java.lang.IllegalAccessError: java/security/SecureClassLoader.defineClass
   at kaffe.lang.AppClassLoader$JarSource.findClass (AppClassLoader.java:143)
   at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291)
   at java.lang.ClassLoader.loadClass (ClassLoader.java:142)
and so on...

Using Jikes, the jitBasic test is failing for me too.

Cheers,

 - Jim


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


[kaffe] CVS kaffe (stack): Fix inner-outer class access check

2003-09-01 Thread Kaffe CVS
PatchSet 4005 
Date: 2003/09/01 03:06:57
Author: stack
Branch: HEAD
Tag: (none) 
Log:
Fix inner-outer class access check

Members: 
ChangeLog:1.1601-1.1602 
kaffe/kaffevm/access.c:1.1-1.2 
kaffe/kaffevm/classMethod.c:1.109-1.110 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1601 kaffe/ChangeLog:1.1602
--- kaffe/ChangeLog:1.1601  Sun Aug 31 23:13:33 2003
+++ kaffe/ChangeLog Mon Sep  1 03:06:57 2003
@@ -1,3 +1,11 @@
+2003-08-31  Timothy S. Stack [EMAIL PROTECTED]
+
+   * kaffe/kaffevm/access.c:
+   Allow inner classes to access members in the outer class.
+
+   * kaffe/kaffevm/classMethod.c:
+   Fix initial value of this_inner_index in the class struct.
+
 2003-08-31  Ito Kazumitsu [EMAIL PROTECTED]
 
* libraries/javalib/java/text/SimpleDateFormat.java:
Index: kaffe/kaffe/kaffevm/access.c
diff -u kaffe/kaffe/kaffevm/access.c:1.1 kaffe/kaffe/kaffevm/access.c:1.2
--- kaffe/kaffe/kaffevm/access.c:1.1Sun Aug 31 22:09:01 2003
+++ kaffe/kaffe/kaffevm/access.cMon Sep  1 03:06:58 2003
@@ -97,7 +97,7 @@
accessFlags target_flags)
 {
int class_acc = 0, slot_acc = 0, same_package = 0;
-
+   
assert(context);
assert(target);

@@ -145,11 +145,44 @@
}
else if( (target-name-data[0] != '[') 
 same_package 
-target-this_inner_index )
+(target-this_inner_index = 0) )
{
slot_acc = 1;
}
+   else if( context-this_inner_index = 0 )
+   {
+   innerClass *ic;
 
+   /*
+* Check for an inner class accessing something in the outer.
+*/
+   ic = context-inner_classes[context-this_inner_index];
+   if( ic-outer_class )
+   {
+   Hjava_lang_Class *outer;
+   errorInfo einfo;
+   
+   outer = getClass(ic-outer_class, context, einfo);
+   if( outer != NULL )
+   {
+   if( (target_flags  ACC_PRIVATE) 
+   (target == outer) )
+   {
+   /* XXX Not sure about this. */
+   slot_acc = 1;
+   }
+   else if( (target_flags  ACC_PROTECTED) 
+instanceof(target, outer) )
+   {
+   slot_acc = 1;
+   }
+   }
+   else
+   {
+   discardErrorInfo(einfo);
+   }
+   }
+   }
return( class_acc  slot_acc );
 }
 
Index: kaffe/kaffe/kaffevm/classMethod.c
diff -u kaffe/kaffe/kaffevm/classMethod.c:1.109 kaffe/kaffe/kaffevm/classMethod.c:1.110
--- kaffe/kaffe/kaffevm/classMethod.c:1.109 Sun Aug 31 22:09:01 2003
+++ kaffe/kaffe/kaffevm/classMethod.c   Mon Sep  1 03:06:58 2003
@@ -974,6 +974,7 @@
cl-this_index = this_index;
cl-inner_classes = 0;
cl-nr_inner_classes = 0;
+   cl-this_inner_index = -1;
return 1;
 }
 
@@ -1073,7 +1074,7 @@
 
if (c-this_index  ic-inner_class == c-this_index) {
c-accflags = (c-accflags  ~ACC_MASK) | 
(ic-inner_class_accflags  ACC_MASK);
-   c-this_inner_index = nr;
+   c-this_inner_index = i;
}
}
return true;

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


Re: [kaffe] Details on backported stuff...

2003-09-01 Thread Jim Pick
On Sun, 31 Aug 2003 21:26:50 -0600
Timothy Stack [EMAIL PROTECTED] wrote:

 I'm not seeing this, whats the error?  I'm using jikes 1.18 btw...

It's segfaulting.

Program received signal SIGSEGV, Segmentation fault.
0x4004ffd9 in pushFrame (pe=0xb180, ps=0xb010, op=3, script_pos=0xc, 
values_pos=12,
args=0xc Address 0xc out of bounds) at 
../../../kaffe/kaffe/kaffevm/stringParsing.c:115
115 VA_LIST_COPY(pf-args, args);
(gdb) bt
#0  0x4004ffd9 in pushFrame (pe=0xb180, ps=0xb010, op=3, script_pos=0xc, 
values_pos=12,
args=0xc Address 0xc out of bounds) at 
../../../kaffe/kaffe/kaffevm/stringParsing.c:115
#1  0x4005098a in parseString_private (pe=0xb180, subString=0x7, script=0x0, 
values=0x0, op=3,
args=0xb1ac \f) at ../../../kaffe/kaffe/kaffevm/stringParsing.c:605
#2  0x40050fc5 in parseString (str=0xc Address 0xc out of bounds, op=5)
at ../../../kaffe/kaffe/kaffevm/stringParsing.c:806
#3  0x08049bb5 in main (argc=1, argv=0xb2d4) at 
../../../kaffe/test/internal/jit_stub.c:165

This is on a Debian unstable machine, gcc version 3.3.2 20030812
(Debian prerelease), Jikes 1.18.  I'm not seing this on my Red Hat 8.0
machine.  I'll dig deeper.

Cheers,

 - Jim

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


Re: [kaffe] CVS kaffe (guilhem): Various fixes.

2003-09-01 Thread Guilhem Lavaux
Timothy Stack wrote:

PatchSet 4001 
Date: 2003/08/31 17:16:47
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Various fixes.

Noticeable changes:
Reimplementation of deleteOnExit (missing in classpath)
   

The test case for this is not checked in (DeleteFile.java).

 

Removed SoInterrupt because it is wrong.
   

Why is it wrong?  Improving test cases is desired over removing them.

tim
 

SoInterrupt basically tests whether IO operations are interruptible. But 
this should never happen according to the
Java Spec and JDK 1.4.2 behaviour. What could be tested instead is 
whether the IO operation is not interruptible but
anyway that was not the objective of the test. In kaffe, IO operations 
were interruptible and that was also wrong, so
I fixed this at least for net receive operations. If someone (it could 
be me) has some spare time he can rewrite a new
test for that particular behaviour...

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


[kaffe] CVS kaffe (guilhem): Added missing test case.

2003-09-01 Thread Kaffe CVS
PatchSet 4006 
Date: 2003/09/01 05:51:23
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Added missing test case.

Members: 
ChangeLog:1.1602-1.1603 
test/regression/DeleteFile.java:INITIAL-1.1 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1602 kaffe/ChangeLog:1.1603
--- kaffe/ChangeLog:1.1602  Mon Sep  1 03:06:57 2003
+++ kaffe/ChangeLog Mon Sep  1 05:51:23 2003
@@ -1,3 +1,7 @@
+2003-09-01  Guilhem Lavaux [EMAIL PROTECTED]
+
+   * test/regression/DeleteFile.java: added missing test case.
+
 2003-08-31  Timothy S. Stack [EMAIL PROTECTED]
 
* kaffe/kaffevm/access.c:
===
Checking out kaffe/test/regression/DeleteFile.java
RCS:  /home/cvs/kaffe/kaffe/test/regression/DeleteFile.java,v
VERS: 1.1
***
--- /dev/null   Sun Aug  4 19:57:58 2002
+++ kaffe/test/regression/DeleteFile.java   Mon Sep  1 05:53:09 2003
@@ -0,0 +1,21 @@
+import java.io.File;
+import java.io.FileOutputStream;
+
+public class DeleteFile
+{
+   public static void main(String args[]) throws Exception
+   {
+   FileOutputStream of = new FileOutputStream(deleteOnExit.test);
+   of.close();
+
+   File f = new File((File)null, deleteOnExit.test);
+   f.deleteOnExit();
+
+   System.out.println(done.);
+   System.exit(0);
+   }
+}
+// java args: || test -f deleteOnExit.test
+/* Expected Output:
+done.
+*/

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


[Kaffe] Port Kaffe to ARM, can't make

2003-09-01 Thread xhhuang
Hi...I am a student ...
Now I am cross-compiling Kaffe1.1.0  to ARM-linux platform.
I set the configure option below, it can work, but I cannot make it
If someone had sloved it , please tell me , thank you!!

1.
CC=arm-linux-gcc NM=arm-linux-nm AR=arm-linux-ar
../kaffe-1.1.0/configure --host=arm-linux --build=i686-linux \
 --with-rt-jar=/tmp/rt.jar (according the FAQ.Cross-compiling on
www.kaffe.org)
2.
make

.
generating symbol list for `libnative.la'
arm-linux-nm  .libs/ByteToCharDefault.o .libs/ByteToCharIconv.o
.libs/CharToByteDefault.o .libs/CharToByteIconv.o
.libs/ObjectStreamClassImpl.o .libs/Application.o .libs/Class.o
.libs/ClassLoader.o .libs/Compiler.o .libs/Double.o .libs/Float.o
.libs/Math.o .libs/MemoryAdvice.o .libs/NativeLibrary.o .libs/Object.o
.libs/PrimordialClassLoader.o .libs/RMIHashes.o .libs/Runtime.o
.libs/String.o .libs/System.o .libs/Thread.o .libs/ThreadStack.o
.libs/Throwable.o .libs/UNIXProcess.o .libs/ZipFile.o .libs/Array.o
.libs/Constructor.o .libs/Field.o .libs/Method.o .libs/DateFormat.o
.libs/TestNative.o .libs/Arrays.o  | sed -n -e 's/^.*[
]\([ABCDGISTW][ABCDGISTW]*\)[   ][
]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | /bin/sed 's/.* //' |
sort | uniq  .libs/libnative.exp
grep -E -e ^([Jj]ava|kaffe)_ .libs/libnative.exp 
.libs/libnative.expT
mv -f .libs/libnative.expT .libs/libnative.exp
arm-linux-gcc -shared  .libs/ByteToCharDefault.o .libs/ByteToCharIconv.o
.libs/CharToByteDefault.o .libs/CharToByteIconv.o
.libs/ObjectStreamClassImpl.o .libs/Application.o .libs/Class.o
.libs/ClassLoader.o .libs/Compiler.o .libs/Double.o .libs/Float.o
.libs/Math.o .libs/MemoryAdvice.o .libs/NativeLibrary.o .libs/Object.o
.libs/PrimordialClassLoader.o .libs/RMIHashes.o .libs/Runtime.o
.libs/String.o .libs/System.o .libs/Thread.o .libs/ThreadStack.o
.libs/Throwable.o .libs/UNIXProcess.o .libs/ZipFile.o .libs/Array.o
.libs/Constructor.o .libs/Field.o .libs/Method.o .libs/DateFormat.o
.libs/TestNative.o .libs/Arrays.o  -lm  -Wl,-soname -Wl,libnative-1.1.0.so
-Wl,-retain-symbols-file -Wl,.libs/libnative.exp -o
.libs/libnative-1.1.0.so
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
make[2]: *** [libnative.la] Error 1
make[2]: Leaving directory `/home/mode/kaffe-1.1.0/libraries/clib/native'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mode/kaffe-1.1.0/libraries/clib'
make: *** [all-recursive] Error 1



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


[kaffe] Kaffe on arm-uClinux: tests benckmark

2003-09-01 Thread Andrea Scian



Hi all!
After a bit of work I make Kaffe running on my 
ARM/uClinux board... before saying that it really works I want to run some kind 
of test and perform some benckmarking (useful for my thesis to compare different 
solution :-)
I saw that there's a subdir inside kaffe called 
tests that include the regression test... if I'm not wrong I have to lunch them 
with "make check"... of course it won't work in my case because on my board I 
don't have the make util, also I don't have shell script on uClinux (for now I 
have only a simple shell that doesn't support scripting)
Can anybody tell me how test Kaffe on my embedded 
device?
Any clue about benckmarking the 
JVM?


Re: [Kaffe] Port Kaffe to ARM, can't make

2003-09-01 Thread xhhuang
Hi, Sebastian:

Really thank you for your help. I reinstall the cross tools and rebuild
as you said. Now I have another problem, do you know it? thank you.



generating symbol list for `libnative.la'
/usr/local/arm/2.95.3/bin/arm-linux-nm -B  .libs/ByteToCharDefault.o
.libs/ByteToCharIconv.o .libs/CharToByteDefault.o .libs/CharToByteIconv.o
.libs/ObjectStreamClassImpl.o .libs/Application.o .libs/Class.o
.libs/ClassLoader.o .libs/Compiler.o .libs/Double.o .libs/Float.o
.libs/Math.o .libs/MemoryAdvice.o .libs/NativeLibrary.o .libs/Object.o
.libs/PrimordialClassLoader.o .libs/RMIHashes.o .libs/Runtime.o
.libs/String.o .libs/System.o .libs/Thread.o .libs/ThreadStack.o
.libs/Throwable.o .libs/UNIXProcess.o .libs/ZipFile.o .libs/Array.o
.libs/Constructor.o .libs/Field.o .libs/Method.o .libs/DateFormat.o
.libs/TestNative.o .libs/Arrays.o  | sed -n -e 's/^.*[
]\([ABCDGISTW][ABCDGISTW]*\)[   ][
]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | /bin/sed 's/.* //' |
sort | uniq  .libs/libnative.exp
grep -E -e ^([Jj]ava|kaffe)_ .libs/libnative.exp 
.libs/libnative.expT
mv -f .libs/libnative.expT .libs/libnative.exp
arm-linux-gcc -shared  .libs/ByteToCharDefault.o .libs/ByteToCharIconv.o
.libs/CharToByteDefault.o .libs/CharToByteIconv.o
.libs/ObjectStreamClassImpl.o .libs/Application.o .libs/Class.o
.libs/ClassLoader.o .libs/Compiler.o .libs/Double.o .libs/Float.o
.libs/Math.o .libs/MemoryAdvice.o .libs/NativeLibrary.o .libs/Object.o
.libs/PrimordialClassLoader.o .libs/RMIHashes.o .libs/Runtime.o
.libs/String.o .libs/System.o .libs/Thread.o .libs/ThreadStack.o
.libs/Throwable.o .libs/UNIXProcess.o .libs/ZipFile.o .libs/Array.o
.libs/Constructor.o .libs/Field.o .libs/Method.o .libs/DateFormat.o
.libs/TestNative.o .libs/Arrays.o  -lm  -Wl,-soname -Wl,libnative-1.1.0.so
-Wl,-retain-symbols-file -Wl,.libs/libnative.exp -o
.libs/libnative-1.1.0.so
/usr/local/arm/2.95.3/arm-linux/bin/ld: .libs/ByteToCharDefault.o:
Relocations in generic ELF (EM: 3)
~.libs/ByteToCharDefault.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [libnative.la] Error 1
make[2]: Leaving directory `/home/mode/kaffe-1.1.0/libraries/clib/native'
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1



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


[kaffe] CVS kaffe (jim): Fix some type punning warnings in gcc 3.x

2003-09-01 Thread Kaffe CVS
PatchSet 4008 
Date: 2003/09/01 19:34:50
Author: jim
Branch: HEAD
Tag: (none) 
Log:
Fix some type punning warnings in gcc 3.x

Members: 
ChangeLog:1.1604-1.1605 
include/kaffe/jmalloc.h:1.1-1.2 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1604 kaffe/ChangeLog:1.1605
--- kaffe/ChangeLog:1.1604  Mon Sep  1 17:16:15 2003
+++ kaffe/ChangeLog Mon Sep  1 19:34:50 2003
@@ -1,5 +1,17 @@
 2003-09-01  Jim Pick  [EMAIL PROTECTED]
 
+   * include/kaffe/jmalloc.h:
+   Avoid KFREE() related type punning warnings in gcc 3.x
+   when compiling using --with-vmdebug.
+
+   This revert's egp's changes which were to Avoid casting in
+   call to KFREE()..  I didn't understand why that was an
+   issue (or even why we're zeroing out the pointers, in the
+   first place, I assume it's got something to do with some
+   gc interaction).
+   
+2003-09-01  Jim Pick  [EMAIL PROTECTED]
+
* configure.in:
Check for stdarg.h (needed by valist.m4 varargs
checks, otherwise varargs.h is used, which fails
Index: kaffe/include/kaffe/jmalloc.h
diff -u kaffe/include/kaffe/jmalloc.h:1.1 kaffe/include/kaffe/jmalloc.h:1.2
--- kaffe/include/kaffe/jmalloc.h:1.1   Thu Jul 31 22:46:43 2003
+++ kaffe/include/kaffe/jmalloc.h   Mon Sep  1 19:34:51 2003
@@ -29,11 +29,11 @@
 #define KFREE(p)   jfree((void *)(p))
 
 #ifdef KAFFE_VMDEBUG
+/* Does anybody know why we are doing this? */
 #undef KFREE
 #define KFREE(p)   do {\
-   void **__kfree_p = (void **)(p);   \
-   jfree (*__kfree_p); \
-   *__kfree_p = (void *)0; \
+   jfree ((void *)p);  \
+   p = (void *)0;  \
 } while (0)
 #endif
 

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


[kaffe] CVS kaffe (jim): Change casts to avoid type punning warnings in gcc 3.x

2003-09-01 Thread Kaffe CVS
PatchSet 4009 
Date: 2003/09/01 20:28:00
Author: jim
Branch: HEAD
Tag: (none) 
Log:
Change casts to avoid type punning warnings in gcc 3.x

Members: 
ChangeLog:1.1605-1.1606 
kaffe/kaffevm/jni.c:1.92-1.93 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1605 kaffe/ChangeLog:1.1606
--- kaffe/ChangeLog:1.1605  Mon Sep  1 19:34:50 2003
+++ kaffe/ChangeLog Mon Sep  1 20:28:00 2003
@@ -1,5 +1,10 @@
 2003-09-01  Jim Pick  [EMAIL PROTECTED]
 
+   * kaffe/kaffevm/jni.c:
+   Change casts to avoid type punning warnings in gcc 3.x.
+
+2003-09-01  Jim Pick  [EMAIL PROTECTED]
+
* include/kaffe/jmalloc.h:
Avoid KFREE() related type punning warnings in gcc 3.x
when compiling using --with-vmdebug.
@@ -655,7 +660,7 @@
* libraries/javalib/Makefile.am, libraries/javalib/Makefile.in:
regenerated.
 
-2003-08-04  Jim Pick  [EMAIL PROTECTED]
+2003-08-24  Jim Pick  [EMAIL PROTECTED]
 
* include/kaffe/.cvsignore,
kaffe/jvmpi/.cvsignore,
Index: kaffe/kaffe/kaffevm/jni.c
diff -u kaffe/kaffe/kaffevm/jni.c:1.92 kaffe/kaffe/kaffevm/jni.c:1.93
--- kaffe/kaffe/kaffevm/jni.c:1.92  Sat Aug 30 23:57:11 2003
+++ kaffe/kaffe/kaffevm/jni.c   Mon Sep  1 20:28:02 2003
@@ -138,7 +138,7 @@
  (struct Hkaffe_util_Ptr*)ebuf.prev;   \
return X;   \
}   \
-   unhand(getCurrentThread())-exceptPtr = (struct Hkaffe_util_Ptr*)ebuf
+   unhand(getCurrentThread())-exceptPtr = (void *) ebuf
 
 #defineBEGIN_EXCEPTION_HANDLING_VOID() \
VmExceptHandler ebuf;   \
@@ -149,10 +149,10 @@
  (struct Hkaffe_util_Ptr*)ebuf.prev;   \
return; \
}   \
-   unhand(getCurrentThread())-exceptPtr = (struct Hkaffe_util_Ptr*)ebuf
+   unhand(getCurrentThread())-exceptPtr = (void *) ebuf
 
 #defineEND_EXCEPTION_HANDLING()\
-   unhand(getCurrentThread())-exceptPtr = (struct Hkaffe_util_Ptr*)ebuf.prev
+   unhand(getCurrentThread())-exceptPtr = (void *) ebuf.prev
 
 /*
  * Get and set fields.

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


[kaffe] HP-UX and IPv6 still fail

2003-09-01 Thread Riccardo
HP-UX and IPv6 still fail

I tried compiling kaffe-cvs on another HP=UX 10.20 box, which has an 
older compiler (gcc 2.95) and generally less software installed, 
nevertheless inet6 functions fail to be correctly included from the 
dummy files probably.

./../../../kaffe/libraries/clib/net/InetAddressImpl.c: In function 
`java_net_InetAddress_getHostByAddr':
./../../../kaffe/libraries/clib/net/InetAddressImpl.c:489: `MAX_IPV6_
STRING_SIZE' undeclared (first use in this function)
./../../../kaffe/libraries/clib/net/InetAddressImpl.c:489: (Each 
undeclared identifier is reported only once
./../../../kaffe/libraries/clib/net/InetAddressImpl.c:489: for each 
function it appears in.)
./../../../kaffe/libraries/clib/net/InetAddressImpl.c:536: warning: 
implicit declaration of function `inet_ntop'
./../../../kaffe/libraries/clib/net/InetAddressImpl.c:489: warning: 
unused variable `ipaddr'
gmake[2]: *** [InetAddressImpl.lo] Error 1
gmake[2]: Leaving directory `/home/multix/kaffe-cvs/hpux-build/libraries/
clib/net'


-riccardo


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