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 03-21-2011, 06:58 AM   #1
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Rep: Reputation: 28
ns2.30: “LMS_SETUP” instead of “UM_Data, AM_Data, etc


I've installed eurane in ns2.30. I'm trying to simulate how one mobile and five mobiles operate in UTRAN (UMTS). It executes without errors and makes the trace. But when I open the trace.tr files to see the results, I find "LMS_SETUP" messages instead of "UM_Data, AM_Data...". It is supposed to be an error related to a bad instalation of eurane and it is solved doing again:

$ cd ns-allinone-2.30/ns-2.30/
$ make clean
$ make depend
$ make
I've tried it, but it gives no error. The simulation doesn't give me an error, but the traces are incorrect. The file .tcl for one mobile and five mobiles where made by another person and they work.
Can you give me any clue of what is happening?

Thanks

Kind Regards,
Stella

Last edited by unodior; 03-21-2011 at 07:15 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-21-2011, 07:37 AM   #2
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
Please attach "file.tcl".

( The "paper clip button" in the Advanced Editor.)

EDIT : Probably one of the tcl scripts here ?
http://eurane.ti-wmc.nl/eurane/

..

Last edited by knudfl; 03-21-2011 at 07:53 AM.
 
2 members found this post helpful.
Old 03-21-2011, 07:55 AM   #3
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
No, it's not from that page. My teacher gave them to me.
Sorry, I didn't read the valid extensions. They are tcl files, could I send them by mail? I don't want to disturb

Last edited by unodior; 03-21-2011 at 07:59 AM.
 
Old 03-21-2011, 08:00 AM   #4
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
Quote:
I think I've attached them
1) Browse > select file.txt ( Only suffix .txt will do.)
2) Upload

But a link is better.
 
1 members found this post helpful.
Old 03-21-2011, 08:03 AM   #5
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
Ok, I only had to write .txt extension at the end of the name. Sorry
Comments inside the file are in Spanish, sorry. But I don't think you need them
Thank you
Attached Files
File Type: txt umts_am1movil.tcl.txt (3.1 KB, 103 views)
File Type: txt umts_am5mobiles.tcl.txt (2.4 KB, 63 views)

Last edited by unodior; 03-21-2011 at 08:04 AM.
 
Old 03-21-2011, 10:50 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
Spanish : Don't worry, I have "diccionario de dudas y dificultades de la
lengua española", etc. etc. on the shelf.

Worse is : The files don't work ? Or ? ./ns umts_am5mobiles.tcl.txt ( both ) :
Ejecutandose la Simulación....
Simulación Terminada.
... Not Fedora 14, I will try with that ... later.


