This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: sys/resource.h on latest Linux kernel
- To: Dave Gilbert <gilbertd at treblig dot org>
- Subject: Re: sys/resource.h on latest Linux kernel
- From: Alexandre Oliva <aoliva at cygnus dot com>
- Date: 25 Mar 2000 14:24:19 -0300
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: Cygnus Solutions, a Red Hat Company
- References: <Pine.LNX.4.10.10003251628000.744-100000@tardis.home.dave>
On Mar 25, 2000, Dave Gilbert <gilbertd@treblig.org> wrote:
> 1) Why is the configuration not setting HAVE_SYS_RESOURCE_H - after all
> the compiler only gave a warning.
autoconf assumes the worst, because some compilers won't fail even
when they can't find the included headers.
> 2) Shouldn't the test for GETRUSAGE be consistent with the test for
> SYS_RESOURCE ?
It might be a good idea, yes.
> 3) Is this a glibc problem, a kernel problem or a mix of the two?
It's a mix of them. /usr/include/bits are supplied by glibc, whereas
/usr/include/asm is part of the kernel. It would seem that the kernel
could be modified so as to either not define RLIM_INFINITY if it finds
it's already defined, or explicitly #undef it if it finds it's already
defined, before its own #define. I'm not sure which one would be less
disruptive, so I suggest that you bring up this problem to the
attention of maintainers of both packages.
--
Alexandre Oliva Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me