LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-10-2015, 10:55 AM   #46
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled

-[/QUOTE]
$ uname -m
i686
$ which gcc32
no result is shown
$ which g++32
/usr/bin/g++
$ gcc --version
gcc(ubuntu/linaro 4.4.4 -14ubuntu5.1)4.4.5

$ g++ --version

g++(ubuntu/linaro 4.4.4 -14ubuntu5.1)4.4.5
 
Old 11-10-2015, 11:56 AM   #47
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #46.
Quote:
$ which gcc32 : no result is shown
So you didn't actually install any rpm packages.

Considering the poor simulation result I got after using g++32-3.2.3,
... I'd suggest you start with the Redhat EL4 packages :
1) sudo apt-get install rpm
2) cd <folder with rpm`s>/
3) sudo rpm -Uvh --nodeps compat-gcc-32-3.2.3-47.3.i386.rpm compat-gcc-32-c++-3.2.3-47.3.i386.rpm

And you said you installed gcc34 ? Strange that it is refused by otcl.
? May be you didn't install that package either.
? What the output from $ which gcc34


-
 
Old 11-10-2015, 01:18 PM   #48
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
? What the output from $ which gcc34


-[/QUOTE]

thanks sir for these commands the problem of otcl 1.08a is solved
the result of $ which gcc34=usr/bin/gcc34
but i have other problem : can't find X library
NB: i installed: sudo apt-get install libx11-dev
sudo apt-get install libxt-dev
sudo apt-get install libstdc++5
 
Old 11-10-2015, 02:02 PM   #49
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #48.
Quote:
but i have other problem : can't find X library
OK, that's in ns-2.26/ : Please delete "config.status".
( The old file config.status origins from the author`s build.
And obviously forgotten ('make distclean' omitted.) before he made the patch.)
You can also run 'make distclean' in ns-2.26/ to be sure it's clean.
I.e. I think there was another file to be cleaned out : tcl/lib/ns-autoconf.tcl
Both mentioned files are generated specifically for the actual OS / build location.

* I made a new patch, sip-full-udp_ns226.patch2, without those issues ... EDIT
https://drive.google.com/file/d/0B7S...ew?usp=sharing
EDIT , see post #53.


-

Last edited by knudfl; 11-11-2015 at 07:48 AM.
 
Old 11-10-2015, 02:49 PM   #50
amelroua
Member
 
Registered: Oct 2015
Posts: 42

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

OK, that's in ns-2.26/ : Please delete "config.status".



-
i deleted all "config.status" files in ns-2.26 and tcl/lib/ns-autoconf.tcl.in
but the problem of X library isn't solved

Last edited by amelroua; 11-10-2015 at 02:53 PM.
 
Old 11-10-2015, 04:16 PM   #51
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #50.

What do you mean by "all "config.status" files" ?
There is one file only by name config.status .

* Please reconfigure ns-2.26/ :
$ export CXX=g++32 && ./configure && make
.. or go to the top directory and run $ export CC=gcc34 CXX=g++32 && ./install


-

Last edited by knudfl; 11-10-2015 at 04:20 PM.
 
Old 11-10-2015, 04:31 PM   #52
amelroua
Member
 
Registered: Oct 2015
Posts: 42

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

What do you mean by "all "config.status" files" ?


-
i don't find any file 'config.status"in ns-2.26 but i found many files with the same name in tclcl-1.0b13, Xgraph-12.1 TCL8.3.2 and tk8.3.2
and i do this reconfiguration but i had the same error
 
Old 11-11-2015, 07:36 AM   #53
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
OK, some more issues in the patch ( also the new sip-full-udp_ns226.patch2 ) :

ns-2.26/config.cache : Please delete.


I made a new testbuild, Ubuntu 10.10.
Appears to be worse with compat-gcc-32-c++-3.2.3-47.3.i386.rpm :
"glibc etc. libs crash" by $ ns-sipUDP sip-example-udp-2.tcl
... where the other "g++32" just showed 'Segmentation fault'.

Possible solution : An ancient OS.

Remember that SIP is one of the most complicated ns2 protocol that exists.
Therefore no SIP for a new version of ns2.
And no SIP for ns3 : The ns3 development team estimates a year to write code for a new SIP.


-

Last edited by knudfl; 11-11-2015 at 07:47 AM.
 
Old 11-11-2015, 08:30 AM   #54
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
Possible solution : An ancient OS.

-[/QUOTE]

could you please tell me which one i can try with it?
and which gcc, g+++ should be installed?

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

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #54.

An old OS (~2002?) requires an old computer. I will try waking up my old 2002`s.

GCC version : The default version is to be used. ( gcc 2.95 ... gcc 3.xx ).
 
Old 11-11-2015, 03:12 PM   #56
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
[/QUOTE]

thanks so much after i executed the tcl script "sip-example-udp.tcl" i had this problem:
warning: no class variable Application/Traffic/SipUdp::end_call_management_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Application/Traffic/SipUdp::end_call_management_

see tcl-object.tcl in tclcl for info about this warning.

couldn't read file "udp_utils.tcl": no such file or directory
 
Old 11-11-2015, 03:48 PM   #57
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #56.

HOWTO example : $ cd sip-examples2015/
(Or wherever you have all the sip examples, including the configuration file udp_utils.tcl)
$ ns-sip-udp sip-example-udp.tcl
... I am now at version 3, sip-example-udp-3.tcl
https://drive.google.com/file/d/0B7S...ew?usp=sharing


My result, Slackware 9 , IBM 8189D6G ...
$ cd ns-allinone-2.26/ && patch -p0 < sip-full-udp_ns226.patch3
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install : No issues, the default gcc/g++ is version 3.2.2 .

Code:
$ ns-sip-udp sip-example-udp-3.tcl
Start simulation with 33 Call/sec
warning: no class variable Application/Traffic/SipUdp::end_call_management_

        see tcl-object.tcl in tclcl for info about this warning.

start_sip
time:3.94801137702617   stop number:12  from:2  to:1
time:5.1641389183033573 stop number:8   from:2  to:1
time:5.3092393961203506 stop number:32  from:1  to:2
time:5.6633943331709302 stop number:18  from:1  to:2
time:5.8126048266212376 stop number:21  from:2  to:1
No errors !
( The warning can be ignored.)


-

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

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
An UDPSIP test with Ubuntu 7.04 - i686 :
Compiles OK, Ubuntu 7.04 has g++-3.3.6 among the additional compilers.

But the simulation fails with the usual glibc corruption.



-
 
Old 11-12-2015, 03:45 PM   #59
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Testing if the executable 'ns'(-sip-udp) from Slackware 9 can be used with a later OS:

Alone as $ ./ns : OK, the % prompt appears.

With the simulation, sip-example-udp(-3).tcl :
1) A contemporary OS : No.
2) Ubuntu 7.04 : No.
Both are showing the usual memory corruption, etc.


-
 
Old 11-14-2015, 08:47 AM   #60
amelroua
Member
 
Registered: Oct 2015
Posts: 42

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

Hi sir,
could you tell me if there is a sip patch for ns2.35
 
  


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 02:53 PM.

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