I am trying to install ns-allinone-2.35-RC8 in windows 7 (Cygwin 1.7.22) but i came across this problem. Can somebody give me suggestion to overcome this problem?
configure: creating ./config.status
config.status: creating Makefile
rm -f libotcl.a otcl.o
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -DHAVE_UNISTD_H=1 -I. -I/home/PratikJoshi/ns-allinone-2.35-RC8/include -I/home/PratikJoshi/ns-allinone-2.35-RC8/include -I/home/PratikJoshi/ns-allinone-2.35-RC8/include -I/usr/X11R6/include -I/include otcl.c
In file included from otcl.c:21:0:
/home/PratikJoshi/ns-allinone-2.35-RC8/include/tclInt.h:66:13: error: conflicting types for ‘ptrdiff_t’
typedef int ptrdiff_t;
^
In file included from /usr/lib/gcc/x86_64-pc-cygwin/4.8.1/include-fixed/sys/cdefs.h:53:0,
from /usr/include/string.h:12,
from otcl.c:20:
/usr/lib/gcc/x86_64-pc-cygwin/4.8.1/include/stddef.h:147:26: note: previous declaration of ‘ptrdiff_t’ was here
typedef __PTRDIFF_TYPE__ ptrdiff_t;
^
otcl.c: In function ‘FindProc’:
otcl.c:74:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
#define Tcl_CmdInfoGetProc(co) (Proc *)(co->isNativeObjectProc) ? co->objClientData : co->clientData;
^
otcl.c:784:14: note: in expansion of macro ‘Tcl_CmdInfoGetProc’
return Tcl_CmdInfoGetProc(co);
^
Makefile:91: recipe for target `libotcl.a' failed
make: *** [libotcl.a] Error 1
otcl-1.14 make failed! Exiting ...
See
http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Regards,
Pratik Joshi