Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* <resourcebits.h> and <sys/resource.h> under RH 4.1
@ 1997-04-29 17:51 Lee Hetherington
  0 siblings, 0 replies; 4+ messages in thread
From: Lee Hetherington @ 1997-04-29 17:51 UTC (permalink / raw)


I have been using Linux on x86 for almost 2 years now, but yesterday I
started using Red Hat 4.1 with 2.0.30 kernel on an alpha.  I appologize
in advance if this is a stupid question.

If I compile a file that includes <sys/resource.h> (which includes
<resourcebits.h>) I get tons of error messages of the form:

In file included from /usr/include/sys/resource.h:27,
                 from test.c:1:
/usr/include/resourcebits.h:31: `RLIMIT_CPU' undeclared here (not in a
function)
/usr/include/resourcebits.h:31: enumerator value for `_RLIMIT_CPU' not
integer constant
/usr/include/resourcebits.h:37: `RLIMIT_FSIZE' undeclared here (not in a
function)
/usr/include/resourcebits.h:37: enumerator value for `_RLIMIT_FSIZE' not
integer constant

etc...

With RPM I have determined that these files are part of the
glibc-devel-0.961212-3 package.  It appears that something is mismatched
in the header/kernel include headers, but I can't figure it out quickly.
I have perused the axp-list archives to no avail so far.  I believe that
I have Red Hat 4.1 with all updates loaded, as well as a 2.0.30 kernel.

Does this ring a bell with anyone?

Thanks in advance!

-- 
Lee Hetherington
ilh@sls.lcs.mit.edu

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: &lt;resourcebits.h&gt; and &lt;sys/resource.h&gt; under RH 4.1
       [not found] <3366350B.4FCC6A0B@sls.lcs.mit.edu>
@ 1997-04-29 18:39 ` Michael Brennen
  1997-04-30  6:36 ` Richard Henderson
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Brennen @ 1997-04-29 18:39 UTC (permalink / raw)


I've been able to manually fix this by changing <sys/time.h> and
<sys/resource.h> to <linux/time.h> and <linux/resource.h> respectively.
It does get to be something of a real drudge, though. 

   -- Michael

On Tue, 29 Apr 1997, Lee Hetherington wrote:

> If I compile a file that includes <sys/resource.h> (which includes
> <resourcebits.h>) I get tons of error messages of the form:

> etc.

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: &lt;resourcebits.h&gt; and &lt;sys/resource.h&gt; under RH 4.1
       [not found] <3366350B.4FCC6A0B@sls.lcs.mit.edu>
  1997-04-29 18:39 ` &lt;resourcebits.h&gt; and &lt;sys/resource.h&gt; under RH 4.1 Michael Brennen
@ 1997-04-30  6:36 ` Richard Henderson
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Henderson @ 1997-04-30  6:36 UTC (permalink / raw)


> I have been using Linux on x86 for almost 2 years now, but yesterday I
> started using Red Hat 4.1 with 2.0.30 kernel on an alpha.  I appologize
> in advance if this is a stupid question.

The version of glibc with RH4.1 _requires_ that the kernel headers
that it sees have the axp-diffs found on ftp.azstarnet.com applied.o
Later versions of glibc do not have this restriction.

I don't know that there exists a version of the axp-diffs for 2.0.30,
but there is no particular reason you should have to replace the
2.0.27 kernel headers that Red Hat distributed.  The kernel is quite
happy being compiled somewhere other than /usr/src/linux (say,
/usr/src/linux-2.0.30?  what an idea.) and if you leave libc's
headers alone you'll be fine.

r~

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: &lt;resourcebits.h&gt; and &lt;sys/resource.h&gt; under RH 4.1
@ 1997-04-30 14:49 Lee Hetherington
  0 siblings, 0 replies; 4+ messages in thread
From: Lee Hetherington @ 1997-04-30 14:49 UTC (permalink / raw)


Thanks for the replies.  I reinstalled kernel-headers-2.0.27-5.alpha.rpm
and all is well.  It did turn out that the 2.0.30 headers introduced
this problem.

-- 
Lee Hetherington
ilh@sls.lcs.mit.edu

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-04-30 14:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3366350B.4FCC6A0B@sls.lcs.mit.edu>
1997-04-29 18:39 ` &lt;resourcebits.h&gt; and &lt;sys/resource.h&gt; under RH 4.1 Michael Brennen
1997-04-30  6:36 ` Richard Henderson
1997-04-30 14:49 Lee Hetherington
  -- strict thread matches above, loose matches on Subject: below --
1997-04-29 17:51 Lee Hetherington

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox