LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-26-2013, 07:16 AM   #1
soumyabansal
LQ Newbie
 
Registered: Apr 2013
Posts: 23

Rep: Reputation: Disabled
Problem installing ns-2.33 in ubuntu 12.04


I am facing problem while installing ns-2.33 in ubuntu 12.04 make failed error is coming

locservices/hdr_locs.h:99:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
In file included from locservices/locservice.h:22:0,
from locservices/ls_queued_timer.cc:23:
./mobile/god.h: In member function ‘void DHeap::copy(DHeap*)’:
./mobile/god.h:196:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
locservices/ls_queued_timer.cc: In member function ‘void QueuedTimer:rintQueue()’:
locservices/ls_queued_timer.cc:307:86: error: cast from ‘void*’ to ‘int’ loses precision [-fpermissive]
locservices/ls_queued_timer.cc: In member function ‘void TimerHeap::removeElem(int)’:
locservices/ls_queued_timer.cc:373:12: warning: statement has no effect [-Wunused-value]
locservices/ls_queued_timer.cc: In member function ‘void TimerHeap:rintTable()’:
locservices/ls_queued_timer.cc:472:69: error: cast from ‘void*’ to ‘int’ loses precision [-fpermissive]
make: *** [locservices/ls_queued_timer.o] Error 1
Ns make failed!


this is the error which is coming. plz help i want to patch gpsr code in ns-2.33
 
Old 04-26-2013, 12:05 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

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

Ns2 is for a 32bits OS. However the most functions will work on 64bits.
Install for gpsr-hls, post # 23 here :
http://www.linuxquestions.org/questi...526/page2.html
Install, Ubuntu 12.04, example : export CC=gcc34 CXX=g++34 && ./install

compat-gcc34 64bits https://docs.google.com/file/d/0B7S2...it?usp=sharing

compat-gcc-34-c++ 64bits https://docs.google.com/file/d/0B7S2...it?usp=sharing

-
 
2 members found this post helpful.
Old 04-26-2013, 12:18 PM   #3
soumyabansal
LQ Newbie
 
Registered: Apr 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
sorry for posting the same question repeatedly.
Please allow me to access this link compat-gcc-34-c++ 64bits https://docs.google.com/file/d/0B7S2...it?usp=sharing
 
Old 04-26-2013, 12:26 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Should be OK now.

https://docs.google.com/file/d/0B7S2...it?usp=sharing
 
1 members found this post helpful.
Old 04-26-2013, 12:32 PM   #5
soumyabansal
LQ Newbie
 
Registered: Apr 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
I have downloaded and unpacked but how to install it
sudo apt-get install g++34 ?? please help
 
Old 04-26-2013, 01:17 PM   #6
soumyabansal
LQ Newbie
 
Registered: Apr 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thanks a lot!! I have successfully applied the gpsr patch with ns-2.33 sample example is giving desired output.
Now please tell me how i can visualise the output in nam
 
Old 04-26-2013, 04:34 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

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

Usable simulation examples : 1) $ ns hls.tcl : No nam output.
2) $ ns ssoumayaa.tcl : Not a good nam file, but created is 'fangzhen.nam'.
... Note : ssoumayaa*.tcl depends on changjing1.tcl .
2a) $ nam fangzhen.nam
3) $ ssoumayaa-1.tcl >> fangzhen.nam ( Should be edited to a different out name.)
4) The shell script command : ./run_small.bat

Please read the "gpsr-hls" threads ..
http://www.linuxquestions.org/questions/tags/gpsr-hls/
Examples : gpsr-hls-examples-0113.tar.gz
https://docs.google.com/file/d/0B7S2...it?usp=sharing

