in.h problem; can't find solution.

in.h problem; can't find solution.

Post by Mark B. Alst » Thu, 01 Jul 1993 08:39:40



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.

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?
--

  Mark Alston                   "U.S. out of North America"

  PGP Public key available via finger

 
 
 

in.h problem; can't find solution.

Post by Zeyd M. Ben-Hal » Thu, 01 Jul 1993 10:13:53



Quote:>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

Quote:>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.

- Show quoted text -

>--

>  Mark Alston                       "U.S. out of North America"

>  PGP Public key available via finger


 
 
 

in.h problem; can't find solution.

Post by Andrew Ukrain » Fri, 02 Jul 1993 07:36:29




>>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.

This is precisely what I had to do as well.  I'm glad to hear that it
was the right thing to do.  Is there anything else that should be
deleted / added?  This really should be in the README or FAQ.

Also, despite the fact that linux/kernel/chr_blk/serial.c tries to deal
with the COM4 / 8514 conflict problem, I still get a yellowish screen
from my ATI Ultra, which occaisonally flickers from white (correct) to
yellowish (yuck!).  Does anyone have any suggestions for a fix.
--

          <    (*) >               /  \             < (*)    >          
Communications Research Laboratory      McMaster Univ, Hamilton, Ontario

 
 
 

in.h problem; can't find solution.

Post by Andreas Bus » Fri, 02 Jul 1993 16:06:46




|> >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"

|> >
|> >  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

 
 
 

1. What's 'side effects' of Ksh built-ins?

Hi,

I have a book called "The new KornShell Command and Programming
Language". In several chapters, it mentions "side effects" of
built-ins. I'm confused what's that so that I can't understand some
paragraphs. Any help is appreciated.

Lesley Yang

2. sparc, apache 1.3.23, modssl 2.8.6, openssl 0.9.6c

3. It's not bad canned meat...

4. Give it a break

5. Help with Solaris X86 device driver

6. Solution requested for a 'Couldn't get a free page.....' problem

7. Display Managers

8. 'Find' 'Updatedb' or find database replacement for Solaris 2.X?

9. Can't Find Solution..... (PHP3)

10. This one I can't find any solution

11. Can ISP detect when dial-ins are 'overloaded' ?

12. how do 'plug-ins' work?