From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
Subject: Re: resourcebits.h problem
Date: Sat, 29 Mar 1997 22:26:18 -0700 (MST) [thread overview]
Message-ID: <a42372c92bdd896e8417d5f4c69ded9d.axp-list@archive.invalid> (raw)
In-Reply-To: <199703300124.UAA31211@www.webdevelop.com>
>
> >You should find the file 'resourcebits.h' in /usr/include.
> >If it is not there I would suggest re-installing the glibc, & gcc rpm's.
>
> I have the file installed, and all of the appropriate stuff.
But as it is easy to notice kernel sources on alpha were/are
changing quite fast.
> In file included from /usr/local/include/sys/resource.h:27,
> from msqld.c:54:
> /usr/local/include/resourcebits.h:31: `RLIMIT_CPU' undeclared here (not
^^^^^^^^^^^^^^
It looks like this constant was not defined.
It is easy to search for a definition with a command like that:
$ find /usr/include -follow -type f | xargs grep RLIMIT_CPU
I am using kernel 2.0.29, but on my system this results in something
like that:
/usr/include/asm/resource.h:#define __KERNEL_RLIMIT_CPU 0 /* CPU time in ms */
/usr/include/asm/resource.h: {LONG_MAX, LONG_MAX}, /* RLIMIT_CPU */ \
/usr/include/linux/resource.h:# define RLIMIT_CPU __KERNEL_RLIMIT_CPU
/usr/include/resourcebits.h: _RLIMIT_CPU = RLIMIT_CPU,
/usr/include/resourcebits.h:#undef RLIMIT_CPU
/usr/include/resourcebits.h: RLIMIT_CPU = _RLIMIT_CPU,
/usr/include/resourcebits.h:#define RLIMIT_CPU RLIMIT_CPU
In 2.0.29 <resource.h> includes <asm/resource.h>, so RLIMIT_CPU will
be defined, but maybe this is not true in 2.0.18. If not then include
this missing header explicitely and likely this will solve the problem.
It is hard to check for me as I do not keep kernels 11 patchlevels back -
especially that in the meantime a number of problems on Alpha was detected
and fixed.
Michal
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next prev parent reply other threads:[~1997-03-30 5:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-30 0:36 resourcebits.h problem Steven Kokinos
1997-03-29 16:31 ` Al Potter
1997-03-30 3:00 ` I remember this problem now ( was Re: resourcebits.h problem ) Terry L. Ridder
1997-03-30 5:26 ` Michal Jaegermann [this message]
[not found] <Pine.LNX.3.95.970329183815.13937A-100000@vito.webdevelop.com>
1997-03-30 0:58 ` resourcebits.h problem Terry L. Ridder
1997-03-30 19:34 ` Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1997-03-29 23:39 Steven Kokinos
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox