LinuxQuestions.org
Help answer threads with 0 replies.
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 01-04-2013, 02:34 AM   #1
rakeshpanchiwala
LQ Newbie
 
Registered: Dec 2012
Posts: 12

Rep: Reputation: Disabled
insllation of gives trace/cmu-trace.cc:1531:9: error: stray ‘\342’ in program error


Hello sir,

I want to install leach in ns2.34 in ubuntu12.04 but i found error like...

trace/cmu-trace.cc:1531:9: error: stray ‘\342’ in program
trace/cmu-trace.cc:1531:9: error: stray ‘\200’ in program
trace/cmu-trace.cc:1531:9: error: stray ‘\230’ in program
trace/cmu-trace.cc:1531:9: error: stray ‘\342’ in program
trace/cmu-trace.cc:1531:9: error: stray ‘\200’ in program
trace/cmu-trace.cc:1531:9: error: stray ‘\231’ in program
trace/cmu-trace.cc:1535:9: error: stray ‘\342’ in program
trace/cmu-trace.cc:1535:9: error: stray ‘\200’ in program
trace/cmu-trace.cc:1535:9: error: stray ‘\230’ in program
trace/cmu-trace.cc:1535:9: error: stray ‘\342’ in program
trace/cmu-trace.cc:1535:9: error: stray ‘\200’ in program
trace/cmu-trace.cc:1535:9: error: stray ‘\231’ in program
trace/cmu-trace.cc:1539:9: error: stray ‘\342’ in program
trace/cmu-trace.cc:1539:9: error: stray ‘\200’ in program
trace/cmu-trace.cc:1539:9: error: stray ‘\230’ in program
trace/cmu-trace.cc:1539:9: error: stray ‘\342’ in program
trace/cmu-trace.cc:1539:9: error: stray ‘\200’ in program
trace/cmu-trace.cc:1539:9: error: stray ‘\231’ in program
make: *** [trace/cmu-trace.o] Error 1

So please help me to solve my problem to run leach..
Please send me reply as quick as possible.

Last edited by rakeshpanchiwala; 01-04-2013 at 04:27 AM.
 
Old 01-04-2013, 02:58 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Dear sir, you have invalid characters in your file at the listed positions.
 
Old 01-04-2013, 04:03 AM   #3
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
Welcome to LQ.

How about some more information ?
Is it about LEACH for ns-2.34 ? Or ns-2.27 ? Ubuntu 12.04 - 32 ?
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html

The easy way is to use a dedicated gcc41 / g++41 ( ver. 4.1.2 ).
Example, post # 18 here ..
http://www.linuxquestions.org/questi...022/page2.html

.
 
Old 03-16-2013, 02:14 AM   #4
chandanratnani
LQ Newbie
 
Registered: Jan 2013
Posts: 10

Rep: Reputation: Disabled
make error in ns2.29

@ knudfl

hello sir
I am installing broadcasting protocol in ns2.29 & ubuntu10.04
I got this error....please help

trace/cmu-trace.cc:1: error: stray ‘\357’ in program
trace/cmu-trace.cc:1: error: stray ‘\273’ in program
trace/cmu-trace.cc:1: error: stray ‘\277’ in program
make: *** [trace/cmu-trace.o] Error 1
 
Old 03-16-2013, 02:32 AM   #5
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
# 4 .
Quote:
I am installing broadcasting protocol in ns2.29 & ubuntu10.04
Which "broadcasting protocol" is it about ? ? A file name please.

First : "ns-allinone-2.29.3.tar.gz" must be used :
Is an updated version, to use gcc-4.1 / g++-4.1 .
Install : export CC=gcc-4.1 CXX=g++-4.1 && ./install

If you then do changes in ns-allinone-2.29/ns-2.29/ after the install,
and you do a reconfigure, please use : export CXX=g++-4.1 && ./configure
... and make sure that ns-2.29/Makefile has : CPP = g++-4.1


-

Last edited by knudfl; 03-16-2013 at 02:40 AM.
 
Old 03-16-2013, 04:05 AM   #6
chandanratnani
LQ Newbie
 
Registered: Jan 2013
Posts: 10

Rep: Reputation: Disabled
@ knudfl

I am adding multihop broadcast protocol for VANET.
I have implemented it in ns2.29 , gcc-4.1 an ubuntu10.04
when I make change to some file and do make i am getting below error

change made by me are as :ns-allinone2.29/ns2.29/

/common/packet.h
- add inside packet_t
PT_BROADCASTBASE,
before PT_NTYPE

- add inside p_info class
name_[PT_BROADCASTBASE]="BroadcastMSG";
before_[PT_NTYPE]="undefined";

/common/ns-process.h
- add inside AppDataType
BBCAST_DATA,
before ADU_LAST

/tcl/lib/ns-packet.tcl
- add in the foreach prot
BroadcastBase
at the end

/trace/cmu-trace.cc
- in the void CMUTrace::format(Packet* p, const char *why) function
add inside the inner case:
case PT_BROADCASTBASE:
format_msg(p, offset);
break;

/tcl/lib/ns-default.tcl
- add
Application/BroadcastbaseApp set bmsg-interval_ 15
Application/BroadcastbaseApp set bsize_ 100


/broadcast/
- create folder and copy:
BroadcastbaseAgent.cc BroadcastbaseAgent.h
BroadcastbaseApp.cc BroadcastbaseApp.h
bbcast-packet.cc bbcast-packet.h

/Makefile
- inside OBJECT_CC add file depends :
broadcast/bbcast-packet.o
broadcast/BroadcastbaseAgent.o
broadcast/BroadcastbaseApp.o

