LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-04-2013, 09:32 AM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,547

Rep: Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511

# 14 .

No. Ns-allinone-2.34 requires gcc / g++ version 4.1.2 for easy install :
http://www.linuxquestions.org/questi...532/page4.html
> post # 47.

cd ns-allinone-2.34/ && export CC=gcc41 CXX=g++41 && ./install

-
 
Old 05-04-2013, 09:37 AM   #17
ines8989
Member
 
Registered: Mar 2013
Posts: 62

Original Poster
Rep: Reputation: Disabled
thanks a lot for your help

Last edited by ines8989; 05-04-2013 at 09:41 AM.
 
Old 05-04-2013, 04:10 PM   #18
ines8989
Member
 
Registered: Mar 2013
Posts: 62

Original Poster
Rep: Reputation: Disabled
Unhappy *** stack smashing detected *** in tcl script

Hi MR knudfl i have done everything as you told me in last topic and i have installed again ns2.35 with the command suggested and the installation is well . But while executing again tfrc-wireless.tcl i have the same message appeared

an indication :the script give me well the trace file and the nam file.They run well. But juste the message appears in the terminal

Last edited by ines8989; 05-04-2013 at 04:16 PM.
 
Old 05-05-2013, 05:20 AM   #19
ines8989
Member
 
Registered: Mar 2013
Posts: 62

Original Poster
Rep: Reputation: Disabled
*** stack smashing detected *** in tcl script

However all over the installation i seen a message who appears that's : no configure file in current directory.
and unorganized options enable --gcc .
What should i do please reply me .
 
Old 05-05-2013, 06:30 AM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,547

Rep: Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511
#18, #19 .

Well, you can use an ns2 that's compiled on another OS.
Example : ns-2.34-ubuntu10_i386.deb, 4.4 MB (From Ubuntu 10.10)
https://docs.google.com/file/d/0B7S2...it?usp=sharing

Install : $ sudo dpkg -i ns-2.34-ubuntu10_i386.deb
... provides /usr/local/bin/ns234

Ubuntu 11.10 : $ ns234 tfrc-wireless.tcl : No error messages.

-
 
Old 05-05-2013, 05:29 PM   #21
ines8989
Member
 
Registered: Mar 2013
Posts: 62

Original Poster
Rep: Reputation: Disabled
*** stack smashing detected *** in tcl script

I would thank you a lot MR knudfl . You are giving me a great help.
Please can you tell me the clear steps to install ns2.34 with ubuntu 10.10 .
Please reply me .Thanks
 
Old 05-06-2013, 05:01 AM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,547

Rep: Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511
# 21 .

Ubuntu 10.10 produces the best executable 'ns' from ns-2.27, ns-2.28, ns-2.29.
Not necessarily for the other version ns-2.26, ns-2.30....-2.34.

Installing ns-2.34 on any Ubuntu, 10.10 ..... 13.04 :
cd ns-allinone-2.34/ && export CC=gcc41 CXX=g++41 && ./install

gcc41 + g++41 compilers, post # 47 here :
http://www.linuxquestions.org/questi...532/page4.html

Note : The main purpose of ns-allinone-2.xx is to create one file : 'ns'.
When created, the most of of ns-allinone-2.xx can be deleted.
Example : $ dpkg -x ns-2.34-ubuntu10_i386.deb ./
.. Then you can watch the few files required to run 'ns'.
That's why the package ns-2.34-ubuntu10_i386.deb is only 4.4 MB !

-
 
Old 05-06-2013, 05:34 AM   #23
ines8989
Member
 
Registered: Mar 2013
Posts: 62

Original Poster
Rep: Reputation: Disabled
*** stack smashing detected *** in tcl script

Thanks for your replys . I would telle that i have verify me Makefile.in while executing ns2.35 and it was :
CC = @CC@ not as you told me CC=gcc-4.4. Should i replace it and retry with the tcl script ?please?
 
Old 05-06-2013, 06:59 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,547

Rep: Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511
# 23 .

Please read post # 10 : CPP = g++-4.4

But that's just a check, not something you should use.
To get a reliable ns-2.35 you will have to start from scratch in a new directory:
$ tar xvf ns-allinone-2.35.tar.gz ; $ cd ns-allinone-2.35/
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install

I.e. all {tcl* tk* otcl* tclcl* ns-2.35} must be compiled with gcc/g++ -4.4.

-
 
Old 05-06-2013, 07:09 AM   #25
ines8989
Member
 
Registered: Mar 2013
Posts: 62

Original Poster
Rep: Reputation: Disabled
*** stack smashing detected *** in tcl script

Thank you verry much Mr knudfl
 
  


Reply

Tags
ns2


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
low stack detected by irq handler beev1812 Linux - Server 1 08-22-2011 02:17 PM
SARG: *** stack smashing detected ***: sarg terminated Aborted btaylor1988 Linux - Server 0 06-10-2008 03:28 AM
strcat giving a stack smashing detected error ashlesha Programming 2 03-11-2007 11:15 AM
Smashing the stack protection Seniltai Programming 1 04-21-2006 12:12 PM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 11:00 AM


All times are GMT -5. The time now is 02:52 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration