Re: PROBLEM: Linux include file conflict

From: Khimenko Victor (khim@sch57.msk.ru)
Date: Wed Feb 09 2000 - 07:52:02 EST


In <Pine.LNX.4.21.0002082215260.275-100000@rgfpc.electro.swri.edu> Robert G Fenske Jr (fenske@rgfpc.electro.swri.edu) wrote:

> While trying to build pppd 2.3.11 with the kernel 2.3.41 include
> files I ran into a conflict with the Linux include files. This
> conflict precludes building pppd 2.3.11. The RLIM_INFINITY #define in
> <2.3.41 kernel srcdir>/include/asm-i386/resource.h conflicts with
> /usr/include/resourcebits.h (which I presume came with the gcc 2.7.2.3
> distribution since that what my Debian 2.1 system has). I scanned back
> through the kernel patches and found that the RLIM_INFINITY got added
> to the asm-i386/resource.h file in 2.3.32.
> It's easy enough to edit the resourcehits.h file to avoid the
> conflict but that's not a long term solution. I haven't figured out the
> consequences of modifying the asm-i386/resource.h file, or actually all
> the asm-*/resource.h files as they all have the #define in question.

No. This is NOT "linux include file conflict". /usr/include/resourcebits.h is
NOT part of kernel. asm-i386/resource.h IS part of kernel. You should NEVER
use kernel includes and userland includes in the same file. Yes, glibc STILL
doing that. It's glibc problem, not kernel one.

-
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 : Tue Feb 15 2000 - 21:00:15 EST