Re: RLIM_INFINITY duplicate definition in resource.h

From: Jakub Jelinek (jakub@redhat.com)
Date: Mon Feb 07 2000 - 01:22:28 EST


On Sun, Feb 06, 2000 at 01:43:32PM -0800, Per Bothner wrote:
> The file include/asm-i386/resource.h in 2.3.42 defines RLIM_INFINITY
> It gives it a value inconsistent with RLIM_INFINITY in
> /usr/include/bits/resource.h.(as installed by glibc 2.1.2 on RedHat 6.1).
> I don't know when this definition was added, but it was after 2.3.8.
>
> This conflict needs to be fixed. It causes warnings for any
> program that does #include <sys/resource.h>. It causes gcc to fail
> to compile (because configure interpretes the warning messages such
> that sys/resource.h doesn't exist).
>
> My quick work-around was to move the #define RLIM_INFINITY inside
> the #ifdef __KERNEL__. But considering that that the two
> definitions of RLIM_INFINITY yield different values, perhaps
> RLIM_INFINITY is the wrong name anyway.
>
> (I'm not on the linux-kernel mailing list, so please cc me.
> I hope this is not a duplicate; I didn't see any mention
> of this problem when I ran a search.)

Linus decided he does not want to do anything about it in kernel headers, so
the only thing you can do (besides editing the header files yourself) is
upgrade to glibc 2.1.3 (for Red Hat available from rawhide).

Cheers,
    Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.42 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________

-
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 : Mon Feb 07 2000 - 21:00:14 EST