LinuxQuestions.org
Visit Jeremy's Blog.
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-03-2015, 07:49 AM   #1
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Rep: Reputation: Disabled
sip protocol in ns-2


HI,
i have installed greencloud for simulation
When i follow instruction posted in this link http://www.linuxquestions.org/questi...s2-4175521400/

tar xvf ns-allinone-2.29.3.tar.gz
$ cd ns-allinone-2.29/
$ patch -p0 < sip-svn.r29__ns229.patch
$ tar xvf sip_r104-adds-to-r29__ns229.tar.gz
$ export CC=gcc34 CXX=g++34
$ ./install
after execution of ./install i have this error:

checking whether the C compiler (gcc34 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

please i need your help

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

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
If you installed "gcc34 / g++34" they can be used. Else not.

And you will have to specify your 'Linux OS' to get the information about the gcc34/g++34 choices.

Please show the output from the command $ uname -m
And please specify OS name and version.


-
 
1 members found this post helpful.
Old 11-03-2015, 11:33 AM   #3
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
If you installed "gcc34 / g++34" they can be used. Else not.

And you will have to specify your 'Linux OS' to get the information about the gcc34/g++34 choices.

Please show the output from the command $ uname -m
And please specify OS name and version.


-
Thanks for your response
the output of $ uname -m is: i686
and i have installed ubuntu 12.04.5.LTS
yes i installed "gcc34 / g++34"
and then i installed gcc41 / g++41 and i tried with the solution posted in this link :http://www.linuxquestions.org/questi...quasim-932264/
but no result and i had the same problem

Last edited by amelroua; 11-03-2015 at 11:45 AM.
 
Old 11-03-2015, 12:53 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #3.
Quote:
Yes I installed "gcc34 / g++34"
Which packages ? The file names, please.
1) There is a new version.
2) Not all "gcc34/g++34" will fit Ubuntu 12.04 .
2a) Your gcc34/g++34`s may not be in your PATH :
a) $ which gcc34
b) $ which g++34
3) gcc41/g++41 can also be used, if you installes the right packages :
$ export CC=gcc41 CXX=g++41 && ./install
... if they are in your PATH.

-
 
Old 11-03-2015, 12:59 PM   #5
amelroua
Member
 
Registered: Oct 2015
Posts: 42

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

Which packages ? The file names, please.
1) There is a new version.
2) Not all "gcc34/g++34" will fit Ubuntu 12.04 .
2a) Your gcc34/g++34`s may not be in your PATH :
a) $ which gcc34
b) $ which g++34
3) gcc41/g++41 can also be used, if you installes the right packages :
$ export CC=gcc41 CXX=g++41 && ./install
... if they are in your PATH.

-
i installed compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb
and compat-gcc-34-c++_3.4.6-20_amd64.deb
the problem is of the version which packages i should install please?

when i execute this command sudo apt-get install gcc-4.6
i have this message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc-4.6 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 101 not upgraded.

Last edited by amelroua; 11-03-2015 at 01:53 PM.
 
Old 11-03-2015, 03:26 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #5. Please do not quote entire posts. A "one word reference" will do.

You have installed the wrong compilers.
Architecture is i686. `.i386' packages must be used. `.amd64' is for an x86_64 OS.

Packages :
compat-gcc34_3.4.6-ubuntu15_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing
compat-g++34_3.4.6-ubuntu10_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Please remove the .amd64 packages. And install the right ones.


-
 
Old 11-03-2015, 04:21 PM   #7
amelroua
Member
 
Registered: Oct 2015
Posts: 42

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

thanks for your response but i have another question please if i installed ns2.35 and used the ns2VoIP++150310.patch of ns2.34 i should do same instructions that i used for ns-2.29?
and when i execute this command for ns-2.35 : cat /tmp/ns2VoIP++150310.patch | patch -Np1
i have this problem

patch: **** malformed patch at line 6897:

patch: **** Only garbage was found in the patch input.
link of ns2VoIP++150310.patch: http://cng1.iet.unipi.it/archive/ns2...++150310.patch
please i need your help

Last edited by amelroua; 11-03-2015 at 04:54 PM.
 
Old 11-03-2015, 04:42 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #7.

Voip++ ns-2.35 :
$ tar xvf ns-allinone-2.35_gcc482.tar.gz (The 2014 update, can use all gcc, 4.4 .. 5.2)
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
$ patch -p0 < Voip++_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
$ cd ns-2.35/
$ cp ns ns235-Voip+
$ sudo cp ns235-Voip+ /usr/local/bin/
Simulation : $ ns235-Voip+ voip.tcl

