On Sat, 21 Apr 2001, Richard Zidlicky wrote:
> > I have problems with compiling libwww (w3c-libwww-5.2.8), see above.
> > Has anybody managed to compile it on Qx0? Which version?
>
> it compiled and installed cleanly last time I tried, funny enough it
> was exactly 5.2.8.
> The error looks like the right include wasn't included, maybe a problem
> with your kernel headers? They are supposed to be in
> /usr/src/linux/include/asm
> and they must be configured. Easiest is to install the kernel-sources.rpm
> and run 'make oldconfig' in that dir.
Hi!
I've ran 'make oldconfig' but it hasn't cured the problem (includes have
been extracted out of linux-src-tarball again).
I have found the problem, stupid autoconf is fooled by redefinition of
socket types. They're double defined (socketbits.h and asm/socket.h) and
this confuses autoconf, so that it thinks there is no in.h.
I have put #ifndef _SOCKETBITS_H before the
defintion of socket types in /usr/include/asm/socket.h:
#ifndef _SOCKETBITS_H
/* Socket types. */
#define SOCK_STREAM 1 /* stream (connection) socket */
#define SOCK_DGRAM 2 /* datagram (conn.less) socket */
#define SOCK_RAW 3 /* raw socket */
#define SOCK_RDM 4 /* reliably-delivered message */
#define SOCK_SEQPACKET 5 /* sequential packet socket */
#define SOCK_PACKET 10 /* linux specific way of */
/* getting packets at the dev */
/* level. For writing rarp and */
/* other similar things on the */
/* user level. */
#endif
Claus
______________________________________________________________________
powered by Q60 * Motorola 68060 / 80 MHz * 80 MB RAM * 30 GB Hard Disk