Andreas Henriksson wrote:
I wonder if just installing include/libiptc/ would solve this problem?
Could you please try this and see if it works for you:
cd /tmp
apt-get source iproute
cd iproute-*/include/
cp -r libiptc /usr/include/iproute/
This will hopefully make all headers available, but the actual library file
would still be missing. Just not linking to it might work, who knows...
$ cp -r include/libiptc /usr/include
$ cat test.c
#include <stdlib.h>
#include <stdio.h>
#include <iproute/iptables.h>
int main(int argc, char** argv)
{
printf("Hello world\n");
}
$ gcc -o test test.c
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:17,
from /usr/include/libiptc/libiptc.h:6,
from /usr/include/iproute/iptables.h:5,
from test.c:4:
/usr/include/linux/in.h:26: error: redeclaration of enumerator ‘IPPROTO_IP’
/usr/include/netinet/in.h:34: error: previous definition of ‘IPPROTO_IP’
was here
/usr/include/linux/in.h:27: error: redeclaration of enumerator
‘IPPROTO_ICMP’
/usr/include/netinet/in.h:38: error: previous definition of
‘IPPROTO_ICMP’ was here
/usr/include/linux/in.h:28: error: redeclaration of enumerator
‘IPPROTO_IGMP’
/usr/include/netinet/in.h:40: error: previous definition of
‘IPPROTO_IGMP’ was here
/usr/include/linux/in.h:29: error: redeclaration of enumerator
‘IPPROTO_IPIP’
/usr/include/netinet/in.h:42: error: previous definition of
‘IPPROTO_IPIP’ was here
/usr/include/linux/in.h:30: error: redeclaration of enumerator ‘IPPROTO_TCP’
/usr/include/netinet/in.h:44: error: previous definition of
‘IPPROTO_TCP’ was here
/usr/include/linux/in.h:31: error: redeclaration of enumerator ‘IPPROTO_EGP’
/usr/include/netinet/in.h:46: error: previous definition of
‘IPPROTO_EGP’ was here
/usr/include/linux/in.h:32: error: redeclaration of enumerator ‘IPPROTO_PUP’
/usr/include/netinet/in.h:48: error: previous definition of
‘IPPROTO_PUP’ was here
/usr/include/linux/in.h:33: error: redeclaration of enumerator ‘IPPROTO_UDP’
/usr/include/netinet/in.h:50: error: previous definition of
‘IPPROTO_UDP’ was here
/usr/include/linux/in.h:34: error: redeclaration of enumerator ‘IPPROTO_IDP’
/usr/include/netinet/in.h:52: error: previous definition of
‘IPPROTO_IDP’ was here
/usr/include/linux/in.h:36: error: redeclaration of enumerator
‘IPPROTO_RSVP’
/usr/include/netinet/in.h:62: error: previous definition of
‘IPPROTO_RSVP’ was here
/usr/include/linux/in.h:37: error: redeclaration of enumerator ‘IPPROTO_GRE’
/usr/include/netinet/in.h:64: error: previous definition of
‘IPPROTO_GRE’ was here
/usr/include/linux/in.h:39: error: redeclaration of enumerator
‘IPPROTO_IPV6’
/usr/include/netinet/in.h:56: error: previous definition of
‘IPPROTO_IPV6’ was here
/usr/include/linux/in.h:41: error: redeclaration of enumerator ‘IPPROTO_ESP’
/usr/include/netinet/in.h:66: error: previous definition of
‘IPPROTO_ESP’ was here
/usr/include/linux/in.h:42: error: redeclaration of enumerator ‘IPPROTO_AH’
/usr/include/netinet/in.h:68: error: previous definition of ‘IPPROTO_AH’
was here
/usr/include/linux/in.h:44: error: redeclaration of enumerator ‘IPPROTO_PIM’
/usr/include/netinet/in.h:80: error: previous definition of
‘IPPROTO_PIM’ was here
/usr/include/linux/in.h:46: error: redeclaration of enumerator
‘IPPROTO_COMP’
/usr/include/netinet/in.h:82: error: previous definition of
‘IPPROTO_COMP’ was here
/usr/include/linux/in.h:47: error: redeclaration of enumerator
‘IPPROTO_SCTP’
/usr/include/netinet/in.h:84: error: previous definition of
‘IPPROTO_SCTP’ was here
/usr/include/linux/in.h:50: error: redeclaration of enumerator ‘IPPROTO_RAW’
/usr/include/netinet/in.h:86: error: previous definition of
‘IPPROTO_RAW’ was here
/usr/include/linux/in.h:52: error: redeclaration of enumerator ‘IPPROTO_MAX’
/usr/include/netinet/in.h:89: error: previous definition of
‘IPPROTO_MAX’ was here
/usr/include/linux/in.h:56: error: redefinition of ‘struct in_addr’
/usr/include/linux/in.h:116: error: redefinition of ‘struct ip_mreq’
/usr/include/linux/in.h:122: error: redefinition of ‘struct ip_mreqn’
/usr/include/linux/in.h:128: error: redefinition of ‘struct ip_mreq_source’
/usr/include/linux/in.h:134: error: redefinition of ‘struct ip_msfilter’
/usr/include/linux/in.h:147: error: redefinition of ‘struct group_req’
/usr/include/linux/in.h:153: error: redefinition of ‘struct
group_source_req’
/usr/include/linux/in.h:160: error: redefinition of ‘struct group_filter’
/usr/include/linux/in.h:173: error: redefinition of ‘struct in_pktinfo’
/usr/include/linux/in.h:181: error: redefinition of ‘struct sockaddr_in’
In file included from /usr/include/libiptc/libiptc.h:6,
from /usr/include/iproute/iptables.h:5,
from test.c:4:
/usr/include/linux/netfilter_ipv4/ip_tables.h:35: error: ‘IFNAMSIZ’
undeclared here (not in a function)
Seems like we have a more general problem here. Maybe I'm doing it
wrong, though - but isn't a header in /usr/include expected to be usable
anyway ?
--
Etienne Dechamps / e-t172 - AKE Group
Website: http://www.e-t172.net/
Contact: [EMAIL PROTECTED]
Phone: +33547414942