This is the mail archive of the
insight-prs@sources.redhat.com
mailing list for the Insight project.
insight/42: Minor compilation error
- To: insight-gnats at sourceware dot cygnus dot com
- Subject: insight/42: Minor compilation error
- From: mpurtill at softwarerevolution dot com
- Date: 9 Aug 2000 21:40:17 -0000
- Reply-To: mpurtill at softwarerevolution dot com
- Resent-Cc: insight-prs at sourceware dot cygnus dot com
- Resent-Reply-To: insight-gnats@sourceware.cygnus.com, mpurtill@softwarerevolution.com
>Number: 42
>Category: insight
>Synopsis: Minor compilation error
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 09 14:43:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: mpurtill@softwarerevolution.com
>Release: insight-5.0
>Organization:
>Environment:
Linux wilbur 2.2.12-20 #1 Mon Sep 27 10:40:35 EDT 1999 i686 unknown
gcc version 2.95.2 19991024 (release)
>Description:
On compiling, I get this error message:
gcc -c -g -O2 -I../../../insight-5.0/tcl/unix/../generic -I../../../insight-5.0/tcl/unix -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_SYS_WAIT_H=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_TIMEZONE_DECL=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNEED_MATHERR=1 -DRETSIGTYPE=void -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SHLIB_EXT=\".so\" ../../../insight-5.0/tcl/unix/../generic/tclPipe.c
../../../insight-5.0/tcl/unix/../generic/tclPipe.c: In function `TclCleanupChildren':
../../../insight-5.0/tcl/unix/../generic/tclPipe.c:274: storage size of `waitStatus' isn't known
The problem is that WAIT_STATUS_TYPE was defined to be
`union wait', which was not defined.
>How-To-Repeat:
Compile out of the box on my system (RedHat 6.2).
>Fix:
I fixed the problem by
putting `#include <sys/wait.h>' in
.../insight-5.0/tcl/unix/tclUnixPort.h in this chunk of
code (lines 179-188):
#ifdef _AIX
# define WAIT_STATUS_TYPE pid_t
#else
#ifndef NO_UNION_WAIT
#include <sys/wait.h>
# define WAIT_STATUS_TYPE union wait
#else
# define WAIT_STATUS_TYPE int
#endif
#endif
>Release-Note:
>Audit-Trail:
>Unformatted: