LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-05-2015, 11:12 AM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

A new patch, sip-full-udp_ns226.patch2
(The old patch_sip-full_ns2_v1.0.patch adds some unwanted files)
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Ubuntu 10.10 - i686. ( patch -p0 < sip-full-udp_ns226.patch2 ).
The very old code compiles OK with g++32 (gcc-3.2.3).
Code:
$ ns226-sip-udp sip-example-udp-2.tcl (Edited example, missing definitions)
Start simulation with 33 Call/sec
.
.
start_sip
Segmentation fault
... and is worse with a contemporary i686 OS : "double free or corruption".
-
Attached Files
File Type: txt sip-example-udp-2.tcl.txt (4.3 KB, 17 views)

Last edited by knudfl; 11-05-2015 at 11:19 AM.
 
Old 11-05-2015, 01:44 PM   #17
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
-[/QUOTE]
thanks sir i execute these commands:
cd ns-allinone-2.26/
patch -p1 < ns-2.26-gcc410.patch.txt
patch -p0 < sip-full-udp_ns226.patch2
export CC=gcc34 CXX=g++34
./install
i had this problem:bash: ./install: Permission denied
NB: i'm using ubuntu 12.04 i686
and i installed compat-gcc34_3.4.6-ubuntu15_i386.deb
compat-g++34_3.4.6-ubuntu10_i386.deb
 
Old 11-05-2015, 02:24 PM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #17. About `Permission denied'.

The default build location is /home/<user-name>/ns2/
... or other folder/ in /home/<user-name>/.
Except Desktop/ : The Desktop/ cannot be used.
Then unpack ns-allinone-2.26.tar.gz with $ tar xvf ns-allinone-2.26.tar.gz

No sudo for any ns2 command : You will get "Permission denied".
No Windows tool can be used to unpack : Some files cannot be accessed: Permission denied.

`sudo' exceptions : You can use sudo for the 'make install' in ns-2.26/.
And : sudo cp ns-sip-udp /usr/local/bin/.


About g++34 : g++32 can be used for ns-2.26 + UDPSIP. See post #16.
There are so far no gcc-3.2.3 packages for Ubuntu 12.04 .

-
 
Old 11-05-2015, 07:21 PM   #19
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
when i execute this command: ./install
i have this error:



Build OTcl-1.0a8
============================================================
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc32
checking for C compiler default output... configure: error: C compiler cannot create executables
otcl-1.0a8 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.
then when i execute commands:
cd ns-2.26/
sudo make install
i have this error:
make: *** No rule to make target `install'. Stop.
NB: i installed "compat-gcc-32-c++-3.2.3-47.3.i386.rpm"

Last edited by amelroua; 11-05-2015 at 07:57 PM.
 
Old 11-06-2015, 06:13 AM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #12.

"compat-gcc-32-c++-3.2.3-47.3.i386.rpm" : That's an old RHEL 4 compiler.
May be usable with Ubuntu versions 5.10 ... 10.10, but no later versions.

Please read post #18 :
"There are so far no gcc-3.2.3 packages for Ubuntu 12.04 ."
... meaning that a special gcc32 must be patched up for Ubuntu versions 11.10 - 14*.

With Ubuntu 11.04 the path`s started to change.
And all Ubuntu`s 11.10 - 15.10 have an identical setup :
/usr/include/i386-linux-gnu/, /usr/lib/i386-linux-gnu/.
A conventional gcc32 will look for files in /usr/include/, /usr/lib/.
Meaning that your conventional gcc32 will work only in a conventional OS.
I.e. all new (and older) versions of Fedora, CentOS, PCLinuxOS etc. etc.

* May be I can make up a new gcc32 package for the new Ubuntu versions ... later.


-
 
Old 11-06-2015, 08:29 AM   #21
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
* May be I can make up a new gcc32 package for the new Ubuntu versions ... later.


-[/QUOTE]

that's mean that i can't resolve my problem now and if your response is yes can i find other solutions or modify this script : "sip-example-udp-2.tcl" to simulate voip using sip protocol in ns-2.35 for example?