Note :
You can have as many ns-allinone-2* as you want, installed at the same time.
But do never add any *PATH text to .bashrc . Not required.


-
 
Old 11-03-2015, 06:46 PM   #9
amelroua
Member
 
Registered: Oct 2015
Posts: 42

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

Thanks sir you are very helpful all these instructions are executed successfully but when i simulate the example sip-example-udp.tcl from "sip-examples-2014.tar.gz"

i have the same problem :

Start simulation with 33 Call/sec
invalid command name "Agent/UDP/UDPSIP"
while executing
"Agent/UDP/UDPSIP create _o194 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/UDP/UDPSIP"
invoked from within
"set udp_1 [new Agent/UDP/UDPSIP]"
(file "sip-example-udp.tcl" line 96)
 
Old 11-03-2015, 10:36 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #9.

invalid command name "Agent/UDP/UDPSIP" :

Well, you didn't use the patch with UDPSIP : patch_sip-full_ns2_v1.0
http://www.linuxquestions.org/questi...4175557502/#10

* Please read the patch to know the changes ....
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
 
Old 11-04-2015, 05:13 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #10.

This is what "patch_sip-full_ns2_v1.0" will add to an ns-2.26 :
SIP-UDPSIP-overview__patch_sip-full_ns2_v1.0.tar.gz EDIT, sorry wrong package.
EDIT : see SIP-UDPSIP_patch_sip-full_ns2_v1.0_2.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing



-

Last edited by knudfl; 11-05-2015 at 10:01 AM.
 
Old 11-04-2015, 10:46 AM   #12
amelroua
Member
 
Registered: Oct 2015
Posts: 42

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

thanks sir i installed
SIP-UDPSIP-overview__patch_sip-full_ns2_v1.0.tar.gz
when i execute these commands:
cd SIP-UDPSIP-overview__patch_sip-full_ns2_v1.0/ns-2.26
patch -p0 < patch_sip-full_ns2_v1.0.patch
i have this error:

can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naurb ns-allinone-2.26/ns-2.26/apps/app.h ns-2.26-sip-fullversion/ns-2.26/apps/app.h
|--- ns-allinone-2.26/ns-2.26/apps/app.h 2003-02-26 23:07:16.000000000 +0100
|+++ ns-2.26-sip-fullversion/ns-2.26/apps/app.h 2003-10-15 14:10:50.000000000 +0200
 
Old 11-04-2015, 12:02 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

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

The patch "patch_sip-full_ns2_v1.0.patch" is supposed to be added to ns-2.26.

The "SIP-UDPSIP-overview..." is nothing but an overview. For you to read.

The "SIP-UDPSIP-overview..." shows the files added to ns-2.26 .
And shows the changes of {Makefile.in, packet.h, trace.cc, ns-default.tcl}.
The lines starting with a ` + ' are added to the files.
( The + is not added, is just an argument for the patch command.
See `patch_sip-full_ns2_v1.0.patch'.)


-
 
Old 11-04-2015, 12:35 PM   #14
amelroua
Member
 
Registered: Oct 2015
Posts: 42

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

The patch "patch_sip-full_ns2_v1.0.patch" is supposed to be added to ns-2.26.


-
i have the same problem
cd ns-allinone-2.26/
patch -p0 < patch_sip-full_ns2_v1.0.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naurb ns-allinone-2.26/ns-2.26/apps/app.h ns-2.26-sip-fullversion/ns-2.26/apps/app.h
|--- ns-allinone-2.26/ns-2.26/apps/app.h 2003-02-26 23:07:16.000000000 +0100
|+++ ns-2.26-sip-fullversion/ns-2.26/apps/app.h 2003-10-15 14:10:50.000000000 +0200
---------------
i followed the solution added in this link :http://www.linuxquestions.org/questi...s2-4175521400/
 
Old 11-05-2015, 06:40 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #14.

$ cd ns-allinone-2.26/
$ patch -p1 < patch_sip-full_ns2_v1.0.patch


? Which "Linux OS" are you using ?
a) Please show the output from the command $ uname -m
b) OS name and version, please.

Not all contemporary Linux OS`s can chew ns-allinone-2.26 .
And : ns-allinone-2.26 requires the patch "ns-2.26-gcc410.patch".
$ patch -p1 < ns-2.26-gcc410.patch
... In order to use gcc-3.4.6 or gcc-4.1.2 .
( $ export CC=gcc34 CXX=g++34 && ./install ).


-
 
  


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 09:56 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