[tcljava-user] RE: tcljava-user digest, Vol 1 #317 - 3 msgs
Brought to you by:
mdejong
From: yahalome <yah...@xo...> - 2005-09-18 05:42:35
|
Hello I compiled against tcl8.4.11 and tclBlend works. Thanks a lot for the help. Now it's time to dive into the deep water. Yahalom Emet Ashrait Team Leader Xor Technologies phone: 04-6619166 fax: 04-6619054 e-mail: yah...@xo... web: http://www.xortechnologies.com -----Original Message----- From: tcl...@li... [mailto:tcl...@li...] On Behalf Of tcl...@li... Sent: Friday, September 16, 2005 5:14 AM To: tcl...@li... Subject: tcljava-user digest, Vol 1 #317 - 3 msgs Send tcljava-user mailing list submissions to tcl...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/tcljava-user or, via email, send a message with subject or body 'help' to tcl...@li... You can reach the person managing the list at tcl...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of tcljava-user digest..." Today's Topics: 1. RE: tcljava-user digest, Vol 1 #316 - 3 msgs (yahalome) 2. Re: compiling tclBlend (Kevin Kenny) 3. Re: compiling tclBlend (Mo DeJong) --__--__-- Message: 1 From: "yahalome" <yah...@xo...> To: <tcl...@li...> Date: Thu, 15 Sep 2005 07:52:21 +0200 Subject: [tcljava-user] RE: tcljava-user digest, Vol 1 #316 - 3 msgs Reply-To: tcl...@li... I looked at jni.h and they define of jchar is the same: typedef unsigned short jchar; I do not think sun will change it without changing version as this seems to be a major change. Is there another idea? Yahalom Emet Ashrait Team Leader Xor Technologies phone: 04-6619166 fax: 04-6619054 e-mail: yah...@xo... web: http://www.xortechnologies.com -----Original Message----- From: tcl...@li... [mailto:tcl...@li...] On Behalf Of tcl...@li... Sent: Thursday, September 15, 2005 5:30 AM To: tcl...@li... Subject: tcljava-user digest, Vol 1 #316 - 3 msgs Send tcljava-user mailing list submissions to tcl...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/tcljava-user or, via email, send a message with subject or body 'help' to tcl...@li... You can reach the person managing the list at tcl...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of tcljava-user digest..." Today's Topics: 1. compiling tclBlend (yahalome) 2. Re: compiling tclBlend (Mo DeJong) 3. Itcl support added to Jacl! (Mo DeJong) -- __--__-- Message: 1 From: "yahalome" <yah...@xo...> To: <tcl...@li...> Date: Wed, 14 Sep 2005 08:44:55 +0200 Subject: [tcljava-user] compiling tclBlend Reply-To: tcl...@li... This is a multi-part message in MIME format. ------=_NextPart_000_009C_01C5B908.955D16F0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I try to compile tclBlend but failed. This is the error I get: gcc -pipe -c -g -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DPEEK_XCLOSEIM=1 -DHAVE_SYS_IOCTL_H=1 -D_REENTRANT -DTCL_MEM_DEBUG -I. -I/home/yahalom/compile/tclJava/tclBlend1.3.2/src/native -I/u/packages/tcl/tcl8.4.5/generic -I/usr/java/j2sdk1.4.2_09/include -I/usr/java/j2sdk1.4.2_09/include/linux -fPIC /home/yahalom/compile/tclJava/tclBlend1.3.2/src/native/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 /home/yahalom/compile/tclJava/tclBlend1.3.2/src/native/javaObj.c:501: invalid operands to binary - Is this a bug? Yahalom Emet Ashrait Team Leader Xor Technologies phone: 04-6619166 fax: 04-6619054 e-mail: <mailto:yah...@xo...> yah...@xo... web: <http://www.xortechnologies.com/> http://www.xortechnologies.com ------=_NextPart_000_009C_01C5B908.955D16F0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:Rockwell; panose-1:2 6 6 3 2 2 5 2 4 3;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:Arial; color:windowtext;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} --> </style> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>I try to compile tclBlend but failed. This is the = error I get:<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>gcc -pipe -c -g -DHAVE_UNISTD_H=3D1 = -DHAVE_LIMITS_H=3D1 -D_LARGEFILE64_SOURCE=3D1 -DTCL_WIDE_INT_TYPE=3Dlong\ long -DHAVE_STRUCT_STAT64=3D1 = -DHAVE_TYPE_OFF64_T=3D1 -DHAVE_GETCWD=3D1 -DHAVE_OPENDIR=3D1 -DHAVE_STRSTR=3D1 -DHAVE_STRTOL=3D1 = -DHAVE_STRTOLL=3D1 -DHAVE_STRTOULL=3D1 -DHAVE_TMPNAM=3D1 -DHAVE_WAITPID=3D1 -DHAVE_UNISTD_H=3D1 = -DHAVE_SYS_PARAM_H=3D1 -DUSE_TERMIOS=3D1 -DHAVE_SYS_TIME_H=3D1 -DTIME_WITH_SYS_TIME=3D1 -DHAVE_TM_ZONE=3D1 = -DHAVE_GMTIME_R=3D1 -DHAVE_LOCALTIME_R=3D1 -DHAVE_TM_GMTOFF=3D1 -DHAVE_TIMEZONE_VAR=3D1 -DHAVE_ST_BLKSIZE=3D1 = -DSTDC_HEADERS=3D1 -DHAVE_SIGNED_CHAR=3D1 -DHAVE_LANGINFO=3D1 -DPEEK_XCLOSEIM=3D1 -DHAVE_SYS_IOCTL_H=3D1 = -D_REENTRANT -DTCL_MEM_DEBUG -I. -I/home/yahalom/compile/tclJava/tclBlend1.3.2/src/native = -I/u/packages/tcl/tcl8.4.5/generic -I/usr/java/j2sdk1.4.2_09/include = -I/usr/java/j2sdk1.4.2_09/include/linux -fPIC /home/yahalom/compile/tclJava/tclBlend1.3.2/src/native/javaObj.c<o:p></o:= p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>/home/yahalom/compile/tclJava/tclBlend1.3.2/src/native= /javaObj.c: In function = `Java_tcl_lang_CObject_getString':<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>/home/yahalom/compile/tclJava/tclBlend1.3.2/src/native= /javaObj.c:477: warning: assignment from incompatible pointer = type<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>/home/yahalom/compile/tclJava/tclBlend1.3.2/src/native= /javaObj.c:501: invalid operands to binary –<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Is this a bug?<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DRockwell><span = style=3D'font-size:10.0pt; font-family:Rockwell'>Yahalom Emet<br> Ashrait Team Leader</span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D2 face=3DRockwell><span = style=3D'font-size:10.0pt; font-family:Rockwell'>Xor Technologies<br> phone: 04-6619166<br> fax: 04-6619054<br> e-mail: </span></font><a href=3D"mailto:yah...@xo..." title=3D"mailto:yah...@xo..."><font size=3D2 face=3DRockwell><span style=3D'font-size:10.0pt;font-family:Rockwell'>yah...@xo...</span>= </font></a><br> <font size=3D2 face=3DRockwell><span = style=3D'font-size:10.0pt;font-family:Rockwell'>web: </span></font><a href=3D"http://www.xortechnologies.com/" title=3D"http://www.xortechnologies.com"><font size=3D2 = face=3DRockwell><span style=3D'font-size:10.0pt;font-family:Rockwell'>http://www.xortechnologie= s.com</span></font></a><o:p></o:p></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'><o:p> </o:p></span></font></p> </div> </body> </html> ------=_NextPart_000_009C_01C5B908.955D16F0-- -- __--__-- Message: 2 Date: Wed, 14 Sep 2005 18:18:54 -0700 From: Mo DeJong <md...@un...> To: tcl...@li... Subject: Re: [tcljava-user] compiling tclBlend Organization: None Reply-To: tcl...@li... 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 -- __--__-- Message: 3 Date: Wed, 14 Sep 2005 18:49:14 -0700 From: Mo DeJong <md...@un...> To: tcl...@li... Cc: tcl...@li... Organization: None Subject: [tcljava-user] Itcl support added to Jacl! Reply-To: tcl...@li... This message is to announce the availability of a new Itcl port for Jacl. Jacl is a 100% pure version of the Tcl scripting language. Itcl is an object oriented extension for Tcl. Itcl users will now be able to run Itcl code directly in Jacl. The Itcl port was implemented by Mo DeJong as part of a Jacl support and maintenance contract. Itcl 3.2.1 was ported from its original C source code to Java source code. A version of Jacl that includes Itcl support is available via the Sourceforge CVS. It can be downloaded via CVS with the following commands: CVSROOT=:pserver:ano...@cv...:/cvsroot/tcljava cvs login (press enter at password prompt) cvs co tcljava Build and install Jacl in the normal way and then run "package require Itcl" to load Itcl commands into Jacl. This software was made possible thanks to: AMD New Iron Systems -- __--__-- _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user End of tcljava-user Digest --__--__-- Message: 2 From: ke...@cr... (Kevin Kenny) Organization: Advanced Computing Technologies, GE Global Research Center To: tcl...@li... Subject: Re: [tcljava-user] compiling tclBlend Date: Thu, 15 Sep 2005 09:47:43 -0400 Reply-To: tcl...@li... md...@un... said: > /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; This remonds me of some old problems. There was at least one Red Hat release where Red Hat (*not* the Tcl maintainers) gratuitously decided to change Tcl_UniChar to a 32-bit type. The change was not well tested (it made Tk leak memory like a sieve) and caused a good deal of grief on the affected systems. There still seem to be a fair number of them out there. The cure is either to rebuild Tcl/Tk from source or to install ActiveTcl and build against that - either of those approaches won't have the misdefinition of Tcl_UniChar. -- 73 de ke9tv/2, Kevin KENNY GE Corporate Research & Development ke...@cr... P. O. Box 8, Bldg. K-1, Rm. 5B36A Schenectady, New York 12301-0008 USA --__--__-- Message: 3 Date: Thu, 15 Sep 2005 18:35:15 -0700 From: Mo DeJong <md...@un...> To: tcl...@li... Subject: Re: [tcljava-user] compiling tclBlend Organization: None Reply-To: tcl...@li... On Thu, 15 Sep 2005 09:47:43 -0400 ke...@cr... (Kevin Kenny) wrote: > > md...@un... said: > > /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; > > This remonds me of some old problems. There was at least one Red Hat > release where Red Hat (*not* the Tcl maintainers) gratuitously decided > to change Tcl_UniChar to a 32-bit type. Well, I am not sure if that is the problem here but I did notice that the user was building with Tcl 8.4.5. You really should upgrade to Tcl 8.4.11 since that is the most recent version that Tcl Blend was tested with. If that does not do the trick, then could you find out what type Tcl_UniChar is getting set to so we can find out why the "w - buf" operator is failing to compile. Mo DeJong --__--__-- _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user End of tcljava-user Digest |