RLIM_INFINITY defined twice

From: Bob Gustafson (bobgus@mcs.com)
Date: Thu Jun 22 2000 - 20:14:12 EST


The warning RLIM_INFINITY has come up before (compiling iptables I
believe), but this time it caused the failure of a test in configure and
the make then failed with the erronious #undef HAVE_RESOURCE_H instead of
defining it.

There are two resource.h files, one in include/bits and the other in
include/asm. They contain two different definitions.

Which one should be used?

Please cc: bobgus@mcs.com if there is a reply - thanks.

Bob Gustafson

# uname -a
Linux hoho0.com 2.4.0-test1-ac18 #1 Mon Jun 19 14:21:11 CDT 2000 i686 unk
nown
#

The kernel patch used was acually ac21, but it identifies itself as ac18.
The problem below was also in many other previous versions, but I ignored
it until it was significant.

---- configure stage of building ntp-4.0.99j ---
...
configure:3201: checking for sys/resource.h
configure:3212: gcc -E conftest.c >/dev/null 2>conftest.out
In file included from /usr/include/sys/resource.h:25,
   from configure:3207:
   /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 3206 "configure"
#include "confdefs.h"
#include <sys/resource.h>
....

-
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/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:25 EST