P.S. : ./ns test_udp_dch.tcl works, when ns-2.33 is compiled with g++34.
( http://eurane.ti-wmc.nl/eurane/test_udp_dch.tcl )

...

Last edited by knudfl; 03-21-2011 at 01:20 PM.
 
1 members found this post helpful.
Old 03-21-2011, 11:23 AM   #7
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
The answer I get is this:
" Simulation is running ... please wait ...
Simulation ended."
And then I open out.trc and it isn't ok. My teacher says it works in her pc, but I've tried it several times and it doesn't work for me.

Thank you very much for trying.

PS: I've checked my version of gcc:gcc versión 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC)
I'm trying to downgrade my version of gcc to 3.4.4

Last edited by unodior; 03-21-2011 at 03:51 PM.
 
Old 03-21-2011, 01:04 PM   #8
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
export CC=gcc34 CXX=g++34 &&
cd ns-allinone-2.30/tk-8.4.11/ && patch -p0 < tk-8.4-lastevent.patch &&
cd ../ns-2.30/ && zcat ns-eurane-111.diff.gz | patch -p1 && cd .. && ./install
&& cd ns-2.30/ && ./ns umts_am1movil.tcl >>> traza_am1.tr : 127 kB ;
./ns umts_am5mobiles.tcl >>> traza_am1.tr : 27-29 MB.
→ → I found the files ( CentOS55), difficult to spot with the unusual name.
Same result on CentOS 5.5, PCLinuxOS2010, Fedora 14 :
The first 51 (am1) / 55 (am5) lines of each "traza_am1.tr" are attached.

( It is a wonder, if you compiled everything with gcc/g++-4.5.1.
But gcc34, g++34 seem to do the trick.)
..
Attached Files
File Type: txt 51-traza_am1.tr.txt (2.5 KB, 35 views)
File Type: txt 55-traza_am5.tr.txt (2.7 KB, 24 views)

Last edited by knudfl; 03-21-2011 at 01:23 PM.
 
1 members found this post helpful.
Old 03-21-2011, 04:03 PM   #9
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
Sorry, I didn't understood what the first line meant.
I've followed the instructions, but when I get to ./install it says: command not found
I've changed to ns-allinone-2.30/ns-2.30
and tried make clean, and it says I have to re-run configure. so I do it. Then I try make clean and this is what I get:

rm -f *.a *.o libtcl* core errs *~ \#* TAGS *.E a.out \
errors tclsh tcltest lib.exp Tcl
cd dltest ; make clean
make[1]: se ingresa al directorio `/home/Stella/ns-allinone-2.30/ns-2.30/dltest'
rm -f *.o config.cache config.log config.status
rm -f lib.exp ../dltest.marker

Then I try make-depend and I get:
make: *** [depend] Error 127

What is wrong?
rm -f *.so

Last edited by unodior; 03-21-2011 at 05:03 PM.
 
Old 03-21-2011, 08:37 PM   #10
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
Sometimes it is a better solution to start from scratch,
when things have gone wrong. I.e. delete everything.

The order of the commands are not important :
When all the patching has been done, you can also do :
1) exit ; 2) cd ns-allinone-2.30/ ; 3) export CC=gcc34 CXX=g++34
4) ./install

'export' http://www.linuxquestions.org/questi...30-a-866370/#6 post #6.

P.S. : 'cd ..' means the same as 'cd ../' , and you can constantly check
your location with the 'pwd' command.

Good luck ! .. ..

..

Last edited by knudfl; 03-21-2011 at 08:45 PM.
 
1 members found this post helpful.
Old 03-22-2011, 04:01 AM   #11
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
Smile

Ok. I'll start from the beginning.
I tried to install fedora 12 in my desk-pc. Windows XP works perfectly. When I inserted the fedora 12 in the screen appeared this message: frequency not supported. I thought it was a good moment to stop. But I haven't given up!
Thank you very much for all your help.
 
Old 03-22-2011, 08:36 AM   #12
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
No difference really between Fedora 14 and Fedora 12, as long as you do
the right commands. It is the same "export CC=gcc34 CXX=g++34" on Fedora 12.

The old Fedora 12 is obsoleted. The 'Long Term Supported' version of Fedora 12:
Scientific Linux SL 6 https://www.scientificlinux.org/ . It's equal to RHEL 6.

Where is it that it says "frequency not supported" ? At install begin ?
Or is it at GUI ( X ) login ?

..
 
1 members found this post helpful.
Old 03-23-2011, 05:22 AM   #13
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
New problems and more fun

Sorry to answer your question now.

On fedora 12, I've tried it this morning and it doesn't give me that error again. Yesterday I tried to install fedora 14, but it says the kernel is too old. I haven't continued yet. I have to do a new partition because it has no free-space. I think fedora 12 can't use the partition windows xp is using, is that right?
I'm downloading the 'Long Term Supported' 6.0, from the page you told me. Thank you.

I've tried to install again eurane in fedora 14 on my laptop . I've followed this steps, as you told me:
export CC=gcc34CXX=g++34
cd ns-allinone-2.30/tk8.4.13
patch -p0 < tk-8.4-lastevent.patch
cd../ns-2.30

Before installing eurane, I tried:

make clean
make depend
make
(it gives me an error with make)

I tried to follow:
zcat ns-eurane-1.12diff.gz|patch -p1

It seemed to work. BUT when I try
./install

It gave me this error:

.gnu.linkonce.t._ZN11taskPending10taskStatusEh' referenced in section `.rodata' of wpan/p802_15_4mac.o: defined in discarded section `.gnu.linkonce.t._ZN11taskPending10taskStatusEh' of wpan/p802_15_4mac.o
collect2: ld devolvió el estado de salida 1
make: *** [ns] Error 1
Ns make failed!

I'm not sure about what I'm doing bad. T
I can't understand it.

I've changed nam 1.12 for the one you gave me: nam-1.14. Still the same error

Kind regards,
Stella

Last edited by unodior; 03-23-2011 at 06:21 AM.
 
Old 03-23-2011, 07:07 AM   #14
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
Be aware that the command 'export CC=gcc34 CXX=g++34' is temporary.
Will reset to g++ ( g++-4.5.1 ) if you exit the terminal.

Please have a look into the Makefile. Must say : CC = gcc34 , CPP = g++34.


By the way : 'make depend' is not required. I have never used it in ns2.

..
 
1 members found this post helpful.
Old 03-23-2011, 07:19 AM   #15
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
Thanks
Yes, I understood it was temporary. But I haven't exit the terminal during installation. I've done it twice following your steps.
I'm gonna have a look at make file.

About make depend, my teacher told me to use it. I didn't know if it was necessary. Sorry

My makefile:

# The following will be redefined under Windows (see WIN32 lable below)
CC = gcc34
CPP = g++34
LINK = $(CPP)
MKDEP = ./conf/mkdep
TCLSH = /home/Stella/ns-allinone-2.30/bin/tclsh8.4
TCL2C = ../tclcl-1.18/tcl2c++
AR = ar rc $(BLANK)

RANLIB = ranlib
INSTALL = /usr/bin/install -c
LN = ln
TEST = test
RM = rm -f
MV = mv
PERL = /usr/bin/perl

During installation process I've seen it uses g++34.

I've asked my teacher, but she doesn't know what to do.
I've tried to start from the scratch twice, but both times I get the same error.
I don't know what else to do.
What do you recommend? Start from the scratch again? Perhaps the third is the good one ..

Last edited by unodior; 03-23-2011 at 07:30 AM.
 
  


Reply

Tags
eurane, ns2, ns2-eurane, ns2-umts


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
Help with NS2 MounaRM Linux - Networking 4 05-17-2021 12:42 PM
help in ns2 tootz Linux - Software 1 02-17-2011 03:04 AM
[SOLVED] NS2 sayaleen Linux - Newbie 2 12-08-2010 10:21 AM
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 12:15 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