Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Problems with resource.h in 2.0.33
@ 1998-04-22  4:00 Thomas Hollunder
  1998-04-23  4:00 ` Tobias Klausmann
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Hollunder @ 1998-04-22  4:00 UTC (permalink / raw)



I finally managed to install 2.0.33 on our LX164 (RH4.2, alpha-patches-2.0.32-0)

But when using gcc version 2.7.2.1 to compile anything that uses
resource.h I get the following:

In file included from /usr/include/sys/resource.h:27,
                 from mergemem.h:23,
                 from mergemem.c:23:
/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
/usr/include/resourcebits.h:43: `RLIMIT_DATA' undeclared here (not in a function)
/usr/include/resourcebits.h:43: enumerator value for `_RLIMIT_DATA' not integer constant
/usr/include/resourcebits.h:49: `RLIMIT_STACK' undeclared here (not in a function)
/usr/include/resourcebits.h:49: enumerator value for `_RLIMIT_STACK' not integer constant
/usr/include/resourcebits.h:55: `RLIMIT_CORE' undeclared here (not in a function)
/usr/include/resourcebits.h:55: enumerator value for `_RLIMIT_CORE' not integer constant
/usr/include/resourcebits.h:64: `RLIMIT_RSS' undeclared here (not in a function)
/usr/include/resourcebits.h:64: enumerator value for `_RLIMIT_RSS' not integer constant
/usr/include/resourcebits.h:70: `RLIMIT_NOFILE' undeclared here (not in a function)
/usr/include/resourcebits.h:70: enumerator value for `_RLIMIT_NOFILE' not integer constant
/usr/include/resourcebits.h:78: `RLIMIT_AS' undeclared here (not in a function)
/usr/include/resourcebits.h:78: enumerator value for `_RLIMIT_AS' not integer constant
/usr/include/resourcebits.h:84: `RLIMIT_NPROC' undeclared here (not in a function)
/usr/include/resourcebits.h:84: enumerator value for `_RLIMIT_NPROC' not integer constant
/usr/include/resourcebits.h:90: `RLIMIT_MEMLOCK' undeclared here (not in a function)
/usr/include/resourcebits.h:90: enumerator value for `_RLIMIT_MEMLOCK' not integer constant
/usr/include/resourcebits.h:95: `RLIM_NLIMITS' undeclared here (not in a function)
/usr/include/resourcebits.h:95: enumerator value for `RLIMIT_NLIMITS' not integer constant
make[1]: *** [mergemem] Error 1

Doees anybody have a clue what the problem could be?

Thank you

Thomas Hollunder       thomas@complang.tuwien.ac.at



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

* Re: Problems with resource.h in 2.0.33
  1998-04-22  4:00 Problems with resource.h in 2.0.33 Thomas Hollunder
@ 1998-04-23  4:00 ` Tobias Klausmann
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Klausmann @ 1998-04-23  4:00 UTC (permalink / raw)



Thomas Hollunder wrote:
> 
> I finally managed to install 2.0.33 on our LX164 (RH4.2, 
> alpha-patches-2.0.32-0)
> 
> But when using gcc version 2.7.2.1 to compile anything that uses
> resource.h I get the following:
> 
> In file included from /usr/include/sys/resource.h:27,
>                  from mergemem.h:23,
>                  from mergemem.c:23:
[... deleted complaints of undefied limits ...]
> 
> Does anybody have a clue what the problem could be?
Yup. I had the very same (2.0.33/Redhat). resource.h includes
/usr/include/asm/resource.h, where a bunch of system-specific
Resource-Limits *should* be defined. Unfortunately, there are
only the limits for the Kernel (as in __KERNEL_RLIMIT_CPU), I
plainly copied the defs for the kernel, removed the __KERNEL_
prefix and voil`a. 
Maybe the compiler will then barf on a statement about 
RLIM_INFINITY somewhere else (a parse error IIRC). I just com-
mented out that one. It worked (and still works) for me, but as
usual, your mileage may vary.

regards,
Tobias

-- ----------------------------------------------------------- --
klausman@ai-lab.fh-furtwangen.de      http://home.pages.de/~bbird
Public PGP-Key :  finger -l klausman@zeus.ai-lab.fh-furtwangen.de 
PGP fingerprint: B1 6B 61 68 5A 07 77 A9  DF 39 8E 65 F9 A0 68 95



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

end of thread, other threads:[~1998-04-23  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-22  4:00 Problems with resource.h in 2.0.33 Thomas Hollunder
1998-04-23  4:00 ` Tobias Klausmann

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