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

RE: HPUX10.20/ns2 problem



I checked... the file version.c exists but there is nothing inside it.
So I put the line   
char version_string[ ] = "2.1b4"; 
in version.c.

Ns then compiled successfully.

BUT when I ran ./validate in ns-2/ , I got, for all cases

./test-all-template1[98]: 27568 Memory fault (coredump)

The following are the different warnings I got while compiling ns:

rng.cc: In method `int RNG::command(int, const char *const *)':
rng.cc:199: warning: decimal integer constant is so large that it is
unsigned
mem-trace.h: In method `void MemInfo::checkpoint()':
In file included from scheduler.cc:49:
mem-trace.h:67: warning: implicit declaration of function `int syscall(...)'
mem-trace.h: In method `void MemTrace::diff(char *)':
mem-trace.h:98: warning: long int format, int arg (arg 4)
mem-trace.h:98: warning: long int format, int arg (arg 5)
trace.h: In method `double Trace::round(double) const':
In file included from trace.cc:46:
trace.h:76: warning: sorry: semantics of inline function static data `double
const PRECISION' are wrong (you'll wind up with multiple copies)
classifier-mpath.cc: In method `MultiPathForwarder::MultiPathForwarder()':
classifier-mpath.cc:32: warning: base initializer for `Classifier'
classifier-mpath.cc:32: warning:    will be re-ordered to precede member
initializations
traffictrace.cc: In method `int TraceFile::setup()':
traffictrace.cc:150: warning: comparison between signed and unsigned
ivs.cc: In method `IvsSource::IvsSource()':
ivs.cc:161: warning: base initializer for `Agent'
ivs.cc:161: warning:    will be re-ordered to precede member initializations
delay.cc: In method `void LinkDelay::handle(class Event *)':
delay.cc:124: warning: unused variable `class Event * pe'

I thought something could be wrong since I applied the config.h patch in the
middle of installation.  (BTW, the patch did not work with the "patch"
command on my machine, so I manually edited config.h).  So I downloaded
ns-allinone-2.1b4a again and started from scratch (with patch applied
first).  I got the same warnings and memory coredump except there was no
complaint  for version.c anymore.  

Just wondering, could it be a compiler problem?  If ns-allinone-2.1b4a is
proven that it can be successfully installed on HP-UX10.20 using gnu 2.8.1
(is it proven, Haobo?), I will find a way to install gnu 2.8.1.

Thanks again for your help. I really appreciate it.

Fion

> ----------
> From: 	Haobo Yu
> Sent: 	Wednesday, February 10, 1999 5:45 PM
> To: 	Lee, Fion [NORSE:6M31:EXCH]
> Cc: 	[email protected]
> Subject: 	Re: HPUX10.20/ns2 problem
> 
> I did that in early Jan this year. I thought i was using hpux 10.20 and
> gcc 2.8.1. Could you please check if your ~ns/gen/version.c is correct and
> it's compiled and linked? 
> 
> - Haobo
> 
>