[SOLVED] Validation failed in NS2.34 in ubuntu 10.04 remix
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.
hi
I have installed Ubuntu 10.04 remix in my new hp mini 110 netbook
and i have succeeded in installing NS2.34 after a so many trials
but now after running ./validate some of the tests have failed. wat does that mean?
is my ns2 installation not successful?
What should be done?
Pls help me
some non-portable tests also failed:
./test-all-srm ./test-all-smac-multihop ./test-all-hier-routing ./test-all-algo-routing ./test-all-mcast ./test-all-vc ./test-all-session ./test-all-mixmode ./test-all-simultaneous ./test-all-webcache ./test-all-mcache ./test-all-plm ./test-all-wireless-tdma ./test-all-satellite to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME
And the 'tk-8.4-lastevent.patch' : cd ns-allinone-2.34/tk8.4.18
&& patch -p0 < tk-8.4-lastevent.patch && exit
cd ns-allinone-2.34/ && ./install && cd ns-2.34 && ./validate
""validate overall report: all tests passed"" : No, I get no errors.
( I have installed ns2 on most Ubuntus. This was a new 10.04 install,
so to be sure, everything worked, I did run all the above.)
Suggest : Start from scratch with a new ns-allinone-2.34.
hi thanks for the support
i tried this
i pasted the tk-8.4-lastevent.patch in ns-allinone-2.34/tk8.4.18
and tried
cd ns-allinone-2.34/tk8.4.18&& patch -p0 < tk-8.4-lastevent.patch && exit
but i got this!!
pavai@pavai-laptop:~/Documents$ cd ns-allinone-2.34/tk8.4.18 && patch -p0 < tk-8.4-lastevent.patch && exit
patching file generic/tk.h
Hunk #1 FAILED at 635.
1 out of 1 hunk FAILED -- saving rejects to file generic/tk.h.rej
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492
Rep:
Post # 2, repeat : Other info : LQ Search → 'Tag Name' = ns2
""1 out of 1 hunk FAILED"" :
Has been answered before, is simply a message telling that a certain
line already was edited. I.e. the patch is for all versions of tk8.4.x(x),
later versions have been fixed for some of the issues.
..
Test output agrees with reference output
All test output agrees with reference output.
Thu Sep 9 13:38:36 IST 2010
These messages are NOT errors and can be ignored:
warning: using backward compatibility mode
This test is not implemented in backward compatibility mode
And the 'tk-8.4-lastevent.patch' : cd ns-allinone-2.34/tk8.4.18
&& patch -p0 < tk-8.4-lastevent.patch && exit
cd ns-allinone-2.34/ && ./install && cd ns-2.34 && ./validate
""validate overall report: all tests passed"" : No, I get no errors.
( I have installed ns2 on most Ubuntus. This was a new 10.04 install,
so to be sure, everything worked, I did run all the above.)
Suggest : Start from scratch with a new ns-allinone-2.34.
Other info : LQ Search → 'Tag Name' = ns2
..
Good luck !
..
where can i find tk-8.4-lastevent.patch it says : No such file or directory
I got this message after validation of ns-allinone-2.1b9a in ubuntu 10
Test output agrees with reference output
All test output agrees with reference output.
These messages are NOT errors and can be ignored:
warning: using backward compatibility mode
This test is not implemented in backward compatibility mode
validate overall report: some tests failed:
./test-all-red
to re-run a specific test, cd tcl/test; ../../ns test-all-TEST-NAME
Notice that some tests in webcache will fail on freebsd when -O is turned on.
This is due to some event reordering, which will disappear when -g is turned on.
I cannot execute any TCL script evn, the NAM is not displaying anything
set i 0
foreach but $buttons {
set name [lindex $but 0]
set opts [lrange $but 1 end]
if {![llength $opts]} {
set capName [string toupper $name 0]
set opts[list -text $capName]
}
eval button[list $w.$name] $opts[list -command[list set tkPriv(button) $name]]
if {[string equal $name $data(-default)]} {
$w.$name configure -default active
}
pack $w.$name -in $w.bot -side left -expand 1 -padx 3m -pady 2m
set underIdx [$w.$name cget -under]
if {$underIdx >= 0} {
set key [string index [$w.$name cget -text] $underIdx]
bind $w <Alt-[string tolower $key]>[list $w.$name invoke]
bind $w <Alt-[string toupper $key]>[list $w.$name invoke]
}
incr i
}
if {[string compare {} $data(-default)]} {
bind $w <FocusIn> {
if {[string equal Button [winfo class %W]]} {
%W configure -default active
}
}
bind $w <FocusOut> {
if {[string equal Button [winfo class %W]]} {
%W configure -default normal
}
}
}
bind $w <Return> {
if {[string equal Button [winfo class %W]]} {
tkButtonInvoke %W
}
}
::tk::PlaceWindow $w widget $data(-parent)
if {[string compare $data(-default) ""]} {
set focus $w.$data(-default)
} else {
set focus $w
}
::tk::SetFocusGrab $w $focus
if {[string equal $tkPriv(initPos) ""]} {
return
}
if {[$w cget -jump]} {
set delta [$w delta [expr {$x - $tkPriv(pressX)}] [expr {$y - $tkPriv(pressY)}]]
tkScrollToPos $w [expr {$tkPriv(initPos) + $delta}]
}
set tkPriv(initPos) ""
}
proc tkScrollByUnits {w orient amount} {
set cmd [$w cget -command]
if {[string equal $cmd ""] || ([string first [string index [$w cget -orient] 0] $orient] < 0)} {
return
}
set info [$w get]
if {[llength $info] == 2} {
uplevel #0 $cmd scroll $amount units
} else {
uplevel #0 $cmd [expr {[lindex $info 2] + $amount}]
}
}
proc tkScrollByPages {w orient amount} {
set cmd [$w cget -command]
if {[string equal $cmd ""] || ([string first [string index [$w cget -orient] 0] $orient] < 0)} {
return
}
set info [$w get]
if {[llength $info] == 2} {
uplevel #0 $cmd scroll $amount pages
} else {
uplevel #0 $cmd [expr {[lindex $info 2] + $amount*([lindex $info 1] - 1)}]
}
}
proc tkScrollToPos {w pos} {
set cmd [$w cget -command]
if {[string equal $cmd ""]} {
return
}
set info [$w get]
if {[llength $info] == 2} {
uplevel #0 $cmd moveto $pos
} else {
uplevel #0 $cmd [expr {round([lindex $info 0]*$pos)}]
}
}
proc tkScrollTopBottom {w x y} {
global tkPriv
set element [$w identify $x $y]
if {[string match *1 $element]} {
tkScrollToPos $w 0
} elseif {[string match *2 $element]} {
tkScrollToPos $w 1
}
set tkPriv(relief) [$w cget -activerelief]
}
proc tkScrollButton2Down {w x y} {
global tkPriv
set element [$w identify $x $y]
if {[string match {arrow[12]} $element]} {
tkScrollButtonDown $w $x $y
return
}
tkScrollToPos $w [$w fraction $x $y]
set tkPriv(relief) [$w cget -activerelief]
update idletasks
$w configure -activerelief sunken
$w activate slider
tkScrollStartDrag $w $x $y
}
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
Doesn't matter. Usually some more tests will fail.
So it is an exceptional good result.
Besides that :
1) It may origin from an error in the test scripts.
2) RED will probably work OK.
3) And : You may not want to run any red-* at all.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492
Rep:
#12 :
Please edit post # 11 to use 'code tags'.
Write [/code] at code end, and [code] at code text start.
Or use the # button in the 'Advanced Editor'.
P.S. : Why use another members old thread for an off-topic subject ?
This thread is about ns-2.34 .
→ → Please use your own thread for the questions.
http://www.linuxquestions.org/questions/linux-newbie-8/problems-when-trying-to-install-ns-allinone-2-1b9a-in-fedora-14-with-the-patch-4175413799/
( You can use the "Report button" to ask a Mod for moving posts #10...#14 to your own thread.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.