This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problems building TCL for insight on cygwin & win2k


I have been trying to build insight under cygwin on a windows 2k box. The
source was obtained from the cvs server last night. The build fails whilst
building TCL. The configure line and make line are given below :

 cd /build/arm ; \
 rm -r * ; \
 CC="gcc -mwin32" /GNU-Source-Code/src/configure -v \
   --prefix=/xgcc-arm/gnu \
   --exec-prefix=/xgcc-arm/gnu \
   --with-headers=/Gnu-Source-Code/src/newlib/libc/include \
   --host=i586-cygwin32 --target=arm-elf >$(HOME)/configure.out 2>&1


 cd /build/arm ; \
 make -w all-gdb install-gdb CC='gcc -mwin32' >$(HOME)/make-gdb.out 2>&1


The error occours as below :

gcc -mwin32 -DPACKAGE=\"libtcl_cygwin\" -DVERSION=\"8.3\" -DHAVE_GETCWD=1 -D
HAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPI
D=1 -DNO_VALUES_H=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -D
TIME_WITH_SYS_TIME=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 
-DNEED_MATHERR=1 -DRETSIGTYPE=void -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1
  -I. -I/GNU-Source-Code/src/tcl/cygwin  -I/GNU-Source-Code/src/tcl/cygwin/.
./generic   -D__TCL_UNIX_VARIANT -DTCL_LIBRARY='"/xgcc-arm/gnu/share/tcl8.3"
' -DTCL_PACKAGE_PATH='"/xgcc-arm/gnu/lib"' -g  -c
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c
In file included from
/GNU-Source-Code/src/tcl/cygwin/../generic/../win/tclWinPort.h:68,
                 from
/GNU-Source-Code/src/tcl/cygwin/../generic/tclPort.h:22,
                 from
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c:17:
/usr/include/w32api/winsock2.h:92: warning: #warning "fd_set and associated
macros have been defined in sys/types.      This may cause runtime problems
with W32 sockets"
In file included from /usr/include/termios.h:4,
                 from
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c:47:
/usr/include/sys/termios.h:46: warning: `FIONBIO' redefined
/usr/include/w32api/winsock2.h:128: warning: this is the location of the
previous definition
In file included from /usr/include/w32api/windef.h:145,
                 from /usr/include/w32api/windows.h:98,
                 from /usr/include/w32api/winsock2.h:18,
                 from
/GNU-Source-Code/src/tcl/cygwin/../generic/../win/tclWinPort.h:68,
                 from
/GNU-Source-Code/src/tcl/cygwin/../generic/tclPort.h:22,
                 from
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c:17:
/usr/include/w32api/winnt.h:45: warning: redefinition of `CHAR'
/GNU-Source-Code/src/tcl/cygwin/../generic/tcl.h:318: warning: `CHAR'
previously declared here
/usr/include/w32api/winnt.h:46: warning: redefinition of `SHORT'
/GNU-Source-Code/src/tcl/cygwin/../generic/tcl.h:319: warning: `SHORT'
previously declared here
/usr/include/w32api/winnt.h:47: warning: redefinition of `LONG'
/GNU-Source-Code/src/tcl/cygwin/../generic/tcl.h:320: warning: `LONG'
previously declared here
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c:235: warning:
initialization from incompatible pointer type
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c:254: warning:
initialization from incompatible pointer type
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c:273: warning:
initialization from incompatible pointer type
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c: In function
`TclUnixWaitForFile':
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c:2626: `MASK_SIZE'
undeclared (first use in this function)
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c:2626: (Each undeclared
identifier is reported only once
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c:2626: for each
function it appears in.)
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c:2626: size of array
`readyMasks' has non-integer type
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c:2701: `SELECT_MASK'
undeclared (first use in this function)
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c:2701: parse error
before `)'
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c:2702: parse error
before `)'
/GNU-Source-Code/src/tcl/cygwin/../unix/tclUnixChan.c:2703: parse error
before `)'
make[3]: *** [tclUnixChan.o] Error 1

Checking the make files generated by the configure shows that
tcl/cygwin/makefile is using files from the tcl/unix sub directory but the
include files are comming from the tcl/win sub-directory due to the
CC=gc -mwin32 part.

Can any one tell me if the TCl should use the win or unix directories for
its build files and how I can get the right set of files to build. Before
putting the -mwin32 part into the config and make lines the tcl build failed
with some macros WIFEXIST etc having the wrong types defined.

I hope you can help as I have been trying to get insight built for the last
week.

Andy Hare
www.ahare.btinternet.co.uk





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]