( Other GPSR : gpsr-keliu http://www.linuxquestions.org/questi...gs/gpsr-keliu/ )

-

Last edited by knudfl; 04-26-2013 at 04:36 PM.
 
Old 04-26-2013, 09:51 PM   #8
soumyabansal
LQ Newbie
 
Registered: Apr 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
When I am trying to make changes according to gpsr-keliu I am getting this error please help Should I have to do this or I can just copy soumyaa.tcl file in ns2.33/tcl/ and run it ???
 
Old 04-26-2013, 09:55 PM   #9
soumyabansal
LQ Newbie
 
Registered: Apr 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
trace/cmu-trace.cc: In member function `void CMUTrace::format_locs(Packet*, int)':
trace/cmu-trace.cc:958: error: `HDR_LOCS' was not declared in this scope
trace/cmu-trace.cc: In member function `void CMUTrace::format_gpsr(Packet*, int)':
trace/cmu-trace.cc:1008: error: `HDR_LOCS' was not declared in this scope
trace/cmu-trace.cc:1035: error: 'struct hdr_gpsr' has no member named 'mode_'
trace/cmu-trace.cc:1042: error: 'struct hdr_gpsr' has no member named 'mode_'
trace/cmu-trace.cc:1056: error: 'struct hdr_gpsr' has no member named 'mode_'
trace/cmu-trace.cc:1065: error: 'struct hdr_gpsr' has no member named 'mode_'
trace/cmu-trace.cc:1073: error: 'struct hdr_gpsr' has no member named 'mode_'
trace/cmu-trace.cc: In member function `void CMUTrace::format(Packet*, const char*)':
trace/cmu-trace.cc:1547: error: `PT_HLS' was not declared in this scope
trace/cmu-trace.cc:1550: error: `PT_LOCS' was not declared in this scope
make: *** [trace/cmu-trace.o] Error 1

this is the error which I am getting. Please help
 
Old 04-26-2013, 11:37 PM   #10
soumyabansal
LQ Newbie
 
Registered: Apr 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
ssoumayaa.tcl works absolutely fine and nam is also working fine but while executing ./run_small.bat command m getting error

soumya@ubuntu:~/ns-allinone-2.33/ns-2.33/hls/utils/hls-utils$ ./run_small.bat
Run Configuration: -n 100 -s 30 -t 100 -x 2000 -y 2000 -mrd 1 -c 400
Can't open perl script "./namable.pl": No such file or directory
./run_small.bat: line 56: ./ns233-gpsr: No such file or directory
 
Old 04-26-2013, 11:46 PM   #11
soumyabansal
LQ Newbie
 
Registered: Apr 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
And please tell me how to run wireless-gpsr.tcl of KeLiu. please give me the link for the required package for ns-2.33 on 64 bit ubuntu 12.04.

And should I just download it and save it by other name in the same ns-2.33 folder which has been patched with hls patch or install another ns-allinone-2.33

Is there any need to make changes for patching keliu-gpsr with ns-2.33 which is required for running wireless-gpsr.tcl??

please help and thank you so much for ur quick replies.
 
Old 04-27-2013, 01:46 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 10.
Quote:
./run_small.bat: line 56: ./ns233-gpsr: No such file or directory
Sorry. Please use the original script, that you have in ns-2.33/hls/utils/.

# 11 : Have you tried installing the KeLiu files ?
#3 here http://www.linuxquestions.org/questi...-4175448663/#3
This is for a 64bits Ubuntu 11.04 .. 12.04 :
1) cd ns-allinone-2.34/ && tar xvf gpsr-KeLiu-patched-ns234.tar.gz
2) export CC=gcc34 CXX=g++34 && ./install

-
 
1 members found this post helpful.
Old 04-27-2013, 03:19 AM   #13
soumyabansal
LQ Newbie
 
Registered: Apr 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
should I first download ns-allinone-2.34 for it ?
 
Old 04-27-2013, 03:35 AM   #14
soumyabansal
LQ Newbie
 
Registered: Apr 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
I downloaded ns-allinone-2.34 and untar it and downloaded gpsr-KeLiu-patched-ns234.tar.gz and executed commands which u told me in the last post but m getting this make failed err

e-2.34/lib -ltcl8.4 -lXext -lX11 -lnsl -ldl -lm -lm
/usr/bin/ld: i386 architecture of input file `common/main-monolithic.o' is incompatible with i386:x86-64 output
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems


please help
 
Old 04-27-2013, 05:27 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 14 .

OK. That's an error in the gpsr-KeLiu-patched-ns234.tar.gz :
Not all objects were cleaned out at 'make clean'.
And regretfully new objects are not created (to 64bits),
when an object <name>.o is already present.
(Nobody else found that error: They used a 32bits OS.)

cd ns-allinone-2.34/ns-2.34/ && find . -name "*.o"
./common/main-monolithic.o
./indep-utils/cmu-scen-gen/setdest/calcdest.o
./indep-utils/cmu-scen-gen/setdest/rng.o
./indep-utils/cmu-scen-gen/setdest/setdest.o
./indep-utils/webtrace-conv/dec/formsquid.o
./indep-utils/webtrace-conv/dec/formtxt.o
./indep-utils/webtrace-conv/dec/my-endian.o
./indep-utils/webtrace-conv/dec/proxytrace.o
./indep-utils/webtrace-conv/dec/proxytrace2any.o
./indep-utils/webtrace-conv/dec/tr-stat.o
./indep-utils/webtrace-conv/epa/tr-stat.o
./indep-utils/webtrace-conv/nlanr/logparse.o
./indep-utils/webtrace-conv/nlanr/tr-stat.o
./indep-utils/webtrace-conv/ucb/logparse.o

You can do :
1) rm common/main-monolithic.o
2) Do a 'make clean' in indep-utils/cmu-scen-gen/setdest/,
indep-utils/webtrace-conv/ dec/, epa/, nlanr/, ucb/
.. and then run 'make' in ns-2.34.
Or rerun './install' in the top directory.

-
 
1 members found this post helpful.
  


Reply

Tags
gpsr, ns2



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installing ubuntu problem anemone42 Linux - Newbie 7 06-29-2011 09:49 PM
Problem Installing Ubuntu 8.10 edgartech Ubuntu 2 11-05-2008 01:28 AM
Problem installing Ubuntu 8 Juvencio Linux - Newbie 5 07-05-2008 01:30 AM
Installing Ubuntu Problem LinuxNewbie092 Ubuntu 5 03-29-2007 04:09 PM
Problem installing Ubuntu 6.10 BehindUsDidnt Linux - Newbie 1 01-07-2007 11:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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