LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Insertion steps of VBR into NS2.34 (https://www.linuxquestions.org/questions/linux-newbie-8/insertion-steps-of-vbr-into-ns2-34-a-868010/)

khan1354 03-11-2011 04:20 PM

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

knudfl 03-11-2011 04:45 PM

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.

..

khan1354 03-11-2011 04:53 PM

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

knudfl 03-11-2011 06:02 PM

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 )

..

knudfl 03-11-2011 06:26 PM

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\

khan1354 03-13-2011 03:53 PM

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

knudfl 03-13-2011 04:27 PM

1 Attachment(s)
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.)
..

khan1354 03-13-2011 09:06 PM

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

knudfl 03-14-2011 02:03 AM

'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

khan1354 03-14-2011 01:00 PM

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

khan1354 03-14-2011 01:17 PM

Insertion steps of VBR into NS2.34
 
1 Attachment(s)
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$

knudfl 03-14-2011 01:21 PM

Quote:

config.status: autoconf.h is unchanged
Not an error : creating autoconf.h, autoconf.h is unchanged.

knudfl 03-14-2011 01:23 PM

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

sudo apt-get install g++-4.3

khan1354 03-14-2011 03:51 PM

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

knudfl 03-14-2011 04:48 PM

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

..


All times are GMT -5. The time now is 02:59 PM.