NS2 nam error  

I have been bothered by this error while running ns/nam for a long time now. Finally found that tk needed patching :( Here is the error that I got and the solution that helped me fix it. Error:

[root@localhost]# nam: 
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <mousewheel> {</mousewheel>
%W yview scroll [expr {- (%D / 120) * 4}] units
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <mousewheel> {</mousewheel>
%W yview scroll [expr {- (%D)}] units
bind Li..."

And, I got the solution to this on: http://forums.fedoraforum.org/showthread.php?t=206795.

Essentially you need to patch tk8.4.18 with the patches from: http://bugs.gentoo.org/show_bug.cgi?id=225999

Details of how to patch are available at: http://forums.fedoraforum.org/showpost.php?s=a2bb89875669ff26ed61cd371399a517&amp;p=1131049&amp;postcount=3