Linux - SoftwareThis 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
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.
Hi all!
I believe some of you are familiar with the following error
Code:
(_o14 cmd line 1)
invoked from within
"_o14 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"_o14 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn) } { incr i } {
set node_($i) [$ns node]
}"
(file "wrls-crumor-a30node.tcl" line 66)
well the error appear after i successfully added a new routing protocol in ns-2.34, when i try the tcl script, it gives me this error. i google a bit and found that the question has been asked before but with no real answer. the tcl somehow doesnt compile inn the librairy! why? i cansolve this problem by doing " sudo make install", but i will get a "segmentation fault (core dumped)" error if i type any command (this is far worse than the previous error). so has anyone being able to find a proper solution or a good understanding to that error?
Thanks in advance for your time and help!
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
That's a generic output ( Or lookalike ) from any error.
I.e. the text with the real error is not shown in post #1.
You will have to show this : $ ns wrls-crumor-a30node.tcl ,
... followed by the next lines, until the above text.
( And please do not repeat the post #1 error text.)
hi knudfi
this is the error as you asked but am afraid it is the full error
Code:
foxyrow@foxyrow-HP-Compaq-dc5800-Small-Form-Factor:~/ns-allinone-2.34/ns-2.34/lscrumor$ ns wrls-crumor-a30node.tcl
num_nodes is set 31
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
(_o14 cmd line 1)
invoked from within
"_o14 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"_o14 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn) } { incr i } {
set node_($i) [$ns node]
}"
(file "wrls-crumor-a30node.tcl" line 66)
Hi all
just to close this thread, it has been a while since i post it but i solved the problem. if you encounter this problem it is probably in the file ns2.xx/tcl/lib/ns-lib.tcl that you have to look. it could be a spelling mistake or a wrong instanciation of procedure. i dont recall what was the problem in my case but after correcting the ns-lib.tcl file and saving everything it went well.
hope it helps.
Hi all
just to close this thread, it has been a while since i post it but i solved the problem. if you encounter this problem it is probably in the file ns2.xx/tcl/lib/ns-lib.tcl that you have to look. it could be a spelling mistake or a wrong instanciation of procedure. i dont recall what was the problem in my case but after correcting the ns-lib.tcl file and saving everything it went well.
hope it helps.
can you please mention where you made changes in ns-lib.tcl file, i am getting same problem , it would be helpful if you upload ns-lib.tcl file
Originally Posted by r0w225 View Post
Hi all
just to close this thread, it has been a while since i post it but i solved the problem. if you encounter this problem it is probably in the file ns2.xx/tcl/lib/ns-lib.tcl that you have to look. it could be a spelling mistake or a wrong instanciation of procedure. i dont recall what was the problem in my case but after correcting the ns-lib.tcl file and saving everything it went well.
hope it helps.
hello r0w225,
Please upload the modified the ns-lib.tcl file.
Hi all
just to close this thread, it has been a while since i post it but i solved the problem. if you encounter this problem it is probably in the file ns2.xx/tcl/lib/ns-lib.tcl that you have to look. it could be a spelling mistake or a wrong instanciation of procedure. i dont recall what was the problem in my case but after correcting the ns-lib.tcl file and saving everything it went well.
hope it helps.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.