Silly branch compile failure, stage 1

Neil Booth neil@daikokuya.demon.co.uk
Mon Apr 2 10:36:00 GMT 2001


Kaveh R. Ghazi wrote:-

> I don't see this on my x86-linux system through last night.
> 
> It looks like configure isn't correctly noticing that you already have
> decls for getrlimit & setrlimit.  Can you look in config.log and see
> why the check for that fails?

Yes, you're right.  I didn't have time to investigate; I had to go to
work :-)

checking whether getrlimit is declared... no
checking whether setrlimit is declared... no

The following is the fragment from the log.  setrlimit is similar.

configure:3836: checking whether getrlimit is declared
configure:3859: gcc -c -g -O2 -I../../gcc -I../../gcc/../include  conftest.c 1>&5
../../gcc: Function not implemented
configure:3845:23: gansidecl.h: No such file or directory
configure:3846:20: system.h: No such file or directory
configure: failed program was:
#line 3841 "configure"
#include "confdefs.h"
#undef HAVE_DECL_GETRLIMIT
#define HAVE_DECL_GETRLIMIT 1
  
#include "gansidecl.h"
#include "system.h"
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif


int main() {
#ifndef getrlimit
char *(*pfn) = (char *(*)) getrlimit ;
#endif
; return 0; }

Hope this helps.

Neil.



More information about the Gcc-bugs mailing list