LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-13-2014, 10:56 AM   #16
asma_it
Member
 
Registered: Mar 2014
Posts: 30

Rep: Reputation: Disabled

@knudfl
please Sir where can i find:
ns228-gcc40.patch
ns-2.28-gcc410.patch
 
Old 03-13-2014, 11:03 AM   #17
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
# 16 .

Patches http://www.linuxquestions.org/questi...4-a-842773/#15
( The thread is tagged with "ns228-patch" ).
 
Old 03-14-2014, 06:48 AM   #18
asma_it
Member
 
Registered: Mar 2014
Posts: 30

Rep: Reputation: Disabled
please i didnt interstand ,shoul i execute this commande and my ubuntu version is 13.10 i 686 !


sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb
 
Old 03-14-2014, 07:22 AM   #19
asma_it
Member
 
Registered: Mar 2014
Posts: 30

Rep: Reputation: Disabled
@knudfl
please sir ,
after all steps i got this:
/home/asma/Downloads/ns-allinone-2.28/tk8.4.5/unix/../generic/tk.h:96:23: fatal error: X11/Xlib.h: No such file or directory
# include <X11/Xlib.h>
^
compilation terminated.
make: *** [tk3d.o] Error 1
tk8.4.5 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
root@ubuntu:/home/asma/Downloads/ns-allinone-2.28#
 
Old 03-14-2014, 10:04 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
# 16 .

Not a good idea to start building ns2 (or any other application),
before you have installed all the prerequisites.

Ubuntu :
$ sudo apt-get install g++ g++-4-4 automake autoconf make patch libtool libxmu-dev xgraph

-
 
Old 03-14-2014, 10:09 AM   #21
asma_it
Member
 
Registered: Mar 2014
Posts: 30

Rep: Reputation: Disabled
please what does it mean Selecting previously unselected package gcc41-compat,!!!

sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb
Selecting previously unselected package gcc41-compat.
(Reading database ... 163236 files and directories currently installed.)
Unpacking gcc41-compat (from gcc41-compat-4.1.2-ubuntu1210_i386.deb) ...
Selecting previously unselected package g++41-compat.
Unpacking g++41-compat (from g++41-compat-4.1.2_i386.deb) ...
Setting up gcc41-compat (4.1.2-ubuntu1210) ...
Setting up g++41-compat (4.1.2) ...
 
Old 03-14-2014, 11:05 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
# 21 .

The important message is this :
Quote:
Setting up gcc41-compat (4.1.2-ubuntu1210) ...
Setting up g++41-compat (4.1.2) ...
.. which means that the packages are installed OK. ( Remember to reboot before use.)


"Selecting previously unselected package gcc41-compat" :
Origins from a very old wrong nonsense message written before Debian
had a qualified staff to write documentation etc.
And they never edited the misunderstood text.
Should have been something like : "Selecting previously dselected package .."
I.e. "dselect" was the basic `package selecting tool', used at OS install, etc.
https://packages.debian.org/squeeze/dselect

-

Last edited by knudfl; 03-14-2014 at 11:07 AM.
 
Old 03-14-2014, 07:02 PM   #23
asma_it
Member
 
Registered: Mar 2014
Posts: 30

Rep: Reputation: Disabled
please sir where is the problem her! after ./install (ns2.28)
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... yes
checking standard STL is available... no
checking for tcl.h... -I../include
checking for libtcl8.4... -L../lib -ltcl8.4
checking for init.tcl... ../lib/tcl8.4
checking for tclsh8.4.5... no
checking for tclsh8.4... ../bin/tclsh8.4
checking for tk.h... -I../include
checking for libtk8.4... -L../lib -ltk8.4
checking for tk.tcl... ../lib/tk8.4
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking system version (for dynamic loading)... Linux-3.11.0-12-generic
No explicit static compilation flag; setting V_STATIC to ""
checking for dlopen in -ldl... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
rm -f libotcl.so otcl.o so_locations
cc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/asma/Desktop/ns-allinone-2.28/include -I/home/asma/Desktop/ns-allinone-2.28/include -I/include otcl.c
ld -shared -o libotcl.so otcl.o
otcl.o: In function `OTclDispatch':
/home/asma/Desktop/ns-allinone-2.28/otcl-1.9/otcl.c:495: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/asma/Desktop/ns-allinone-2.28/otcl-1.9/otcl.c:2283: undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value
make: *** [libotcl.so] Error 1
otcl-1.9 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
root@asma-HP-ProBook-4
 
Old 03-15-2014, 04:25 AM   #24
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
# 23 .
Quote:
... /ns-allinone-2.28/otcl-1.9/otcl.c:2283: undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: ..
Don't know. Works OK here, Ubuntu 13.10 - i686.
This is a copy of my bash_history, 2 days ago :
Code:
tar xvf ns-allinone-2.28.tar.gz 
patch -p0 < ns228-gcc40.patch
patch -p0 < ns-2.28-gcc410.patch
cd ns-allinone-2.28/
tar xvf myevalvid2-ns228-patch.tar.gz 
export CC=gcc41 CXX=g++41
./install                                                                                                      

