Re: glibc 2.0.7 socketbits.h poisons the compile of kernel utilities

Ion Badulescu (ionut@moisil.cs.columbia.edu)
Tue, 21 Jul 1998 14:01:35 -0400


On Mon, 20 Jul 1998 09:18:05 +1000, Keith Owens wrote:
> /usr/include/socketbits.h from glibc-devel-2.0.7-13.i386.rpm contains
> the lines
>
> /* Get socket manipulation related informations from kernel headers. */
> #ifndef _LINUX_TYPES_H
> # define _LINUX_TYPES_H
> #endif
>
> #include <asm/socket.h>
>
> The definition of _LINUX_TYPES_H stops any later inclusion of
> linux/types.h from defining critical types, including __u32. Not
> surprisingly, kernel utilities such as ppp-2.3.5 fail to compile.
> There is no problem with glibc-devel-2.0.5c-10.
>
> storner@image.dk suggests adding #include <asm/types.h> to
> <sys/types.h> to overcome the compile problems but that seems to be a
> kludge on a kludge.
>
> Would one of the kernel/glibc developers care to give a definitive
> answer to this problem?

socketbits.h should define __KERNEL_STRICT_NAMES if it wants to avoid
conflicts with kernel-space names. To have a header file from one
package (libc) _forbid_ the use of another header file from another
package (the kernel) is just brain-damaged.

Ion

-- 
  It is better to keep your mouth shut and be thought a fool,
            than to open it and remove all doubt.

- 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.altern.org/andrebalsa/doc/lkml-faq.html