LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2012, 05:00 AM   #1
monikagoyal
LQ Newbie
 
Registered: Apr 2012
Location: chandigarh(india)
Posts: 14

Rep: Reputation: Disabled
Smile 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
 
Old 04-10-2012, 03:08 PM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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
 
1 members found this post helpful.
Old 04-11-2012, 12:14 AM   #3
monikagoyal
LQ Newbie
 
Registered: Apr 2012
Location: chandigarh(india)
Posts: 14

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-11-2012, 05:14 AM   #4
monikagoyal
LQ Newbie
 
Registered: Apr 2012
Location: chandigarh(india)
Posts: 14

Original Poster
Rep: Reputation: Disabled
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

Last edited by monikagoyal; 04-11-2012 at 05:16 AM.
 
Old 04-11-2012, 06:40 AM   #5
masju
Member
 
Registered: Mar 2012
Location: Kolkata
Distribution: CentOS
Posts: 38

Rep: Reputation: Disabled
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.
 
Old 04-11-2012, 10:27 AM   #6
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
#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

.
 
Old 04-11-2012, 02:05 PM   #7
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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.

Last edited by Satyaveer Arya; 04-11-2012 at 02:10 PM.
 
Old 04-12-2012, 02:37 AM   #8
masju
Member
 
Registered: Mar 2012
Location: Kolkata
Distribution: CentOS
Posts: 38

Rep: Reputation: Disabled
#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?
 
Old 04-12-2012, 03:49 AM   #9
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
# 8

No Internet connection ?

All the 20,000 Fedora 16 packages are here :
32bits http://dl.fedoraproject.org/pub/fedo...6/os/Packages/
 
Old 04-12-2012, 05:19 AM   #10
masju
Member
 
Registered: Mar 2012
Location: Kolkata
Distribution: CentOS
Posts: 38

Rep: Reputation: Disabled
#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.
 
Old 04-12-2012, 12:20 PM   #11
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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.
 
Old 04-12-2012, 01:01 PM   #12
masju
Member
 
Registered: Mar 2012
Location: Kolkata
Distribution: CentOS
Posts: 38

Rep: Reputation: Disabled
#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)
 
Old 04-12-2012, 01:07 PM   #13
masju
Member
 
Registered: Mar 2012
Location: Kolkata
Distribution: CentOS
Posts: 38

Rep: Reputation: Disabled
#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
 
Old 04-12-2012, 01:27 PM   #14
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
masju,

The error simply shows that you need to install the libc.so package. So, these all are dependencies need to be install.
 
Old 04-12-2012, 01:42 PM   #15
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
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/ .

.
 
  


Reply

Tags
gpsr, ns2


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
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 05:53 PM
Need some ns2 code Raijin Linux - Newbie 3 11-15-2011 05:53 PM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 03:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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