insllation of gives trace/cmu-trace.cc:1531:9: error: stray ‘\342’ in program error
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 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
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
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"
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.