LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2013, 11:35 AM   #1
pratikjoshi
LQ Newbie
 
Registered: Feb 2009
Location: Kathmandu, Nepal
Posts: 18

Rep: Reputation: 0
Question 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
 
Old 08-11-2013, 02:09 PM   #2
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
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
 
Old 08-11-2013, 05:02 PM   #3
pratikjoshi
LQ Newbie
 
Registered: Feb 2009
Location: Kathmandu, Nepal
Posts: 18

Original Poster
Rep: Reputation: 0
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
 
Old 08-11-2013, 06:24 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,629

Rep: Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267
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.

-
 
Old 08-23-2013, 06:44 AM   #5
pratikjoshi
LQ Newbie
 
Registered: Feb 2009
Location: Kathmandu, Nepal
Posts: 18

Original Poster
Rep: Reputation: 0
problem solved by using virtual box with Fedora 18. thank you everyone for the help!!!
 
  


Reply

Tags
ns2, windows 7


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cogl-1.10.4 make check failed and compile Clutter-1.10.8 failed kcynice Linux From Scratch 0 08-09-2012 12:27 AM
"otcl 1.8 make failed error exiting " while installing ns 2.27 Tellajeera Sushma Linux - Newbie 5 09-13-2011 01:19 PM
installation of NS2 (otcl make failed) NabiVakili Linux - Newbie 4 04-11-2011 02:45 AM
make: Fatal error: Command failed for target `all-recursive' vous Linux - Software 1 07-13-2009 07:23 AM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover SUSE / openSUSE 8 02-22-2005 07:57 AM


All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration