LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-23-2012, 03:45 PM   #1
bhushan0710
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Rep: Reputation: Disabled
Unhappy ns2 installation on ubuntu with olsr patch giving following error


Dear Fellas,

i am trying since 3 days to install ns2 along with olsr patch, but no success
ubuntu version 10.10
ns-allinone-2.34
and olsr patch 0.8.8 and even tried 0.2.3

when i make the ns2.34 after patching the olsr, i get the following error :

I./satellite -I./wpan -o trace/cmu-trace.o trace/cmu-trace.cc
trace/cmu-trace.cc:56: fatal error: olsr/OLSR_pkt.h: No such file or directory
compilation terminated.
make: *** [trace/cmu-trace.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
root@ubuntu:/home/bhushan/ns-allinone-2.34#


Kindly help,
 
Old 07-23-2012, 04:40 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Should be something like this :

The "olsr line" in Makefile.in ...
olsr/OLSR.o olsr/OLSR_state.o olsr/OLSR_rtable.o olsr/OLSR_printer.o \
... is about "ns-allinone-2.34/ns-2.34/olsr/" from 'um-olsr-0.8.8.tgz'
http://sourceforge.net/projects/um-olsr/
I.e. : cd ns-allinone-2.34/ns-2.34/ && tar xvf um-olsr-0.8.8.tgz &&
ln -s um-olsr-0.8.8/ olsr
... Then you have ns-allinone-2.34/ns-2.34/olsr/OLSR_pkt.h etc. etc.

Also : Use the dedicated ns-2.34 patch : um-olsr-2.34_v0.8.8.patch
http://masimum.inf.um.es/fjrm/wp-upl...4_v0.8.8.patch
patch -p1 < um-olsr-2.34_v0.8.8.patch

.
 
Old 07-24-2012, 11:49 AM   #3
bhushan0710
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
dear knudf,
i received the following error now,

trace/cmu-trace.cc: In member function ‘void CMUTrace::format(Packet*, const char*)’:
trace/cmu-trace.cc:1709: error: ‘PT_OLSR’ was not declared in this scope
trace/cmu-trace.cc:1710: error: ‘format_olsr’ was not declared in this scope
trace/cmu-trace.cc:1712: error: ‘PT_OLSR’ cannot appear in a constant-expression
trace/cmu-trace.cc:1715: error: ‘PT_OLSR’ cannot appear in a constant-expression
trace/cmu-trace.cc:1718: error: ‘PT_OLSR’ cannot appear in a constant-expression
trace/cmu-trace.cc:1721: error: ‘PT_OLSR’ cannot appear in a constant-expression
make: *** [trace/cmu-trace.o] Error 1
root@ubuntu:/home/bhushan/ns-allinone-2.34/ns-2.34#


the patch was a sucess..
i used
./configure
make distclean
./configure
make
no success.
please guide me.
 
Old 07-24-2012, 11:57 AM   #4
bhushan0710
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
now i patched again sucessfully and error is

race/cmu-trace.cc: In member function ‘void CMUTrace::format(Packet*, const char*)’:
trace/cmu-trace.cc:1788: error: duplicate case value
trace/cmu-trace.cc:1785: error: previously used here
trace/cmu-trace.cc:1791: error: duplicate case value
trace/cmu-trace.cc:1785: error: previously used here
trace/cmu-trace.cc:1794: error: duplicate case value
trace/cmu-trace.cc:1785: error: previously used here
trace/cmu-trace.cc:1797: error: duplicate case value
trace/cmu-trace.cc:1785: error: previously used here
trace/cmu-trace.cc:1800: error: duplicate case value
trace/cmu-trace.cc:1785: error: previously used here
make: *** [trace/cmu-trace.o] Error 1
root@ubuntu:/home/bhushan/ns-allinone-2.34/ns-2.34#

what do you suggest

Last edited by bhushan0710; 07-24-2012 at 11:59 AM.
 
Old 07-25-2012, 06:04 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ubuntu 10.10 , 32bits :
Better start from scratch with a new unpacked ns-allinone-2.34.tar.gz.
Quote:
root@ubuntu:/home/bhushan/ns-allinone-2.34/ns-2.34#
Please do not run the install ( or make ) as root :
Makes it difficult to use the application.
And : 'root' is for administrative tasks only !

cd ns-allinone-2.34/ns-2.34/ && tar xvf um-olsr-0.8.8.tgz &&
ln -s um-olsr-0.8.8/ olsr &&
patch -p1 < um-olsr-2.34_v0.8.8.patch && cd ../ &&
export CC=gcc41 CXX=g++41 && ./install : No errors.

Be aware that the export command is temporary :
gcc / g++ will reset to the default version (4.4.5),
when you exit the terminal.
The ns-2.34/Makefile must have these lines 36 - 37 :
CC = gcc41
CPP = g++41

Installing gcc41-compat / g++41-compat, post # 181 here
http://www.linuxquestions.org/questi...68/page13.html

.

Last edited by knudfl; 07-25-2012 at 06:23 AM.
 
Old 07-25-2012, 10:16 AM   #6
bhushan0710
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
firstly u are awesome!!!
every thing worked like a charm except:xgraph

it says

bhushan@ubuntu:~$ ns example4.tcl
ns: finish: couldn't execute "xgraph": no such file or directory
while executing
"exec xgraph out0.tr out1.tr out2.tr -geometry 400x400 &"
(procedure "finish" line 8)
invoked from within
"finish"
bhushan@ubuntu:~$

couldnt find much related to this issue on the net. please help!!
 
Old 07-25-2012, 12:41 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 6

sudo apt-get install xgraph

.. If you also have a non functional nam : Post #5 here ..
http://www.linuxquestions.org/questi...8/#post4737435


.
 
Old 01-21-2013, 02:00 AM   #8
Ramya Babu
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
How to Patch OLSR in ns2? when it is ubuntu !

hey frds!
Am trying to patch OLSR in NS2. my OS is ubuntu. is there any difference between patching OLSR in windows to patching OLSR in ubuntu?
 
Old 01-21-2013, 04:09 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 8, @Ramya Babu : Welcome to LQ.

OLSR MP-OLSR UM-OLSR ?
(dsr-uu-0.2) ?

Examples : LQ Search → → Tag = olsr , mpolsr

(dsr-uu http://www.linuxquestions.org/questi...elp-me-948339/ )

-
 
  


Reply

Tags
ns2, olsr, um-olsr



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
OLSR patch sukrutha Linux - Newbie 24 05-03-2016 05:51 AM
[SOLVED] ns2.1b9a-gcc32 installation error on Ubuntu 11.04. HELP! haiying7 Linux - Software 6 11-23-2011 01:36 PM
OLSR patch sukrutha Linux - Newbie 2 08-21-2011 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:42 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
Open Source Consulting | Domain Registration