[Ns-developers] Cygwin 1.7 complilation errors

Tom Henderson tomh at tomh.org
Thu Feb 4 22:29:46 PST 2010


On 2/4/10 10:58 AM, Sidney Doria wrote:
> Hi developers,
>
> I just did a fresh install of the new Cygwin 1.7 with the many
> packages needed for NS-2.33 and 2.34. In both versions of ns-allinone
> the TCL/Tk compilation has failed.
> So I have tried to install ns-2.35RC1 and these are the compiling
> errors that I receive (exactly the same as in 2.33 and 2.34):
>
> STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -DNO_UNION_WAIT=1 -DHAVE_SIGNED_CHA
> R=1 -DHAVE_LANGINFO=1 -DHAVE_FTS=1 -DHAVE_SYS_IOCTL_H=1       -DTCL_SHLIB_EXT=\"
> .dll\"   /home/CissaeSid/ns-allinone-2.35-RC1/tcl8.4.18/unix/tclUnixTime.c
> /home/CissaeSid/ns-allinone-2.35-RC1/tcl8.4.18/unix/tclUnixTime.c:1: warning: -f
> PIC ignored for target (all code is position independent)
> /home/CissaeSid/ns-allinone-2.35-RC1/tcl8.4.18/unix/tclUnixTime.c: In function '
> TclpGetClicks':
> /home/CissaeSid/ns-allinone-2.35-RC1/tcl8.4.18/unix/tclUnixTime.c:100: error: st
> orage size of 'tz' isn't known
> /home/CissaeSid/ns-allinone-2.35-RC1/tcl8.4.18/unix/tclUnixTime.c:100: warning:
> unused variable 'tz'
> /home/CissaeSid/ns-allinone-2.35-RC1/tcl8.4.18/unix/tclUnixTime.c: In function '
> Tcl_GetTime':
> /home/CissaeSid/ns-allinone-2.35-RC1/tcl8.4.18/unix/tclUnixTime.c:253: error: st
> orage size of 'tz' isn't known
> /home/CissaeSid/ns-allinone-2.35-RC1/tcl8.4.18/unix/tclUnixTime.c:253: warning:
> unused variable 'tz'
> make: *** [tclUnixTime.o] Error 1
> tcl8.4.18 make failed! Exiting ...
> For problems with Tcl/Tk see http://www.scriptics.com
>
> I tried to replace the tcl8.4.18 by the new tcl8.5.8 and the new one
> compiled fine, but the same procedure seems to be not working for Tk
> (8.4.18 ->  8.5.8).
>
> Did you have the same compilation problems?
>

I haven't tested with Cygwin 1.7; this seems like a new issue because 
the RC passed for me on an older Cygwin.  This error suggests that 
<sys/time.h> is not included successfully; maybe HAVE_SYS_TIME_H has 
changed.

- Tom


More information about the Ns-developers mailing list