From: Deeran Peethamparam (ins308z@aurora.cc.monash.edu.au)
Date: 06/10/93


From: ins308z@aurora.cc.monash.edu.au (Deeran Peethamparam)
Subject: [Q] in.h - kernel compilation hassles
Date: Thu, 10 Jun 1993 05:09:21 GMT


Hi,

I hope you can help me. A few weeks ago, I upgraded my shared libs
to version 4.4, and upgraded the include files as well. When I
attempted to recompile the kernel, I got a whole lot of errors,
mainly to do with "/usr/include/linux/in.h". I thought, well, it's
probably because the release of the shared libs and the kernel
are out of sync, no problem, it'll go away when I get ver. 0.99pl10
of the kernel.

Well, I grabbed ver. 0.99pl10 of the kernel yesterday, tried to
compile it, and... no go. :( The kernel compiles OK without
TCP/IP compiled into it, but it'd be nice if I could actually
have networking going, now that network cards are so cheap.

My guess is that I've missed an update of one of the include
files, so if that's all it is, just point me to an archive site
and give me a filename, and it should all be fixed....

I appreciate any help I can get on this. My setup :
     version 4.4 of shared libraries and include files
     version 2.3.3 of GCC
     version 0.99pl10 of the kernel (no other patches)

Here are the error messages from gcc :
=====================================================================
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
make[1]: *** [subdirs] Error 1
make: *** [linuxsubdirs] Error 1
=====================================================================

These are the file dates on the files concerned :
-r--r--r-- 1 root root 3215 Apr 21 15:56 /usr/include/netinet/in.h
-rw-r--r-- 1 root root 5236 Apr 27 20:31 /usr/include/linux/in.h

And these are the file dates from version 4.4 of HJ's include package :
-r--r--r-- hlu/grad 3215 Apr 21 15:56 1993 ./include/netinet/in.h
-rw-r--r-- hlu/grad 215 Mar 12 07:02 1993 ./include/bsd/netinet/in.h

If you reply by mail, I'll post a summary to the group.

Thanks in advance to all concerned.

Deeran

(Email : ins308z@aurora.cc.monash.edu.au)