Now you can run:
- make clean
- make depend
- make
in the ns2 root directory

start simulation:
- ns broadcast.tcl

error :

root@ubuntu:~# ns
ns:
[code omitted because of length]
: invalid command name "Application/BroadcastbaseApp"
while executing
"Application/BroadcastbaseApp set bmsg-interval_ 15"
 
Old 03-16-2013, 05:39 AM   #7
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
# 6 .
Quote:
I am adding multihop broadcast protocol for VANET.
Please provide a link to the instructions you have used.


Quote:
[code omitted because of length]
: invalid command name "Application/BroadcastbaseApp"
Something is wrong with the code that you compiled into the executable 'ns'.

-
 
Old 03-16-2013, 05:45 AM   #8
chandanratnani
LQ Newbie
 
Registered: Jan 2013
Posts: 10

Rep: Reputation: Disabled
@ knudfl
fastbroadcast protocol given on this page..

http://www.math.unipd.it/~cpalazzi/fastbroadcast.html
 
Old 03-16-2013, 08:06 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 : OK, fastbroadcast.zip
http://www.math.unipd.it/~cpalazzi/r...tbroadcast.zip

I have made up a new fastbroadcast package, all the edited files
+ a Makefile.in : fastbroadcast-ns229.patch.tar.gz
Link https://docs.google.com/file/d/0B7S2...it?usp=sharing

So it's quite easy to build an ns-2.29.3 with the 'fastbroadcast' now:
cd ns-allinone-2.29/ ; tar xvf fastbroadcast-ns229.patch.tar.gz ;
export CC=gcc-4.1 CXX=g++-4.1 && ./install

Ubuntu 10.04, 32bits (i686) :
No errors. $ ns : OK. $ cd fastbroadcast/ ; $ ./start.sh : OK,
runs 5 - 10 minutes, and creates a lot of files, 42 times *.eps, etc.

-

Last edited by knudfl; 03-16-2013 at 09:24 AM.
 
1 members found this post helpful.
Old 03-16-2013, 11:59 AM   #10
chandanratnani
LQ Newbie
 
Registered: Jan 2013
Posts: 10

Rep: Reputation: Disabled
@knudfl

thank you very much knudfl...it's working...
I need graph.. what i have to do to plot this graph..as gnuplot not found error comes..

in terminal :

plotting data ...
./start0.sh: 27: gnuplot: not found
./start0.sh: 37: gnuplot: not found
./start0.sh: 47: gnuplot: not found
./start0.sh: 57: gnuplot: not found
./start0.sh: 67: gnuplot: not found
./start0.sh: 77: gnuplot: not found
./start0.sh: 87: gnuplot: not found

Last edited by chandanratnani; 03-16-2013 at 01:15 PM.
 
Old 03-16-2013, 01:46 PM   #11
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
# 10.

...... So why not install 'gnuplot' ? ?

The package name is : gnuplot
http://packages.ubuntu.com/lucid/gnuplot

-
 
1 members found this post helpful.
Old 03-26-2013, 01:40 AM   #12
chandanratnani
LQ Newbie
 
Registered: Jan 2013
Posts: 10

Rep: Reputation: Disabled
@ knudfl

hello sir
can i install this same patch of fastbroadcast in ns2.34 ?
 
Old 03-26-2013, 12:39 PM   #13
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
# 12 .

Why do you want to install fastbroadcast in ns-2.34 ? ?
 
Old 03-27-2013, 02:27 AM   #14
chandanratnani
LQ Newbie
 
Registered: Jan 2013
Posts: 10

Rep: Reputation: Disabled
@ knudfl

hello sir

which mobility simulator works with ns2.29?

I have to give mobility to node for fastbroadcast protocol.

please help me

Last edited by chandanratnani; 04-03-2013 at 12:29 AM.
 
Old 04-24-2013, 11:59 PM   #15
wahidahpsp@yahoo.com
LQ Newbie
 
Registered: Jan 2013
Location: Penang, Malaysia
Posts: 4

Rep: Reputation: Disabled
Hi!
I compiled the fastbroadcast protocol in NS2.35 and Ubuntu 12.04.

I'm sorry, I had installed this version first, then later I found out about Fastbroadcast.

Referring to the above replies of you on the posted question, does it mean Fastbroadcast cannot be run under the new version? I tried to compile it, but error occurs as below :

noises car 5 src node 399
num_nodes is set 400
INITIALIZE THE LIST xListHead
invalid command name "Agent/Broadcastbase"
while executing
"Agent/Broadcastbase create _o30 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/Broadcastbase"
(procedure "create_nodes" line 13)
invoked from within
"create_nodes"
(file "broadcast.tcl" line 135)

If the only way to solve this error is to install the ns2.29, then I have to uninstall the ns2.35. Is it the right way? Uninstall the current ubuntu and ns version and install the dedicated version for fastbroadcast?

Thank you very much.
 
1 members found this post helpful.
  


Reply

Tags
fastbroadcast, ns2, ns2-broadcast



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
problem in modifying cmu-trace.cc file in ns2.34 avinash20 Programming 3 09-12-2012 06:06 AM
Sir, While installing ns2.34 on fedora 16 got the error : trace/cmu-trace.cc 1327:22 jeevanpinto Linux - Newbie 2 06-28-2012 03:35 AM
end trace error mistertylersmith Linux - Newbie 1 02-12-2009 09:55 AM
How to trace and disable the HTTP TRACE method in Apache 1.3.33 with FreeBSD? SomnathG Linux - Security 1 11-11-2008 09:41 AM
How to trace the error of an iptables setting yat Linux - Security 2 07-18-2004 07:51 AM

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

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