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

ns and getrusage (was: no title)



jang,

It's not an easily solvable problem; I've run into the same thing.

I can build and use ns 2.1b3 and later snaphots on an Ultra with
Solaris 2.5.1 easily enough, but on a Sparc20 with 2.4 (5.4
Generic_101945-38 sun4m sparc) with the latest daily snapshot:

mem-trace.h: In method `void MemInfo::checkpoint()':
In file included from scheduler.cc:49:
mem-trace.h:61: aggregate `struct rusage ru' has incomplete type and
cannot be initialized
mem-trace.h:62: warning: implicit declaration of function `int
getrusage(...)'
mem-trace.h:62: `RUSAGE_SELF' undeclared (first use this function)
mem-trace.h:62: (Each undeclared identifier is reported only once
mem-trace.h:62: for each function it appears in.)
mem-trace.h:62: confused by earlier errors, bailing out
*** Error code 1
make: Fatal error: Command failed for target `scheduler.o'

daily snapshot of 28 August, grabbed 29 August.


(and running the working Ultra binary on the '20 gets me:

ld.so.1: /user/ccsrnrpg1/eep1lw/ns/ns/ns: fatal: relocation error:
symbol not found: getrusage: referenced in
/user/ccsrnrpg1/eep1lw/ns/ns/ns
Killed)

See:
http://www-mash.cs.berkeley.edu/dist/archive/ns-users/9806/0158.html
http://www-mash.cs.berkeley.edu/dist/archive/ns-users/9806/0161.html
for my previous gruntle about this.

Any chance of having another go at fixing mem-trace for portability,
John? Being limited to in-demand machines when we have Sparc20s
sitting idle isn't exactly ideal. 

thanks,

L.

<http://www.ee.surrey.ac.uk/Personal/L.Wood/>PGP<[email protected]>


On Sat, 29 Aug 1998, (illegal characters) wrote:

> Date: Sat, 29 Aug 1998 10:57:06 +0900
> From: (illegal characters) <[email protected]>
> To: ns-users <[email protected]>
> 
> Dear ns-users,
> 
> I have downloaded ns2.1b3(All in One) successfully.
> 
> I'm using ns-2b2(All in One) on Solaris 2.4.
> 
> But, I have some problem when installing ns-2b3 ::
> 
> In file included from scheduler.cc:48:
> mem-trace.h:36: field `time' has incomplete type
> mem-trace.h: In method `MemTrace::MemTrace()':
> mem-trace.h:55: warning: implicit declaration of function `int getrusage(...)'
> mem-trace.h:55: `RUSAGE_SELF' undeclared (first use this function)
> mem-trace.h:55: (Each undeclared identifier is reported only once
> mem-trace.h:55: for each function it appears in.)
> mem-trace.h: In method `void MemTrace::diff(char *)':
> mem-trace.h:60: `RUSAGE_SELF' undeclared (first use this function)
> *** Error code 1
> make: Fatal error: Command failed for target `scheduler.o'
> 
> I cant correct above error.
> 
> How to sove above problem??
> 
> k.s. jang