LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   error: conflicting types for `IPPROTO_IP' (http://www.linuxquestions.org/questions/linux-software-2/error-conflicting-types-for-%60ipproto_ip-343088/)

Anastasia 07-14-2005 06:12 AM

error: conflicting types for `IPPROTO_IP'
 
Can somebody help me with the next problem:
I'm trying to compile Surge (Request Generator, it's a *nix soft).
After typing "make" it gives me back next errors:

In file included from Surgeclient.c:77:
/usr/include/linux/in.h:26: error: conflicting types for `IPPROTO_IP'
/usr/include/netinet/in.h:33: error: previous declaration of `IPPROTO_IP'
/usr/include/linux/in.h:27: error: conflicting types for `IPPROTO_ICMP'
/usr/include/netinet/in.h:37: error: previous declaration of `IPPROTO_ICMP'
/usr/include/linux/in.h:28: error: conflicting types for `IPPROTO_IGMP'
/usr/include/netinet/in.h:39: error: previous declaration of `IPPROTO_IGMP'
/usr/include/linux/in.h:29: error: conflicting types for `IPPROTO_IPIP'
/usr/include/netinet/in.h:41: error: previous declaration of `IPPROTO_IPIP'
/usr/include/linux/in.h:30: error: conflicting types for `IPPROTO_TCP'
/usr/include/netinet/in.h:43: error: previous declaration of `IPPROTO_TCP'
/usr/include/linux/in.h:31: error: conflicting types for `IPPROTO_EGP'
/usr/include/netinet/in.h:45: error: previous declaration of `IPPROTO_EGP'
/usr/include/linux/in.h:32: error: conflicting types for `IPPROTO_PUP'
/usr/include/netinet/in.h:47: error: previous declaration of `IPPROTO_PUP'
/usr/include/linux/in.h:33: error: conflicting types for `IPPROTO_UDP'
/usr/include/netinet/in.h:49: error: previous declaration of `IPPROTO_UDP'
/usr/include/linux/in.h:34: error: conflicting types for `IPPROTO_IDP'
/usr/include/netinet/in.h:51: error: previous declaration of `IPPROTO_IDP'
/usr/include/linux/in.h:35: error: conflicting types for `IPPROTO_RSVP'
/usr/include/netinet/in.h:61: error: previous declaration of `IPPROTO_RSVP'
/usr/include/linux/in.h:36: error: conflicting types for `IPPROTO_GRE'
/usr/include/netinet/in.h:63: error: previous declaration of `IPPROTO_GRE'
/usr/include/linux/in.h:38: error: conflicting types for `IPPROTO_IPV6'
/usr/include/netinet/in.h:55: error: previous declaration of `IPPROTO_IPV6'
/usr/include/linux/in.h:40: error: conflicting types for `IPPROTO_PIM'
/usr/include/netinet/in.h:79: error: previous declaration of `IPPROTO_PIM'
/usr/include/linux/in.h:42: error: conflicting types for `IPPROTO_ESP'
/usr/include/netinet/in.h:65: error: previous declaration of `IPPROTO_ESP'
/usr/include/linux/in.h:43: error: conflicting types for `IPPROTO_AH'
/usr/include/netinet/in.h:67: error: previous declaration of `IPPROTO_AH'
/usr/include/linux/in.h:44: error: conflicting types for `IPPROTO_COMP'
/usr/include/netinet/in.h:81: error: previous declaration of `IPPROTO_COMP'
/usr/include/linux/in.h:45: error: conflicting types for `IPPROTO_SCTP'
/usr/include/netinet/in.h:83: error: previous declaration of `IPPROTO_SCTP'
/usr/include/linux/in.h:47: error: conflicting types for `IPPROTO_RAW'
/usr/include/netinet/in.h:85: error: previous declaration of `IPPROTO_RAW'
/usr/include/linux/in.h:49: error: conflicting types for `IPPROTO_MAX'
/usr/include/netinet/in.h:88: error: previous declaration of `IPPROTO_MAX'
/usr/include/linux/in.h:53: error: redefinition of `struct in_addr'
/usr/include/linux/in.h:109: error: redefinition of `struct ip_mreq'
/usr/include/linux/in.h:115: error: redefinition of `struct ip_mreqn'
/usr/include/linux/in.h:166: error: redefinition of `struct in_pktinfo'
/usr/include/linux/in.h:174: error: redefinition of `struct sockaddr_in'

What can be wrong?

Thanks


All times are GMT -5. The time now is 05:11 PM.