This is the mail archive of the
insight-prs@sources.redhat.com
mailing list for the Insight project.
insight/230: `Tcl_WideInt' undeclared, <tcl.h>
- From: research at ijs dot co dot nz
- To: insight-gnats at sources dot redhat dot com
- Cc: research at ijs dot co dot nz
- Date: 17 Jun 2003 17:55:48 -0000
- Subject: insight/230: `Tcl_WideInt' undeclared, <tcl.h>
- Reply-to: research at ijs dot co dot nz
>Number: 230
>Category: insight
>Synopsis: `Tcl_WideInt' undeclared, <tcl.h>
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 17 18:03:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Craig Carey
>Release: CVS version of 17 June 2003, 16:00 GMT
>Organization:
>Environment:
>Description:
The build program did not find or did not get on with, the
cygwin tcl.h in /usr/include (a Windows 2000 Ntfs
directory).
That Cygwin tcl.h file has this in it:
-----------------------------------------------
16 * RCS: @(#) $Id: tcl.h,v 1.147 2002/10/21
04:35:50 das Exp $
...
64 #define TCL_VERSION "8.4"
65 #define TCL_PATCH_LEVEL "8.4.1"
-----------------------------------------------
The Cygwin Gcc version (that Gcc was on the path):
$ gcc --version
gcc (GCC) 3.2 20020927 (prerelease)
Note that compiled failed when
* The very latest MinGW was used
* when Cygwin gettext-devel was not installed
* when the g++ in GCC 3.2 was missin.
* the older CVS files overwrote, and a Makefile was not
edited to remove this error: "cd: can't cd to
iwidgets3.0.0/unix". The build died when descending into the
empty 'unix' directory.
The following crash during the build occurred in the two
cases: CVS overwrote that latest files with older files, and
when CVS did not.), and all the files were freshly CVS-ed.
This error below is the first one both showed in both runs.
The options for configure & makefile were:
cd src
./configure --prefix=/usr/local/insight
.make
-I/y/@cvs_insight/src/tcl/generic -I/y/@cvs_insight/src/tk/generic -I/y/@cvs_insight/src/tk/generic -I/y/@cvs_
insight/src/tk/xlib -I/y/@cvs_insight/src/tk/xlib \
./gdbtk/generic/gdbtk.c \
-DGDBTK_LIBRARY=\"/usr/local/insight/share/insight1.0\" -DSRC_DIR=\"/y/@cvs_insight/src/gdb\"
gdbtk/generic/gdbtk.c: In function `TclDebug':
gdbtk/generic/gdbtk.c:220: warning: passing arg 2 of `Tcl_Merge' from incompatible pointer type
gdbtk/generic/gdbtk.c: In function `gdbtk_init':
gdbtk/generic/gdbtk.c:373: warning: passing arg 1 of `Tcl_FindExecutable' discards qualifiers from pointer tar
get type
gdbtk/generic/gdbtk.c:389: warning: passing arg 3 of `Tcl_SplitPath' from incompatible pointer type
gdbtk/generic/gdbtk.c:458: warning: passing arg 3 of `Tcl_SplitPath' from incompatible pointer type
gdbtk/generic/gdbtk.c:466: warning: passing arg 2 of `Tcl_JoinPath' from incompatible pointer type
gcc -c -g -O2 -I. -I. -I./config -DLOCALEDIR="\"/usr/local/insight/share/locale\"" -DHAVE_CONFIG_H -I./../i
nclude/opcode -I./../readline/.. -I../bfd -I./../bfd -I./../include -I../intl -I./../intl -DMI_OUT=1 -DGDBTK
-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -I./..
/libgui/src -I/y/@cvs_insight/src/itcl/itcl/generic \
-I/y/@cvs_insight/src/tcl/generic -I/y/@cvs_insight/src/tk/generic -I/y/@cvs_insight/src/tk/generic -I/y/@cvs
_insight/src/tk/xlib -I/y/@cvs_insight/src/tk/xlib \
./gdbtk/generic/gdbtk-bp.c \
-DGDBTK_LIBRARY=\"/usr/local/insight/share/insight1.0\"
gdbtk/generic/gdbtk-bp.c: In function `gdb_find_bp_at_addr':
gdbtk/generic/gdbtk-bp.c:207: `Tcl_WideInt' undeclared (first use in this function)
gdbtk/generic/gdbtk-bp.c:207: (Each undeclared identifier is reported only once
gdbtk/generic/gdbtk-bp.c:207: for each function it appears in.)
gdbtk/generic/gdbtk-bp.c:207: parse error before "waddr"
gdbtk/generic/gdbtk-bp.c:215: warning: implicit declaration of function `Tcl_GetWideIntFromObj'
gdbtk/generic/gdbtk-bp.c:215: `waddr' undeclared (first use in this function)
gdbtk/generic/gdbtk-bp.c: In function `gdb_get_breakpoint_info':
gdbtk/generic/gdbtk-bp.c:330: warning: passing arg 1 of `Tcl_NewStringObj' discards qualifiers from pointer target type
gdbtk/generic/gdbtk-bp.c: In function `gdb_set_bp_addr':
gdbtk/generic/gdbtk-bp.c:563: `Tcl_WideInt' undeclared (first use in this function)
gdbtk/generic/gdbtk-bp.c:563: parse error before "waddr"
gdbtk/generic/gdbtk-bp.c:574: `waddr' undeclared (first use in this function)
gdbtk/generic/gdbtk-bp.c: In function `gdb_get_tracepoint_info':
gdbtk/generic/gdbtk-bp.c:839: warning: passing arg 1 of `Tcl_NewStringObj' discards qualifiers from pointer target type
make[1]: *** [gdbtk-bp.o] Error 1
make[1]: Leaving directory `/y/@cvs_insight/src/gdb'
make: *** [all-gdb] Error 2
/y/@cvs_insight/src/ 04:39:46 in
$ ./configure --help
Usage: configure [options] [host]
I saw a mailing list comment saying that it was tested in
Linux only or something.
GMT 17 June 2003
--------
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: