LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Code of GPSR for ns2.33 or ns2.35 (http://www.linuxquestions.org/questions/linux-software-2/code-of-gpsr-for-ns2-33-or-ns2-35-a-938857/)

monikagoyal 04-09-2012 06:00 AM

Code of GPSR for ns2.33 or ns2.35
 
Hi all
I m new to ns2. i m using ns2.35 on fedora 14. I want to implement GPSR protocol. I found the patch of gpsr for ns2.33. I've tried it on ns2.33 bt its not working.
i m getting error like:
patch: **** rejecting target file name with ".." component: ../ns-2.33-hls_working/ns-2.33/common/agent.h
patch: **** rejecting target file name with ".." component: ../ns-2.33-hls_working/ns-2.33/Makefile

Plz anybody help me with the running code for ns2.33 or ns2.35.
It'll be a great help.
Thanks in advance

Satyaveer Arya 04-10-2012 04:08 PM

Monika,

You can checkout these links, maybe it can help you:
http://www.cs.binghamton.edu/~kliu/r...ode/index.html
http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch

monikagoyal 04-11-2012 01:14 AM

I have checked both the links.
But the codes are giving errors.

I have created binaries by make.

But the tcl file is generating lots of errors.

monikagoyal 04-11-2012 06:14 AM

hi

Problem is solved
Patch of ns2.33 was implemented successfully.
hls.tcl file is running as required.
Now i have to analyse it.
Does anyone have analysed this file.
I have awk file to generate throughput and end to end delay bt both are not working for this patch.
Hope someone must have done this.
Plz help

Thanks Satyaveer Arya

masju 04-11-2012 07:40 AM

Hi all,

can you help me?
I am installing ns-2.33 in my machine with fedora-16 as os. I am installing from ns-allinone-2.33 package. But it is came out giving error like:
mac/mac-802_11Ext.cc:1161:35: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11Ext.cc:1161:35: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11Ext.cc: In member function ‘void RXC::setRXCState(RXCState)’:
mac/mac-802_11Ext.cc:1246:28: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11Ext.h: In member function ‘u_int32_t PHY_MIBExt::getHdrLen11()’:
mac/mac-802_11Ext.h:177:3: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [mac/mac-802_11Ext.o] Error 1
Ns make failed!
please help me.

knudfl 04-11-2012 11:27 AM

#5 , @masju.

Fedora : # yum install compat-gcc-34-c++


Please start from scratch with a new unpacked ns-allinone-2.33.tar.gz :

cd ns-allinone-2.33/ && export CC=gcc34 CXX=g++34 && ./install

.

Satyaveer Arya 04-11-2012 03:05 PM

Hi Monika,

You can download the package from here, see if it helps you: https://docs.google.com/file/d/0B7S2...hQQ/edit?pli=1

You can follow this link also: http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch if it helps you.

masju 04-12-2012 03:37 AM

#6 @knudfl
Dear knudfl,
In my fedora-16 machine when I have given command like:
[mas@masju ~]$ su
Password:
[root@masju mas]# yum install compat-gcc-34-c++
Loaded plugins: langpacks, presto, refresh-packagekit
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora.

I am getting this error.
Please tell me what to do now?

knudfl 04-12-2012 04:49 AM

# 8

No Internet connection ?

All the 20,000 Fedora 16 packages are here :
32bits http://dl.fedoraproject.org/pub/fedo...6/os/Packages/

masju 04-12-2012 06:19 AM

#8 @knudfl

I am sorry actually I went for lunch. Lot of thanks for your response.
Now should I install the gcc ver 3.4 from your given link.

Satyaveer Arya 04-12-2012 01:20 PM

Quote:

Now should I install the gcc ver 3.4 from your given link.
Sure, the link given by knudfl is good and you can download the package from that link and install the package.

masju 04-12-2012 02:01 PM

#11 @Satyaveer

I downloaded that package and tried to install but it has given the error:
compat-gcc-34-c++-3.4.6-22.fc15.i686 requires libc.so.6(GLIBC_2.1)
compat-gcc-34-c++-3.4.6-22.fc15.i686 requires compat-gcc-34 = 3.4.6-22.fc15
compat-gcc-34-c++-3.4.6-22.fc15.i686 requires libc.so.6(GLIBC_2.0)
compat-gcc-34-c++-3.4.6-22.fc15.i686 requires libc.so.6(GLIBC_2.11)
compat-gcc-34-c++-3.4.6-22.fc15.i686 requires libc.so.6(GLIBC_2.2)
compat-gcc-34-c++-3.4.6-22.fc15.i686 requires libc.so.6
compat-gcc-34-c++-3.4.6-22.fc15.i686 requires libc.so.6(GLIBC_2.3)

masju 04-12-2012 02:07 PM

#11 @satyaveer,

Finally I tried to installed ns-2.33 and anyhow installed successfully and PATH has been set according to the instructions obtained. Then I validated ns-2.33. After that I added the patch and run ./configure, make clean and make command. After this I run simple-mipv6.tcl and got the trace and nam files. When I tried to execute nam file it has given command not found. Then I run ./configure and make commands in the directory nam-1.13. During make it has given the error like:
nam_stream.o: In function `NamStreamCompressedFile::NamStreamCompressedFile(char const*)':
nam_stream.cc:(.text+0x764): undefined reference to `gzopen'
nam_stream.o: In function `NamStreamCompressedFile::gets(char*, int)':
.....................................................................
nam_stream.o: In function `NamStreamCompressedFile::read(char*, int)':
nam_stream.cc:(.text+0x959): undefined reference to `gzread'
collect2: ld returned 1 exit status
Will you please help me to solve this.
with thanks

Satyaveer Arya 04-12-2012 02:27 PM

masju,

The error simply shows that you need to install the libc.so package. So, these all are dependencies need to be install.

knudfl 04-12-2012 02:42 PM

About # 12, # 14 : (g)libc is your OS, and is always installed.
Do not change anything. Or you will have to reinstall the OS.

Is you architecture 32bits (i686) ? The command 'uname -m' will show.
The compat-gcc packages must be for the right architecture.
64bits http://dl.fedoraproject.org/pub/fedo...4/os/Packages/


Post # 13 : Nam is a separate application. Any nam can be used.
The best version : 1.14
32bits https://docs.google.com/open?id=0B7S...k4NGI5NzliM2Ux
64bits https://docs.google.com/open?id=0B7S...NiYjY0ODE1YmQw
Unpack nam-1.14.<arch>.tar.gz, and copy 'nam' to /usr/local/bin/ .

.


All times are GMT -5. The time now is 10:22 PM.