cd ns-2.28/
sudo make install

tar xvf myevalvid2.tar.bz2
ns be_a01.tcl
............. No errorrs at all. May be you have got the "commands sequence" wrong.
Solution : Start from scratch in a new folder with a new unpacked ns-allinone-2.28.tar.gz.

-

Last edited by knudfl; 03-15-2014 at 06:05 AM.
 
Old 03-15-2014, 06:41 AM   #25
asma_it
Member
 
Registered: Mar 2014
Posts: 30

Rep: Reputation: Disabled
can i instegrate evalvid in ns2.35,,!!!
it is so difficue with ns2.28 it is very urgent ,i should install it
 
Old 03-15-2014, 08:03 AM   #26
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
# 25 .

Evalvid in ns-2.28 can be done in 5 minutes, if you do things right.
If you change anything, anything at all in the commands sequence, you will of course fail.
So far you haven't shown your commands sequence ?
May be you are patching in the wrong location ?
The two patches ns228-gcc40.patch, ns-2.28-gcc410.patch must be applied outside ns-allinone.
And the suggested build command is $ export CC=gcc41 CXX=g++41 && ./install
.. If you exit the terminal, you must do the export line again.

Evalvid in ns-2.35 : Never done before. "ns-2.35" is very different from ns-2.28 .

-
 
Old 03-15-2014, 12:17 PM   #27
asma_it
Member
 
Registered: Mar 2014
Posts: 30

Rep: Reputation: Disabled
i did an other new folder in my desktop which contain ns2.28 package,the two patch and g++41-compat-4.1.2_i386.deb and gcc41-compat-4.1.2-ubuntu1210_i386.deb
1) tar xvf ns-allinone-2.28.tar.gz
2)patch -p0 < ns228-gcc40.patch
and this is the result
patch -p0 < ns228-gcc40.patch
patching file ns-allinone-2.28/nam-1.11/agent.h
patching file ns-allinone-2.28/ns-2.28/diffusion3/filter_core/filter_core.hh
patching file ns-allinone-2.28/ns-2.28/diffusion3/lib/nr/nr.hh
patching file ns-allinone-2.28/ns-2.28/queue/cbq.cc
patching file ns-allinone-2.28/ns-2.28/tora/tora_neighbor.h
patching file ns-allinone-2.28/ns-2.28/xcp/xcpq.cc
patching file ns-allinone-2.28/ns-2.28/xcp/xcpq.h

but wthis is the resule of the second patching


patch -p0 < ns-2.28-gcc410.patch
patching file ns-allinone-2.28/nam-1.11/agent.h
Reversed (or previously applied) patch detected! Assume -R? [n]
 
Old 03-15-2014, 12:48 PM   #28
asma_it
Member
 
Registered: Mar 2014
Posts: 30

Rep: Reputation: Disabled
Hunk #3 FAILED at 99.!!

work# patch -p0 < ns-2.28-gcc410.patch
patching file ns-allinone-2.28/nam-1.11/agent.h
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file ns-allinone-2.28/nam-1.11/netgraph.h
patching file ns-allinone-2.28/nam-1.11/node.h
patching file ns-allinone-2.28/nam-1.11/parser.h
patching file ns-allinone-2.28/ns-2.28/diffusion/diffusion.cc
patching file ns-allinone-2.28/ns-2.28/diffusion/omni_mcast.cc
patching file ns-allinone-2.28/ns-2.28/diffusion3/filter_core/filter_core.hh
Hunk #3 FAILED at 99.
1 out of 3 hunks FAILED -- saving rejects to file ns-allinone-2.28/ns-2.28/diffusion3/filter_core/filter_core.hh.rej
patching file ns-allinone-2.28/ns-2.28/dsr/dsragent.cc
patching file ns-allinone-2.28/ns-2.28/indep-utils/cmu-scen-gen/setdest/setdest.h
patching file ns-allinone-2.28/ns-2.28/mobile/god.h
patching file ns-allinone-2.28/ns-2.28/pgm/pgm-agent.cc
patching file ns-allinone-2.28/ns-2.28/pgm/pgm-receiver.cc
patching file ns-allinone-2.28/ns-2.28/pgm/pgm-sender.cc
patching file ns-allinone-2.28/ns-2.28/queue/cbq.cc
Hunk #2 succeeded at 90 with fuzz 2 (offset 3 lines).
patching file ns-allinone-2.28/ns-2.28/sctp/sctp.h
patching file ns-allinone-2.28/ns-2.28/tcp/tcp-sack-rh.cc
patching file ns-allinone-2.28/ns-2.28/tora/tora.cc
patching file ns-allinone-2.28/ns-2.28/tora/tora_neighbor.h
patching file ns-allinone-2.28/otcl-1.9/configure
patching file ns-allinone-2.28/tcl8.4.5/unix/configure
patching file ns-allinone-2.28/tcl8.4.5/unix/tcl.m4
patching file ns-allinone-2.28/tk8.4.5/unix/configure
patching file ns-allinone-2.28/tk8.4.5/unix/tcl.m4
root@asma-HP-ProBook-4520s:/home/asma/Desktop/work#
 
