Re: RLIM_INFINITY redefined

From: Gaël Quéri (gqueri@mail.dotcom.fr)
Date: Sun Mar 12 2000 - 11:18:11 EST


On Sun, Mar 12, 2000 at 02:31:03PM +0100, WOL - Odinn Sorensen wrote:
> Hello linux-kernel@vger.rutgers.edu.
>
> While compiling PHP 3.0.15 on my machine with a 2.3.47(*) kernel, I noticed
> that the configure script failed on sys/resource.h, because the definition
> of RLIM_INFINITY in asm/resource.h was redefined in bits/resource.h.
>
> Apparently a definition of RLIM_INFINITY was added to asm/resource.h
> sometime in 2.3.x, since it is not there in 2.2.12 at least.

the definitions of RLIM_INFINITY from the kernel and from libc
conflict since 2.3 so you should keep the definition from the libc.
For that avoid including asm/resource.h
If I remember old versions of glibc (before 2.1.3) used to include
asm/resource.h
I've attached the bits/resource.h from glibc-2.1.3.

regards, gael



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:21 EST