otcl-1.14 make failed [recipe for target `libotcl.a' failed] for ns-allinone-2.35-RC8
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 |
Is there any reason why you can't just use the pre-built binaries?
These are located at: http://www.isi.edu/nsnam/dist/binary...n-binaries.zip Found on this page: http://nsnam.isi.edu/nsnam/index.php...P_Using_Cygwin |
rootboy, thank you for the response but ns-allinone seemed to be a better option as all the necessary tweakings and changes are done already. I am trying to use the latest ns2 package because a lot of changes has been made. I need the basic features as of now but i will require other features later. I don't want the hassle of rebuilding the whole stuufs again.
Regards, Pratik Joshi |
Ref. your posts here :
http://www.linuxquestions.org/questi...-a-4175472232/ → → gcc-core 4.8.1-3 , gcc-g++ 4.8.1-3 . ** ns-allinone-2.35 cannot be compiled with gcc / g++ version 4.8.x . ** The suggested version is 4.4 ( or 4.6 ). Remark : The latest "2.35" is ns-allinone-2.35.tar.gz, RC8 is a release candidate. http://sourceforge.net/projects/nsnam/ Remark 2 : It might be much easier using a genuine Linux OS. Can be installed into a "virtual machine": 'VM ware' or 'Virtual Box'. Then you can install any compiler version. - |
problem solved by using virtual box with Fedora 18. thank you everyone for the help!!!
|
All times are GMT -5. The time now is 03:30 AM. |