[ns] ns-2.28 and gcc 4.0.1 (current version in Fedora Core 4)
Mathieu Lacage
Mathieu.Lacage at sophia.inria.fr
Thu Sep 22 04:11:21 PDT 2005
On Thu, 2005-09-22 at 11:56 +0200, Sebastian Lempert wrote:
> Tcl/Tk 8.4.5
> OTcl 1.9
> TclCL, CVS (2005-09-21)
> ns-2, daily snapshot (2005-09-20)
> Fedora Core 4 (32-Bit), GCC 4.0.1
>
> There are only two things left:
>
> 1. ns-2 compiles with the "four" following warnings:
uh oh. Please, run your compiler in the C locale. I don't read german
compiler warnings fluently :/
LANG=C make should do it although I have not tried.
> ...
> sctp/sctp.cc: In member function »virtual void SctpAgent::sendmsg(int,
> const char*)«:
> sctp/sctp.cc:4313: Warnung: format »%ld« erwartet Typ »long int«, aber
> Argument 4 hat Typ »unsigned int«
> sctp/sctp.cc:4332: Warnung: format »%ld« erwartet Typ »long int«, aber
> Argument 4 hat Typ »unsigned int«
> ...
>
> ...
> nix/nixnode.cc: In member function »virtual NixPair_t
> NixNode::GetNix(nodeid_t)«:
> nix/nixnode.cc:206: Warnung: format »%ld« erwartet Typ »long int«, aber
> Argument 4 hat Typ »size_t«
> nix/nixnode.cc: In member function »virtual nodeid_t
> NixNode::GetNeighbor(Nix_t, NixVec*)«:
> nix/nixnode.cc:226: Warnung: format »%ld« erwartet Typ »long int«, aber
> Argument 3 hat Typ »size_t«
> ...
>
> ...
> routealgo/rlookup.cc: In static member function »static void
> RLookup::Analyze(RoutingVec_t&, RoutingVec_t&, nodeid_t&, nodeid_t&,
> nodeid_t, nodeid_t&, nodeid_t&)«:
> routealgo/rlookup.cc:38: Warnung: format »%ld« erwartet Typ »long int«,
> aber Argument 2 hat Typ »size_t«
> routealgo/rlookup.cc: In member function »virtual void
> BMLookup::Populate(RoutingVec_t&, RoutingVec_t&, nodeid_t, nodeid_t,
> nodeid_t, nodeid_t)«:
> routealgo/rlookup.cc:246: Warnung: format »%ld« erwartet Typ »long int«,
> aber Argument 2 hat Typ »size_t«
> ...
I think I fixed already the 3 above in cvs.
>
> ...
> proxytrace2any.cc:20: Warnung: nicht lokale Variable »<anonymous enum>
> InputFormat« verwendet anonymen Typen
> proxytrace2any.cc:21: Warnung: nicht lokale Variable »<anonymous enum>
> OutputFormat« verwendet anonymen Typen
> ...
Never seen this one.
>
> 2. When running "validate" I get the following results on my machine
> (Athlon 64, Fedora Core 4 32-Bit):
ah. interesting. I did not try the 32 bit mode of a 64 bit machine.
> validate overall report: some tests failed:
> ./test-all-tcpHighspeed ./test-all-red ./test-all-cbq ./test-all-xcp
Of course, if you could investigate the why behind these warnings, it
would be nice.
something like:
cd tcl/test
./test-all-tcpHighspeed QUIET
look at the output. detect the first failure and run the suggested diff
command. "diff -u" output is easier to read than "diff" output.
Mathieu
--
More information about the Ns-users
mailing list