From: Steve VanDevender (stevev@miser.uoregon.edu)
Date: 06/09/93


From: stevev@miser.uoregon.edu (Steve VanDevender)
Subject: 0.99pl10 won't compile with TCP/IP configured
Date: 10 Jun 1993 02:42:28 GMT

Here's more information (and a much more descriptive subject
line) about the problem I'm having.

Last night I downloaded the 0.99pl10 kernel, HJ Lu's libc.so.4.4
packages, and the GCC-2.4.3 packages. Since both of the latter
depend on the pl10 kernel, I compiled it first (using SLS 1.0's
GCC 2.3.3 distribution). This kernel seemed to do pretty well.
I configured this kernel without TCP/IP.

Once I had the new kernel booted and running, I installed
libc.so.4.4 and its new include files. Then I installed GCC
2.4.3. Then I attempted to recompile the pl10 kernel again. I
should have quit while I was ahead, though.

I first ran into a problem with limits.h during the "make dep"
phase. After grepping through most of the recent posts to
c.o.l., I found one answer which said that commenting out the
line "#include_next <limits.h>" seemed to fix the problem.

Then I found that the in.h supplied with the libc.so.4.4 release
appears to conflict with the kernel's in.h. Here are the error
messages GCC gives:

gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -fomit-frame-pointer -DD_LINK_IO=0x378 -DD_LINK_IRQ=
7 -UD_LINK_DEBUG -c d_link.c -o d_link.o
In file included from /usr/include/netinet/in.h:94, from d_link.c:88:
/usr/include/linux/in.h:24: conflicting types for `IPPROTO_IP'
/usr/include/netinet/in.h:30: previous declaration of `IPPROTO_IP'
/usr/include/linux/in.h:25: conflicting types for `IPPROTO_ICMP'
/usr/include/netinet/in.h:31: previous declaration of `IPPROTO_ICMP'
/usr/include/linux/in.h:26: conflicting types for `IPPROTO_GGP'
/usr/include/netinet/in.h:32: previous declaration of `IPPROTO_GGP'
/usr/include/linux/in.h:27: conflicting types for `IPPROTO_TCP'
/usr/include/netinet/in.h:33: previous declaration of `IPPROTO_TCP'
/usr/include/linux/in.h:28: conflicting types for `IPPROTO_EGP'
/usr/include/netinet/in.h:34: previous declaration of `IPPROTO_EGP'
/usr/include/linux/in.h:29: conflicting types for `IPPROTO_PUP'
/usr/include/netinet/in.h:35: previous declaration of `IPPROTO_PUP'
/usr/include/linux/in.h:30: conflicting types for `IPPROTO_UDP'
/usr/include/netinet/in.h:36: previous declaration of `IPPROTO_UDP'
/usr/include/linux/in.h:31: conflicting types for `IPPROTO_IDP'
/usr/include/netinet/in.h:37: previous declaration of `IPPROTO_IDP'
/usr/include/linux/in.h:33: conflicting types for `IPPROTO_RAW'
/usr/include/netinet/in.h:39: previous declaration of `IPPROTO_RAW'
/usr/include/linux/in.h:35: conflicting types for `IPPROTO_MAX'
/usr/include/netinet/in.h:41: previous declaration of `IPPROTO_MAX'
make[2]: *** [d_link.o] Error 1

If I configure the kernel without TCP/IP, I can get it to
compile, but the unix-domain sockets don't seem to agree with X.
Starting X usually gives me a blank screen, then hangs such that
VC switching or attempting to kill the server with
CTRL-ALT-Backspace doesn't work at all.