Last edited by amelroua; 11-06-2015 at 08:34 AM.
 
Old 11-06-2015, 09:53 AM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #21. Quote tags are [quote]text to be quoted[/quote]
( Or use the Quote button.)


Quote:
that means that I can't resolve my problem now
`g++32' doesn't really solve anything. (Is not about gcc32. ns2 is compiled with g++**).
Just shows you that the old UDPSIP code (year ~2000-2003) isn't very usable with a contemporary OS.
See post #16 : Old Ubuntu 10.10 >>> "Segmentation fault"
... and is worse with a contemporary i686 OS : "double free or corruption".

Editing scripts : I can't help with that.

NS-2 is dead. Almost. Very few users, very few questions per week about ns2.
All the ns2 developers are now developing ns3, and only answering ns3 questions :
https://groups.google.com/forum/?fro...rum/ns-3-users
... So far already 7 threads today. And 18 yesterday.

-
 
Old 11-06-2015, 10:19 AM   #23
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
-[/QUOTE]

thanks so much sir but if you have other solution please let me know because i'm blocked in this project
 
Old 11-07-2015, 12:33 PM   #24
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
when i execute this command: sudo apt-get install patch
i had this error: "packet patch not found"
 
Old 11-07-2015, 03:15 PM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #24.

? How did you use the patch command in post #17 ?
Did you change to another OS ?

Anyway, the install command for a package (patch) is :
$ sudo apt-get update && sudo apt-get install patch

-
 
Old 11-07-2015, 03:51 PM   #26
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #24.

? How did you use the patch command in post #17 ?
Did you change to another OS ?



-
thanks sir , yes i changed OS
 
Old 11-07-2015, 04:05 PM   #27
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
[QUOTE]
Sorry but i have another problem when i executed another script i had this error message:

can't read "link_(4:0)": no such element in array
while executing
"$link_([$n1 id]:[$n2 id]) trace $self $file"
(procedure "_o3" line 7)
(Simulator trace-queue line 7)
invoked from within
"$ns trace-queue $PR1 $LO1 $nt"
 
Old 11-07-2015, 04:54 PM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #27.

Which script ? A file name, please.
And : You can upload the file to 'Google Docs'.
Or attach it to a post here, as name.tcl.txt .
Attachments : The paper clip tool in the 'Advanced Editor'.

"$link_([$n1 id]:[$n2 id]) trace $self $file" : Unknown file.
None of the ~2,000 ns2 examples seem to have a line like that.
( cd All-examples/ && grep "$link_([$n1 id]:[$n2 id]) trace $self $file" * ).

Your error : Looks like "link_(4:0)" isn't defined.

-
 
Old 11-07-2015, 05:10 PM   #29
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #27.

Which script ? A file name, please.


-
the script "sip-example-sctp.tcl" posted in this link:https://drive.google.com/file/d/0B7S...ew?usp=sharing
and concerning the first question about patch i type this command sudo apt-get update && sudo apt-get install patchbut i have this error:
"download of some files failed"

Last edited by amelroua; 11-07-2015 at 05:58 PM.
 
Old 11-07-2015, 06:34 PM   #30
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #29.
Quote:
"download of some files failed"
? Which OS ? Still Ubuntu 12.04 - i686 ?


Your "half link" :
"https://drive.google.com/file/d/0B7S...ew?usp=sharing" >>>
HOWTO copy a link address :
Mouse right click, select 'Copy Link Location'.

And from 'Google Docs' you can Copy/Paste the link address.


-

Last edited by knudfl; 11-07-2015 at 06:38 PM.
 
  


Reply

Tags
ns2, sip-ns2, voip-ns2



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
[SOLVED] installation SIP protocol in NS2 godfather9112 Linux - Kernel 15 02-20-2015 09:57 AM
how to open port for IP Phone using SIP protocol with IPTable on RadHat youphak Linux - Networking 1 05-18-2011 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:46 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
Open Source Consulting | Domain Registration