glibc 2.0.7 socketbits.h poisons the compile of kernel utilities

Keith Owens (kaos@ocs.com.au)
Mon, 20 Jul 1998 09:18:05 +1000


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

-
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