LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-08-2015, 06:34 AM   #31
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by knudfl View Post
Re #29.

? Which OS ? Still Ubuntu 12.04 - i686 ?


Your "half link" :
"https://drive.google.com/file/d/0B7S...ew?usp=sharing" >>>



-
i'm using ubuntu 10.10 i686

i'm so sorry concerning the link: https://drive.google.com/file/d/0B7S...hmekpTdHM/view
 
Old 11-08-2015, 09:15 AM   #32
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 #31.

No need to show a link to sip-examples-2014.tar.gz, uploaded by me last year.
The file name will do.

Ubuntu 10.10 is in the old archive. New links are required in /etc/apt/sources.list :
$ sudo gedit /etc/apt/sources.list
... then delete all lines, and enter these 8 new lines :
Code:
deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-backports main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-backports multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security multiverse universe
Then you can do : $ sudo apt-get update && sudo apt-get install <packages>

-
 
Old 11-08-2015, 09:31 AM   #33
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.
Quote:
can't read "link_(4:0)": no such element in array
You can add more "links" ( Starts at line ~43 : # nodes ).
I added some more :
set LO1 [$ns node]
set LO2 [$ns node]
set LO3 [$ns node]
set LO4 [$ns node]
set LO5 [$ns node]
set LO6 [$ns node]
.
.
set L46 [$ns node]
.. and the output is : can't read "link_(48:0)": no such element in array
.. so I guess you will have to trace how the number of "links" can be limited.
Or may be you will have to continue adding :
set L<?> [$ns node] ,,, till 100 .. 200 links ?


( The other script `sip-example-udp(-2).tcl' was also incomplete and required editing.)


-
 
Old 11-08-2015, 09:59 AM   #34
amelroua
Member
 
Registered: Oct 2015
Posts: 42

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



-
thanks sir i added patch but when i execute ./install
i had this problem:

ns-allinone-2.26/tk8.3.2/unix/../generic/tk.h:83: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [tk3d.o] Error 1
tk8.3.2 make failed! Exiting
 
Old 11-08-2015, 12:46 PM   #35
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 #34.
Quote:
X11/Xlib.h: No such file or directory
If you followed post #32, you can do :
$ sudo apt-get update && sudo apt-get install libxmu-dev
 
Old 11-08-2015, 04:16 PM   #36
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
[/QUOTE]

i'm using ubuntu 10.10 but i had the same problem that i posted with 12.04 of otcl 1.0a8 when executing ./install


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.

NB: i installed "compat-gcc-32-c++-3.2.3-47.3.i386.rpm"
"compat-gcc-32-3.2.3-47.3.i386.rpm"
 
Old 11-08-2015, 05:36 PM   #37
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 #36.
Quote:
C compiler cannot create executables
.
.
I installed compat-gcc-32-c++-3.2.3-47.3.i386.rpm, compat-gcc-32-3.2.3-47.3.i386.rpm
Obviously not working.
... You installed a totally wrong compiler in Ubuntu 12.04.
And nobody ever promised you that the above Redhat EL4 packages can be used in Ubuntu 10.10.
Seems they cannot function with the Ubuntu 10.10 "libgcc_s.so.1".

The packages I used are gcc32-3.2.3.-2.i386.rpm (Comes with an internal libgcc_s.so.1),
and g++32-3.2.3.-2.i386.rpm
`gcc32' https://drive.google.com/file/d/0B7S...ew?usp=sharing
`g++32' https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
 
Old 11-09-2015, 11:47 AM   #38
amelroua
Member
 
Registered: Oct 2015
Posts: 42

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

The packages I used are gcc32-3.2.3.-2.i386.rpm (Comes with an internal libgcc_s.so.1),
and g++32-3.2.3.-2.i386.rpm
`gcc32' https://drive.google.com/file/d/0B7S...ew?usp=sharing
`g++32' https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
sorry, i installed these packages but i have the problem isn't solved
 
Old 11-09-2015, 01:05 PM   #39
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 #38 :

""i have the problem isn't solved"" : Which problem ?

And : Did you remove the old rpm packages ?


-
 
Old 11-09-2015, 01:15 PM   #40
amelroua
Member
 
Registered: Oct 2015
Posts: 42

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

the same problem : 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.

yes sir i removed them
 
Old 11-09-2015, 05:01 PM   #41
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 #40.

Please do like : $ export CC=gcc34 CXX=g++32 && ./install
( That's what I used.)

I.e. no reason at all to use gcc32, if failing with some applications.
The important thing here is g++32 for the sip code.
(g++32 requires gcc32 to be installed.)

So for the C files it is gcc34 or gcc41 (gcc-4.3?), and for the C++ files g++32.


-

Last edited by knudfl; 11-09-2015 at 05:03 PM.
 
Old 11-10-2015, 06:18 AM   #42
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
[QUOTE]
sorry sir,
i tried with gcc34 then gcc41 but no result
for example with : export CC=gcc41 CXX=g++32 && .\install
i had this problem :
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... gcc41
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.
NB: i installed "gcc41-compat-4.1.2_i386.deb"
the same thing with gcc34
i installed "compat-gcc-34-3.4.6-4.1.i386.rpm"

Last edited by amelroua; 11-10-2015 at 06:25 AM.
 
Old 11-10-2015, 07:21 AM   #43
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 #42.

May be you didn't install the ns2 build prerequisites ?

$ sudo apt-get update
$ sudo apt-get install g++ autoconf libtool libxmu-dev

I.e. the install of the default g++ will also install the dependencies that make all gcc versions work.


-
 
Old 11-10-2015, 07:54 AM   #44
amelroua
Member
 
Registered: Oct 2015
Posts: 42

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



$ sudo apt-get update
$ sudo apt-get install g++ autoconf libtool libxmu-dev

-
i execute these commands but problem isn't solved what i sould do please sir?
 
Old 11-10-2015, 10:41 AM   #45
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 #44.

Please show the output from these commands :
$ uname -m
$ which gcc32
$ which g++32
$ gcc --version
$ g++ --version


-
 
  


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 08:28 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