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]

RUSAGE_CHILDREN


on Feb 20, 2000 David Gilbert wrote:
> gcc.c: In function `execute':
> gcc.c:2587: `prus' has an incomplete type
> gcc.c:2588: `RUSAGE_CHILDREN' undeclared (first use in this function)
> gcc.c:2588: (Each undeclared identifier is reported only once
> gcc.c:2588: for each function it appears in.)
> gcc.c:2589: invalid use of undefined type `struct rusage'
> 
> I don't think HAVE_SYS_RESOURCE_H or HAVE_GETRLIMIT are being defined even
> though I have a sys/resource.h
> 
> (System: Linux/Alpha 2.2.13 with glibc-2.1.2 RedHat 6.1ish).

reply by Alexandre Oliva:
> Have a look in config.log to find out why.  I don't get this problem
> on a similar platform.

I have this problem on a machine running RedHat 6.1...

I think the problem is in libiberty:
configure:1066: checking for sys/resource.h
configure:1076: gcc -E  conftest.c >/dev/null 2>conftest.out
In file included from /usr/include/sys/resource.h:25,
                 from configure:1072:
/usr/include/bits/resource.h:109: warning: `RLIM_INFINITY' redefined
/usr/include/asm/resource.h:25: warning: this is the location of the previous definition
configure: failed program was:
#line 1071 "configure"
#include "confdefs.h"
#include <sys/resource.h>

Too bad that a warning is considered a failure...

In any case:
/usr/include/bits/resource.h comes from the glibc-devel-2.1.2-1 package
I'm not sure where /usr/include/asm/resource.h comes from...

Loring

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