[Ns-developers] Bugs of ns-allinone-2.35-RC7 under cygwin
Tom Henderson
tomh at tomh.org
Tue Nov 9 09:38:45 PST 2010
On Sun, 7 Nov 2010 18:27:05 -0500, huanzhongli huanzhongli
<huanzhongli at gmail.com> wrote:
> Hi all,
>
> I find a fatal bug in
>
ns-allinone-2.35-RC7<http://www.isi.edu/nsnam/dist/release/ns-allinone-2.35-RC7.tar.gz>
> .
> I install it in cygwin and it works well.
> But after I add a new agent and recompile it, ns can not start anymore.
> It shows the following error information:
>
> [code omitted because of length]
> : invalid command name "-*-"
> while executing
> "-*- Mode:tcl"
>
> This is caused by the Tcl scripts ns-packet.tcl in the folder
> ns-2.35\tcl\lib.
> There is two unknown bytes 0XFF 0XFE at the beginning of the file.
> I delete these two bytes, and then the bug is fixed.
>
This seems to me that you may have accidentally edited the first line of
ns-packet.tcl to remove the comment symbol "#". Can you make sure that
your first line reads:
# -*- Mode:tcl; tcl-indent-level:8; tab-width:8; indent-tabs-mode:t -*-
Thank you for testing the ns-2 release candidate. Here is a brief update
on the status. I've not made a release yet since I am aiming to fix all of
the 64-bit issues for those models covered by the regression tests, before
making the release. I am getting close; there is one remaining issue to
fix with the web models that result in divergent traces in 32-bit and
64-bit (due to passing web page pointers to Tcl space and back again). I
expect to get some time to finish that off this month.
- Tom
More information about the Ns-developers
mailing list