From: andy@resi.waldorf-gmbh.de (Andreas Busse) Subject: Re: in.h problem; can't find solution. Date: 1 Jul 1993 07:06:46 GMT
In article <zmbenhalC9Eu35.FJz@netcom.com>, zmbenhal@netcom.com (Zeyd M. Ben-Halim) writes:
|> In article <C-AMB.93Jun29163940@solitude.math.utah.edu> c-amb@math.utah.edu (Mark B. Alston) writes:
|> >I believe that I have seen this problem addressed on c.o.l before but
|> >I can't find the solution anymore. While tring to compile emacs I get
|> >the following errors:
|> >
|> >/usr/include/linux/in.h:25: conflicting types for `IPPROTO_IP'
|> >/usr/include/netinet/in.h:30: previous declaration of `IPPROTO_IP'
|> >/usr/include/linux/in.h:26: conflicting types for `IPPROTO_ICMP'
|> >/usr/include/netinet/in.h:31: previous declaration of `IPPROTO_ICMP'
|> >/usr/include/linux/in.h:27: conflicting types for `IPPROTO_GGP'
|> >/usr/include/netinet/in.h:32: previous declaration of `IPPROTO_GGP'
|> >...
|> >there are at least 5 more errors exactly the same.
|> >
|> >However, I can't find any conflicts while looking at the files myself.
|> >What gives?
|> >
|> >Anyhow, I am using 0.99-10 and the 4.4 libs with gcc 2.3.3.
|>
|> Just make netinet/in.h a link to linux/in.h or change it to have
|> #include <linux/in.h>
|> and nothing else.
|>
|> Zeyd
|>
|> >Thanks for your help.
|> >
|> >P.S. If this is a faq shouldn't the solution or patch be kept with the
|> >new header files on the ftp sites?
|>
|> The fix hardly warrents a patch.
|>
|> >--
|> >
|> > Mark Alston "U.S. out of North America"
|> > c-amb@math.utah.edu -anonymous
|> >
|> > PGP Public key available via finger
Hi !
The solution was already posted in c.o.l.
Anyway, once again:
The files in.h in /usr/include/netinet/ and in /usr/src/linux/include contain
the same enumerations.
What you have to do is to edit /usr/src/linux/include/in.h:
#ifndef _NETINET_IN_H
[enum follows]
#endif
Now it should work.
Andy