Re: [tcljava-user] compiling tclBlend
Brought to you by:
mdejong
From: Mo D. <md...@un...> - 2005-09-15 01:16:21
|
On Wed, 14 Sep 2005 08:44:55 +0200 "yahalome" <yah...@xo...> wrote: > I try to compile tclBlend but failed. This is the error I get: > gcc -c javaObj.c > > /home/yahalom/compile/tclJava/tclBlend1.3.2/src/native/javaObj.c: In > function `Java_tcl_lang_CObject_getString': > > /home/yahalom/compile/tclJava/tclBlend1.3.2/src/native/javaObj.c:477: > warning: assignment from incompatible pointer type Humm, this seems to come from: jchar *buf; Tcl_UniChar *w; (447) w = buf; > /home/yahalom/compile/tclJava/tclBlend1.3.2/src/native/javaObj.c:501: > invalid operands to binary - (501) length = (w - buf); My guess here is that something about the declaration of the jchar type has changed in the JDK headers you have on your system. An old JDK install that I have on my linux box defines jchar like so: typedef unsigned short jchar; So, there would be no problem with pointer arith in this case. How is jchar defined in your j2sdk1.4.2_09 JDK on your linux box? Take a peek at jni.h or related include file in the JDK to find out. The Tcl Blend source may need to be updated to deal with this issue. I have never seen it before so I am 99% sure that it is an issue with the way JNI types are defined in this JDK release. cheers Mo DeJong |