Re: 2.3.40: doubly defined symbol in header files

From: Ray L (rayl@mail.com)
Date: Sat Jan 29 2000 - 07:10:05 EST


On Sat, Jan 29, 2000 at 12:48:42AM -0800, David Ford wrote:
> On Fri, 28 Jan 2000, Ray L wrote:
>
> > > /usr/include/bits/resource.h:109: warning: `RLIM_INFINITY' redefined
> > > /usr/include/asm/resource.h:25: warning: this is the location of the previous...
> >
> > i bet you have a 2.0 base system and are running with 2.2/2.3 kernel? put
> > the kernel-headers RPM back like it was and build your kernel elsewhere...
>
> This doesn't come from just redhat or rpm. You should most likely replace
> your headers with a fresh copy from the glibc and g++ packages.

hmm... i'm not an expert on building distros, but i don't think you should
be installing a fresh set of headers unless you rebuild glibc.

i just grabbed a copy of linux-2.3.41 and glibc-2.1.2 and did a quick build
(athlon rules :-) and some of the glibc test programs in 'make check'
spit out that same warning.

it seems that the linux definition of RLIM_INFINITY got moved into
<asm/resource.h> from <linux/resource.h> (which i assume is the internal
counterpart to <bits/resource.h>?) also, it is *right* before an
#ifdef KERNEL. should RLIM_INFINITY be moved inside the ifdef KERNEL, or
maybe back into <linux/resource.h>?

-- 
-----------------------------------------------------------------------------
  Ray Lehtiniemi (rayl@mail.com) (rayl@optitech.com)

- 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 : Mon Jan 31 2000 - 21:00:23 EST