This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Problems building TCL for insight on cygwin & win2k
Hi Andy,
this is going to sound strange, but you're missing the -mwin32 flag
which should be automatically added to the command line.
Your problem doesn't seem to be with setting CC="gcc -mwin32", but
some how the -mwin32 and -mno-win32 flags are not being passed at
the right time.
Something is going wrong at configure time and the EXTRA_CFLAGS
variable used to pass -m*win32 isn't being set or isn't being passed.
They should be present in <src-dir>/tcl/cygwin/configure.in (grep
for mno-win32) and <src-dir>/tcl/win/configure.in (grep for mwin32).
Also check the value of EXTRA_CFLAGS in <build-dir>/tcl/unix/tclConfig.sh
and <build-dir>/tcl/win/tclConfig.sh.
These might yield some clues to the problem.
Ian.
Andy Hare wrote:
>
> Keith,
>
> I have now re-configed into an empty directory and re-built without
> the -mwin32 flags. I now get the errors shown below:
>
> gcc -c -g -O2 -Wall -Wconversion -I"/GNU-Source-Code/src/tcl/win/../generic
> " -I"/GNU-Source-Code/src/tcl/win" -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=
> 1 -DHAVE_TZNAME=1 -DBUILD_tcl