From: Matt Welsh (mdw@TC.Cornell.EDU)
Date: 07/07/93


From: mdw@TC.Cornell.EDU (Matt Welsh)
Subject: Re: bugs in inc-4.4, net2 etc...
Date: 7 Jul 1993 10:37:10 -0400

In article <1993Jul7.043638.15344@cs.ucf.edu> tuggle@indy (Trenton Tuggle) writes:
>In the inc-4.4 stuff we're told to like usual, link the include/linux
>directories & all to the /usr/src/linux stuff. But there's a little-known
>conflict there! When compiling some wierd network stuff, gcc (new one)
>complains about two incompatable type definitions for IPPROTO_* stuff:
>enum { IPPROTO_IP, IPPROTO_TCP, IPPROTO_UDP , etc...

It has nothing to do with GCC. The libc-4.4 include files conflict with
the kernel include files. Just add something like
        #ifndef _NETINET_IN_H
to the top of linux/in.h.

>Intrestingly enough, the enum definition was in fact the same (it should
>be!) so I just #ifdef'd one out... I don't have time to really play with
>it. It compiled fine then. It was ifconfig.c in net-010.

That's correct. You should read the NET channel... we've gone over
that one a few times. :)

>Now, my network problem in the first place, which was causing me to
>try and complie all these: I can't set my hostname! Man, I have no
>idea what the deal is, I installed it all almost per-faq, but when I
>try to set the hostname, it always (ALWAYS) says "unknown host: "

You don't have your hostname in /etc/hosts, or you have permission on
/etc/hosts set incorrectly. You MUST be able to resolve the hostname in
/etc/HOSTNAME. Put your FULL hostname (host and domain name) in
/etc/HOSTNAME and make sure it has an entry in /etc/hosts. Then
"hostname -S" should work.

mdw

-- 
Matt Welsh, mdw@tc.cornell.edu
Radioactive decay ain't what it used to be.