Linux-kernel mailing list archive 2000-06,: Re: RLIM_INFINITY duplicate definition in resource.h

# Re: RLIM_INFINITY duplicate definition in resource.h

Jakub Jelinek (jakub@redhat.com)
Mon, 7 Feb 2000 07:22:28 +0100

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Mike Coleman: "[PATCH] subterfugue-ptrace patch #1 (was Re: vfork)"
- Previous message: Mike Coleman: "[ANNOUNCE] SUBTERFUGUE 0.0"

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/

- Next message: Mike Coleman: "[PATCH] subterfugue-ptrace patch #1 (was Re: vfork)"
- Previous message: Mike Coleman: "[ANNOUNCE] SUBTERFUGUE 0.0"