[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] Validation failed.




I have also solved the validation problem finally, but without using
Morten's method. (Thank's anyway.)
The key is that I found out that there already exists perl 5.6.0 in RedHat
7.2, after rebuilt my entire linux system.
And, without installing another perl (from the ns-2 website), all the
validation tests passed successfully.
The prior validation problem may be a result of a bad perl installation.

hjj

----- Original Message -----
From: Morten Schlaeger <[email protected]>
To: hao wang <[email protected]>
Cc: <[email protected]>; <[email protected]>
Sent: Friday, January 04, 2002 8:37 PM
Subject: Re: [ns] Validation failed.


> after running into the same problem here is what I did to getrc
>
>
> diff getrc getrc.old
> 30,31c30,31
> < use Getopt::Std;
> < (&getopts('bo:s:d:ef:') && $opt_s != -1) || usage;
> ---
> > require 'getopts.pl';
> > (&Getopts('bo:s:d:ef:') && $opt_s != -1) || usage;
>
> The subroutine Getopts does not set the opt_? variables as expected.
>
> Hope this helps,
>
> Morten
> hao wang wrote:
> >
> > Hi there,
> >
> > I just installed ns-2.1b8 on Sun Solaris and run the ./validate . Many
> > tests did not pass. I run those tests seperetly and find out that they
> > have the similar error like the following one.
> >
> > -----------------------------------
> > ns: _o4 cleanupAll sack1: usage: getrc -s node1 [options] [trace
file...]
> >
> > get trace files that match certain criteria related to source, dest or
> > flow-id
> >
> > options:
> >         -o outfile      write subset trace to output file
> >         -b              bi-directional, i.e. gather lines
> >         -d node2        specify destination
> >         -f flowid       specify flow id
> >         -e              get event-trace
> >     while executing
> > "exec $PERL ../../bin/getrc -s 2 -d 3 all.tr |  $PERL
../../bin/raw2xg -s
> > 0.01 -m 90 -t $file > temp.rands"
> >     (procedure "_o4" line 3)
> >     (TestSuite finish line 3)
> >     invoked from within
> > "$self finish $testname"
> >     (procedure "_o4" line 10)
> >     (TestSuite cleanupAll line 10)
> >     invoked from within
> > "_o4 cleanupAll sack1"
> > Test output differs from reference output
> > Diagnose with: diff test-output-sack/sack1.test test-output-sack/sack1
> > Or see URL "http://www.isi.edu/nsnam/ns/ns-problems.html".
> > -----------------------
> >
> > Could anyone tell me what the "_o4" means? And what shall I do?
> >
> > Thanks a lot,
> >
> > Hao Wang
>
> --
> ------------------------------------------------------------------------
> Morten Schl�ger                              Tel.: ++49 (030) 314-23834
> Technical University Berlin                   Fax.: ++49 (030) 314-23818
> Telecommunication Networks Group (TKN)            [email protected]
> Sekr. FT 5-2/Einsteinufer 25
> 10587 Berlin, Germany
>