This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sys/resource.h on latest Linux kernel


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]