LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-11-2011, 05:20 PM   #1
khan1354
LQ Newbie
 
Registered: Mar 2011
Location: uk
Posts: 16

Rep: Reputation: 0
Post Insertion steps of VBR into NS2.34


Hi, this is khan. I am facing problem while inserting VBR code into NS2.34 of ubuntu version10.10 OS

I have done the simulation according to your steps from the
the site
http://www.isi.edu/nsnam/archive/ns-.../msg05051.html

but i was unable to configure that completely it showing like as follows
by using command sudo ./configure. i got the following erro as shown below

config.status: creating indep-utils/webtrace-conv/ucb/
> Makefile
> config.status: creating indep-utils/webtrace-conv/dec/Makefile
> config.status: creating indep-utils/webtrace-conv/nlanr/Makefile
> config.status: creating indep-utils/webtrace-conv/epa/Makefile
> config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile
> config.status: creating autoconf.h
> config.status: autoconf.h is unchanged error.......

> sadaq@ubuntu:~/ns-allinone-2.34/ns-2.34$ sudo make
> make: *** No rule to make target `tools/VBR_traffic.o', needed by `ns'.
> Stop.
> sadaq@ubuntu:~/ns-allinone-2.34/ns-2.34$

could you please help me how to sort out this problem
 
Old 03-11-2011, 05:45 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ.
Quote:
No rule to make target `tools/VBR_traffic.o
That means : 'ns-allinone-2.34/ns-2.34/tools/VBR_traffic.cc' is missing.
So where did you place the 'VBR_traffic.cc' file ?


The code is ten years old and is meant for ns-2.1.xx :
It may not work at all.

..
 
Old 03-11-2011, 05:53 PM   #3
khan1354
LQ Newbie
 
Registered: Mar 2011
Location: uk
Posts: 16

Original Poster
Rep: Reputation: 0
Post Insertion of VBR into NS2.34

I placed vbr.traffic.cc in ns-allinone-2.34/ns-2.34/tools.
Can you please tell me new version steps. And I am using Ubuntu 10.10 OS
then what I have to do please tell me Steps for to insert. Its really urgent to me.


thank you

Last edited by khan1354; 03-11-2011 at 05:56 PM.
 
Old 03-11-2011, 07:02 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Quote:
I placed vbr.traffic.cc in ns-allinone-2.34/ns-2.34/tools/
1) If the file name is 'vbr.traffic.cc', the Makefile must say tools/vbr.traffic.o
..... Not vbr_traffic.o

2) If the file name is 'VBR_traffic.cc', the Makefile must say tools/VBR_traffic.o

I.e. the file names must match, it is either lower case or upper case, both.

VBR is not the same as vbr : In Linux those are totally different names :
Looks like you have two typos. ( vbr.traffic is not vbr_traffic )

..

Last edited by knudfl; 03-11-2011 at 07:10 PM.
 
Old 03-11-2011, 07:26 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Good news : The file compiles perfectly in ns-2.34 : g++-4.4.1 was used.


Name = vbr_traffic.cc

Line 183 in the Makefile : tools/vbr_traffic.o\
 
Old 03-13-2011, 04:53 PM   #6
khan1354
LQ Newbie
 
Registered: Mar 2011
Location: uk
Posts: 16

Original Poster
Rep: Reputation: 0
Post how do i create VBR_traffic.cc

Please can you tell me how do I create VBR-traffic.cc and VBR_traffic.o


please help me the steps
 
Old 03-13-2011, 05:27 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Quote:
how do I create VBR-traffic.cc and VBR_traffic.o
You don't. It is not VBR-traffic.cc, VBR_traffic.o: Never works with wrong spelling.
The two words vbr_traffic.cc, vbr_traffic.o must be equal.
No mix up with "small letters" / "big letters", a hyphen / no hyphen.

The code for vbr_traffic.cc is here
http://www.isi.edu/nsnam/archive/ns-.../msg05051.html
→ → ns-2.34/tools/vbr_traffic.cc : Rename the attachment to vbr_traffic.cc, and use it.

Line 183 in the Makefile : tools/vbr_traffic.o\
Save ns-allinone-2.34/ns-2.34/ns to a new name (ns234), and delete ns.
Run make : a new ns is created. ( ns-dtn.)
..
Attached Files
File Type: txt vbr_traffic.cc.txt (5.0 KB, 71 views)

Last edited by knudfl; 03-13-2011 at 05:45 PM.
 
Old 03-13-2011, 10:06 PM   #8
khan1354
LQ Newbie
 
Registered: Mar 2011
Location: uk
Posts: 16

Original Poster
Rep: Reputation: 0
Post Insertion of VBR code into ns-allionone-2.34

tools/vbr_traffic.o\ I saved file in ns-allinone-2.34/ns-2.34/makefilet then I saved vbr_traffic.cc in ns-allinone-2.34/ns-2.34/tools, then try to save ns as ns234.But I was unable to do that. Actually I dont know how to do. I am totally new to this.

Before that I want to tell you one thing I have installed ns-allinone-2.34 according to below site in that I used cc= gcc-4.3 in ns-allinone-2.34/otcl-1.13/makefile.

http://getch.wordpress.com/2010/10/2...n-ubuntu10-10/

but my gcc version is 4.4.5. please can you clear my doubts.

thanks for help

Last edited by khan1354; 03-13-2011 at 10:27 PM.
 
Old 03-14-2011, 03:03 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
'cd ns-allinone-2.34/ns-2.34/ && mv ns ns234 && make'


It may be a good idea to use g++-4.3 for the 'make' :

Makefile, line 36 : CC = gcc-4.3
Makefile, line 37 : CPP = g++-4.3
 
Old 03-14-2011, 02:00 PM   #10
khan1354
LQ Newbie
 
Registered: Mar 2011
Location: uk
Posts: 16

Original Poster
Rep: Reputation: 0
Post Insertion steps of VBR into NS2.34

After doing all the above steps which told I got the following error. it showing autoconf.h unchanged . please can u help me

sadaq@ubuntu:~/ns-allinone-2.34/ns-2.34$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
No .configure file found in current directory
Continuing with default options...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
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... no
checking if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... yes
checking if STL works without any namespace... no
checking if STL works with namespace std... yes
checking should use STL... yes
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl8.4... -L../lib -ltcl8.4
checking for init.tcl... ../lib/tcl8.4
checking for http.tcl... ../lib/tcl8.4/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.4.18... 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 otcl.h... -I../otcl
checking for libotcl1.13... -L../otcl -lotcl
checking for tclcl.h... -I../tclcl-1.19
checking for libtclcl... -L../tclcl-1.19 -ltclcl
checking for tcl2c++... ../tclcl-1.19
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for libtcldbg... no
checking dmalloc... not requested with --with-dmalloc
checking for perl... /usr/bin
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking net/ethernet.h usability... yes
checking net/ethernet.h presence... yes
checking for net/ethernet.h... yes
checking for main in -lm... yes
checking for bcopy... yes
checking for bzero... yes
checking for fesetprecision... no
checking for feenableexcept... yes
checking for getrusage... yes
checking for sbrk... yes
checking for snprintf... yes
checking return type of random... long
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for u_char... yes
checking for u_int... yes
checking for strtoq... yes
checking for strtoll... yes
checking size of long... 8
checking for strtol... yes
checking for __int64_t... no
checking for long long... yes
checking for int64_t... yes
checking which kind of 64-bit int to use... int64_t
checking system version (for dynamic loading)... Linux-2.6.35-27-generic
checking for dlopen in -ldl... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ns library name... libns.so
checking for struct ether_header... found
checking for struct ether_addr... found
checking for addr2ascii... no
checking for Linux compliant tcphdr... found
checking for BSD compliant tcphdr... not found
checking for socklen_t... yes
checking for main in -lpcap... no
checking to make nse... no
Explicitly disabling static compilation
checking for dlopen in -ldl... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tcl/lib/ns-autoconf.tcl
config.status: creating indep-utils/webtrace-conv/ucb/Makefile
config.status: creating indep-utils/webtrace-conv/dec/Makefile
config.status: creating indep-utils/webtrace-conv/nlanr/Makefile
config.status: creating indep-utils/webtrace-conv/epa/Makefile
config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile
config.status: creating autoconf.h
config.status: autoconf.h is unchanged
 
Old 03-14-2011, 02:17 PM   #11
khan1354
LQ Newbie
 
Registered: Mar 2011
Location: uk
Posts: 16

Original Poster
Rep: Reputation: 0
Post Insertion steps of VBR into NS2.34

When hI was try to make then i got the follwoing and I am sending make file in attachment. please have look at that file

sadaq@ubuntu:~/ns-allinone-2.34/ns-2.34$ make
g++-4.3 -c -Wall -Wno-write-strings -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/home/sadaq/ns-allinone-2.34/tclcl-1.19 -I/home/sadaq/ns-allinone-2.34/otcl -I/home/sadaq/ns-allinone-2.34/include -I/home/sadaq/ns-allinone-2.34/include -I/home/sadaq/ns-allinone-2.34/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o gen/ns_tcl.o gen/ns_tcl.cc
make: g++-4.3: Command not found
make: *** [gen/ns_tcl.o] Error 127
sadaq@ubuntu:~/ns-allinone-2.34/ns-2.34$
Attached Files
File Type: txt Makefile.txt (4.2 KB, 84 views)

Last edited by khan1354; 03-14-2011 at 02:23 PM. Reason: file attachment
 
Old 03-14-2011, 02:21 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Quote:
config.status: autoconf.h is unchanged
Not an error : creating autoconf.h, autoconf.h is unchanged.
 
Old 03-14-2011, 02:23 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
If you haven't got g++-4.3 , I guess you will have to install it ?

sudo apt-get install g++-4.3
 
Old 03-14-2011, 04:51 PM   #14
khan1354
LQ Newbie
 
Registered: Mar 2011
Location: uk
Posts: 16

Original Poster
Rep: Reputation: 0
Post VBR generation

I have done all the above step. and I installed g++-4.3 also.
then i configured then i got same autoconf.h uncganged
and VBR not created like CBR as folllows

sadaq@ubuntu:~/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen$ ls
cbrgen.tcl README setdest.

did you understand my problem or not
please ........... help me
thanks
 
Old 03-14-2011, 05:48 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Quote:
and VBR not created like CBR
With the right text in the Makefile : tools/vbr_traffic.o\

.. You will create ns-2.34/tools/vbr_traffic.o , which is linked into the binary ns.


Quote:
sadaq@ubuntu:~/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen$ ls
cbrgen.tcl README setdest.
What do you mean with this ?
Some objects in indep-utils/ are not created on a 64bits Ubuntu 10.10.
Doesn't matter, unless you want to use these files, but you can do :
In 1) indep-utils/webtrace-conv/dec/Makefile : CC = g++-3.3
2) indep-utils/webtrace-conv/epa/Makefile : CC = g++-3.3
3) indep-utils/webtrace-conv/nlanr/Makefile : CC = g++-3.3
4) indep-utils/webtrace-conv/ucb/Makefile : CC = g++-3.3

..

Last edited by knudfl; 03-14-2011 at 06:08 PM.
 
  


Reply

Tags
cbrgen.tcl


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problem in traffic trace file genration(VBR) in ns2.34 sanviarch Linux - Networking 4 09-15-2010 02:16 PM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 02:44 AM
steps to install ns2-2.31 in fedora7 me_linuxkid Linux - Wireless Networking 0 09-26-2007 03:50 AM
VBR with Lame in Grip RemusX2 Linux - Software 1 03-04-2005 06:55 AM


All times are GMT -5. The time now is 12:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration