[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Where to
On Thu, 29 Oct 1998, Yiqun Chen wrote:
> I have downloaded the file ns-allinone-2.1b4.tar.gz, but failed to
> build ns-2 under Solaris 2.5.1. The wrong message is "The function
> getrusage must have a protype."
>
> I use man command to find which including file has defined the
> function getrusage. Man shows that the including file resource.h has
> defined this function. But really, i can not find it. What is wrong?
> Is my system or other?
Having had some fun with getrusage in the past (see the list archives)
I can tell you that ns/mem-trace.h utilises getrusage on Solaris
2.5.1, but not on Solaris 2.4.
resource.h ('UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T' -
lovely...) is in /usr/include/sys on our and I believe most other
2.5.1 machines, as your man page indicates.
I tend to have to build (slooooowly) on Solaris 2.4 in order to have a
binary that works across both 2.4 and 2.5.1; you could either find a
copy of resource.h, change HAVE_GETRUSAGE, or fiddle with mem-trace.h,
or build on 2.4.
L.
> I appreciate any help.
>
> Yiqun chen
> Shanghai Jiao Tong University, China
<L.Wood@surrey.ac.uk>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>
- References:
- Where to
- From: "Yiqun Chen" <yqchen@info.sh.cn>