[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swarm-Support] compiling swarm: TclInterp.m:244: warning: passing a
From: |
Paul Johnson |
Subject: |
Re: [Swarm-Support] compiling swarm: TclInterp.m:244: warning: passing arg 2 of `Tcl_Merge' from incompatible pointer type |
Date: |
Sun, 13 Apr 2003 06:30:33 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 |
HM. That is an error I've only seen when I try swarm against tcltk 8.4.
My understanding was that only 8.4 started more strictly checking
variable types. Maybe something I did to try and fix that probelm in 8.4
found its way into that package you are trying to use, and your info
below indicates you have 8.3. I bet that's it.
One possibility is to step back one unit and build Swarm that I'm sure
was OK, because it was before the changes for Macintosh and such started
entering my consciousness:
http://lark.cc.ku.edu/~pauljohn/Swarm/Swarm-2.2x_RPMSforRH8.0/swarm-2.1.141.20021019.tar.gz
Perhaps the easiest (most expedient) thing to do is get rid of the
-Werror flag in the Makefile for that one directory that is giving you
trouble. Since this is just a Warning, not an Error, it should be ok.
Recall that Werror has the effect of making all warnings be treated as
errors.
On the other hand, you could stick with the snapshot you have, and try
to bug shoot the tcltk thing. The more I think about it, the more I'm
sure that I did something in that Windows snapshot that I did not expect
would affect tcl 8.3 users. I made a tcl related patch of the tcltk
related changes that I thought were needed. I'm attaching it to this
email because I don't have time to put it on the net somewhere. I'm
going to get on a plane to go to Swarmfest right now.
Maybe you could see if you can reverse that patch on the swarm source. I
bet the tcl problem goes away.
Jan Peters-Anders wrote:
Hello,
thanks to Paul I got over my previous error, but now I encounter the following
(gcc-3.3-2002-09-09, swarm-2.1.142.20030325)
make[3]: Entering directory `/home/jan/swarm-2.1.142.20030325/src/tclobjc'
source='TclInterp.m' object='TclInterp.lo' libtool=yes \
depfile='.deps/TclInterp.Plo' tmpdepfile='.deps/TclInterp.TPlo' \
depmode=gcc3 /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..
-I../.. -I../../libobjc -I../../libobjc -I./../misc -I.. -I./.. -I./../defobj
-I../../avcall -D_GNU_SOURCE -DList=TclObjcList
-DTCL_LIBRARY=\"/usr/lib/tcl8.3\" -DTK_LIBRARY=\"/usr/lib/tk8.3\"
-DBUILDING_SWARM -g -O2 -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import
-Wno-protocol -Werror -Wno-long-long -Wno-implicit-int -Wno-unknown-pragmas
-c -o TclInterp.lo `test -f TclInterp.m || echo './'`TclInterp.m
rm -f .libs/TclInterp.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../libobjc -I../../libobjc
-I./../misc -I.. -I./.. -I./../defobj -I../../avcall -D_GNU_SOURCE
-DList=TclObjcList -DTCL_LIBRARY=\"/usr/lib/tcl8.3\"
-DTK_LIBRARY=\"/usr/lib/tk8.3\" -DBUILDING_SWARM -g -O2 -fgnu-runtime
-fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Werror -Wno-long-long
-Wno-implicit-int -Wno-unknown-pragmas -c TclInterp.m -MT TclInterp.lo -MD
-MP -MF .deps/TclInterp.TPlo -fPIC -DPIC -o .libs/TclInterp.lo
TclInterp.m: In function `-[TclInterp preInitWithArgc:argv:]':
TclInterp.m:244: warning: passing arg 2 of `Tcl_Merge' from incompatible
pointer type
make[3]: *** [TclInterp.lo] Error 1
make[3]: Leaving directory `/home/jan/swarm-2.1.142.20030325/src/tclobjc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jan/swarm-2.1.142.20030325/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jan/swarm-2.1.142.20030325'
make: *** [all] Error 2
address@hidden:/home/jan/swarm-2.1.142.20030325#
Thank you very much again
Jan Peters-Anders
_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ku.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
Index: configure.in
===================================================================
RCS file: /cvsroot/swarm/swarm/configure.in,v
retrieving revision 1.147
diff -r1.147 configure.in
20c20
< OBJCFLAGS="$OBJCFLAGS -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import
-Wno-protocol -Wno-long-long"
---
> OBJCFLAGS="$OBJCFLAGS -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import
> -Wno-protocol -Werror -Wno-long-long"
Index: ltmain.sh
===================================================================
RCS file: /cvsroot/swarm/swarm/ltmain.sh,v
retrieving revision 1.18
diff -r1.18 ltmain.sh
1896c1896,1900
< add_dir="-L$libdir"
---
> if test "X$installed" = Xyes; then
> add_dir="-L$libdir"
> else
> add_dir="-L$DESTDIR$libdir"
> fi
4152a4157
> DESTDIR=
4158a4164,4171
> case "$destdir" in
> *"$libdir")
> DESTDIR=`$echo "$destdir" | sed -e 's!'"$libdir"'$!!'`
> if test "X$destdir" != "X$DESTDIR$libdir"; then
> DESTDIR=
> fi
> ;;
> esac
4171a4185
> export DESTDIR
4178a4193
> unset DESTDIR
Index: src/misc/ChangeLog
===================================================================
RCS file: /cvsroot/swarm/swarm/src/misc/ChangeLog,v
retrieving revision 1.102
diff -r1.102 ChangeLog
0a1,5
> 2003-03-25 <address@hidden>
>
> * argp.h: Cygwin defines errno_t and sets __ERRNO_H__, so check
> for that before declaring again.
>
Index: src/misc/argp.h
===================================================================
RCS file: /cvsroot/swarm/swarm/src/misc/argp.h,v
retrieving revision 1.4
diff -r1.4 argp.h
41a42,43
> /*__ERRNO_H__ is set in Cygwin's C library when error_t is declared */
> #ifndef __ERRNO_H__
44a47
> #endif
Index: src/tclobjc/ChangeLog
===================================================================
RCS file: /cvsroot/swarm/swarm/src/tclobjc/ChangeLog,v
retrieving revision 1.77
diff -r1.77 ChangeLog
0a1,4
> 2003-03-25 <address@hidden>
>
> * TclInterp.m: constify return types for Tcl_GetVar functions.
>
Index: src/tclobjc/TclInterp.m
===================================================================
RCS file: /cvsroot/swarm/swarm/src/tclobjc/TclInterp.m,v
retrieving revision 1.16
diff -r1.16 TclInterp.m
224c224
< char *msg = Tcl_GetVar (interp, "errorInfo", TCL_GLOBAL_ONLY);
---
> const char *msg = Tcl_GetVar (interp, "errorInfo", TCL_GLOBAL_ONLY);
244c244
< args = Tcl_Merge (argc-1, (char **)argv+1);
---
> args = Tcl_Merge (argc-1, (const char **)argv+1);
262c262
< char *msg = Tcl_GetVar(interp, "errorInfo", TCL_GLOBAL_ONLY);
---
> const char *msg = Tcl_GetVar(interp, "errorInfo", TCL_GLOBAL_ONLY);
348c348
< char *msg;
---
> const char *msg;
374c374
< char *msg;
---
> const char *msg;
390c390
< char *msg;
---
> const char *msg;
Index: src/tclobjc/tclObjc.m
===================================================================
RCS file: /cvsroot/swarm/swarm/src/tclobjc/tclObjc.m,v
retrieving revision 1.34
diff -r1.34 tclObjc.m
427c427
< Tcl_CreateCommand(interp, (char *) name, tclObjc_msgSendToClientData,
---
> Tcl_CreateCommand(interp, (const char *) name, (Tcl_CmdProc *)
> tclObjc_msgSendToClientData,
523c523
< char *objcdebug;
---
> const char *objcdebug;
691c691
< tclObjc_msgSendToArgv1, 0, 0);
---
> (Tcl_CmdProc *) tclObjc_msgSendToArgv1, 0, 0);
Index: src/tkobjc/TkExtra.m
===================================================================
RCS file: /cvsroot/swarm/swarm/src/tkobjc/TkExtra.m,v
retrieving revision 1.31
diff -r1.31 TkExtra.m
105c105
< char *msg = Tcl_GetVar (interp, "errorInfo", TCL_GLOBAL_ONLY);
---
> const char *msg = Tcl_GetVar (interp, "errorInfo", TCL_GLOBAL_ONLY);