Old 03-15-2014, 01:39 PM   #29
asma_it
Member
 
Registered: Mar 2014
Posts: 30

Rep: Reputation: Disabled
sir please ,this is the result after ./install
now i should execut this commande "tar xvf myevalvid2.tar.bz2" where can i find this packege"xvf myevalvid2.tar.bz2"!!
Thank you very much sir for help
Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.5: /home/asma/Desktop/work/ns-allinone-2.28/{bin,include,lib}
tk8.4.5: /home/asma/Desktop/work/ns-allinone-2.28/{bin,include,lib}
otcl: /home/asma/Desktop/work/ns-allinone-2.28/otcl-1.9
tclcl: /home/asma/Desktop/work/ns-allinone-2.28/tclcl-1.16
ns: /home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/ns

----------------------------------------------------------------------------------

Please put /home/asma/Desktop/work/ns-allinone-2.28/bin:/home/asma/Desktop/work/ns-allinone-2.28/tcl8.4.5/unix:/home/asma/Desktop/work/ns-allinone-2.28/tk8.4.5/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /home/asma/Desktop/work/ns-allinone-2.28/otcl-1.9, /home/asma/Desktop/work/ns-allinone-2.28/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>

(2) You MUST put /home/asma/Desktop/work/ns-allinone-2.28/tcl8.4.5/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.

(3) [OPTIONAL] To save disk space, you can now delete directories tcl8.4.5
and tk8.4.5. They are now installed under /home/asma/Desktop/work/ns-allinone-2.28/{bin,include,lib}

After these steps, you can now run the ns validation suite with
cd ns-2.28; ./validate

For trouble shooting, please first read ns problems page
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.

root@asma-HP-ProBook-4520s:/home/asma/Desktop/work/ns-allinone-2.28# cd ns-2.28/
root@asma-HP-ProBook-4520s:/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28# sudo make install
/usr/bin/install -c -m 555 -o bin -g bin ns /usr/local/bin
/usr/bin/install -c -m 444 -o bin -g bin ns.1 /usr/local/man/man1
for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr indep-utils/webtrace-conv/ucb; do ( cd $i; make install; ) done
make[1]: Entering directory `/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/indep-utils/cmu-scen-gen/setdest'
/usr/bin/install -c -m 555 -o bin -g bin setdest /usr/local/bin
/usr/bin/install -c -m 555 -o bin -g bin calcdest /usr/local/bin
make[1]: Leaving directory `/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/dec'
/usr/bin/install -c -m 555 -o bin -g bin dec-tr-stat /usr/local/bin
make[1]: Leaving directory `/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/epa'
/usr/bin/install -c -m 555 -o bin -g bin epa-tr-stat /usr/local/bin
make[1]: Leaving directory `/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/nlanr'
/usr/bin/install -c -m 555 -o bin -g bin nlanr-tr-stat /usr/local/bin
make[1]: Leaving directory `/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/ucb'
/usr/bin/install -c -m 555 -o bin -g bin ucb-tr-stat /usr/local/bin
make[1]: Leaving directory `/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/ucb'
 
Old 03-15-2014, 02:20 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
# 28 .
Quote:
where can i find this package"xvf myevalvid2.tar.bz2"
http://hpds.ee.ncku.edu.tw/~smallko/ns2/myevalvid2.htm
http://140.116.164.80/~smallko/ns2/myevalvid2.rar
Sorry, I once repacked to .tar.bz for lesser space / a Linux archive (35.9MB),
you can use myevalvid2.rar (38.9MB).


Quote:
Please put /home/....
IMPORTANT NOTICES: (1) You MUST put ..
Please do not add any *PATH text to .bashrc :
All that text was to be done when you used the University computer,
( 15 - 17 years ago ). When it's your computer, and you have permissions
to write to /usr/local/, please only do ...
$ cd ns-allinone-2.28/ns-2.28/ && sudo make install
.. Or even better : $ cp ns ns-evalvid && sudo cp ns-evalvid /usr/local/bin/.
.. Then you are absolutely sure that you are using the right executable "ns".
And can then do the simulation with $ ns-myevalvid be_a01.tcl

#25 : "it is very urgent" : You know it is like "A week to learn how to build ns2",
and "Three months to learn how to use it".

`myevalvid' info * http://www.linuxquestions.org/questions/tags/myevalvid/
* http://www.linuxquestions.org/questi...gs/myevalvid2/
( `mpeg2-ns2' http://www.linuxquestions.org/questi...archid=6219127 )

-
 
  


Reply

Tags
dselect#22, myevalvid, myevalvid2, 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
transmit power fahadnasir Linux - Hardware 3 04-09-2008 11:42 AM
laptop transmit to antenna? sortia Linux - Wireless Networking 4 10-12-2006 08:05 PM
3com Transmit error Ogi Linux - Networking 5 10-09-2005 03:35 PM
eth0: Transmit timed out GuPH Linux - Networking 4 12-16-2003 08:16 PM
eth1: transmit timed out aaron Linux - Networking 0 08-27-2001 02:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:37 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