LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

TCPHA Problem

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: TCPHA Problem
From: "Antonino Esposito" <t.esposito@xxxxxxxx>
Date: Tue, 29 Mar 2005 14:27:12 +0200
Hi, I have a problem when I compile tcpha_fe on my front-end.
The following error appears:


[root@cerbero fe]# make
gcc -D__KERNEL__ -DMODULE  -DEXPORT_SYMTAB -DMODVERSIONS  -g 
-DCONFIG_TCPHA_FE_DEBUG -O2 -Wall -Wstrict-prototypes -I/usr/src/linux/include 
-include /usr/src/linux/include/linux/modversions.h   -c -o tcpha_fe.o 
tcpha_fe.c
<command line>:168542470:49480: /usr/src/linux/include/linux/modversions.h: No 
such file or directory
In file included from tcpha_fe.c:21:
tcpha_fe.h:33:67: net/dst.h: No such file or directory
In file included from /usr/include/sys/uio.h:24,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/net/route.h:25,
                 from tcpha_fe.h:34,
                 from tcpha_fe.c:21:
/usr/include/sys/types.h:41: error: conflicting types for `fsid_t'
/usr/include/asm/statfs.h:8: error: previous declaration of `fsid_t'
/usr/include/sys/types.h:62: error: conflicting types for `dev_t'
/usr/include/linux/types.h:21: error: previous declaration of `dev_t'
/usr/include/sys/types.h:72: error: conflicting types for `mode_t'
/usr/include/linux/types.h:23: error: previous declaration of `mode_t'
/usr/include/sys/types.h:77: error: conflicting types for `nlink_t'
/usr/include/linux/types.h:24: error: previous declaration of `nlink_t'
In file included from /usr/include/sys/types.h:216,
                 from /usr/include/sys/uio.h:24,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/net/route.h:25,
                 from tcpha_fe.h:34,
                 from tcpha_fe.c:21:
/usr/include/sys/select.h:38: error: conflicting types for `sigset_t'
/usr/include/asm/signal.h:21: error: previous declaration of `sigset_t'
In file included from /usr/include/sys/select.h:44,
                 from /usr/include/sys/types.h:216,
                 from /usr/include/sys/uio.h:24,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/net/route.h:25,
                 from tcpha_fe.h:34,
                 from tcpha_fe.c:21:
/usr/include/time.h:119: error: redefinition of `struct timespec'
In file included from /usr/include/sys/select.h:46,
                 from /usr/include/sys/types.h:216,
                 from /usr/include/sys/uio.h:24,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/net/route.h:25,
                 from tcpha_fe.h:34,
                 from tcpha_fe.c:21:
/usr/include/bits/time.h:70: error: redefinition of `struct timeval'
In file included from /usr/include/sys/types.h:216,
                 from /usr/include/sys/uio.h:24,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/net/route.h:25,
                 from tcpha_fe.h:34,
                 from tcpha_fe.c:21:
/usr/include/sys/select.h:78: error: conflicting types for `fd_set'
/usr/include/linux/types.h:20: error: previous declaration of `fd_set'
In file included from /usr/include/sys/uio.h:29,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/net/route.h:25,
                 from tcpha_fe.h:34,
                 from tcpha_fe.c:21:
/usr/include/bits/uio.h:43: error: redefinition of `struct iovec'
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/net/route.h:25,
                 from tcpha_fe.h:34,
                 from tcpha_fe.c:21:
/usr/include/bits/socket.h:43: error: syntax error before numeric constant
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/net/route.h:25,
                 from tcpha_fe.h:34,
                 from tcpha_fe.c:21:
/usr/include/bits/socket.h:146: error: redefinition of `struct sockaddr'
/usr/include/bits/socket.h:163: error: redefinition of `struct 
__kernel_sockaddr_storage'
/usr/include/bits/socket.h:173: error: syntax error before numeric constant
/usr/include/bits/socket.h:188: error: syntax error before numeric constant
/usr/include/bits/socket.h:216: error: redefinition of `struct msghdr'
/usr/include/bits/socket.h:231: error: redefinition of `struct cmsghdr'
/usr/include/bits/socket.h:258: error: conflicting types for `__cmsg_nxthdr'
/usr/include/linux/socket.h:121: error: previous declaration of `__cmsg_nxthdr'
/usr/include/bits/socket.h:265: error: redefinition of `__cmsg_nxthdr'
/usr/include/bits/socket.h:258: error: `__cmsg_nxthdr' previously defined here
/usr/include/bits/socket.h:286: error: syntax error before numeric constant
/usr/include/bits/socket.h:298: error: redefinition of `struct ucred'
/usr/include/bits/socket.h:310: error: redefinition of `struct linger'
In file included from /usr/include/net/route.h:27,
                 from tcpha_fe.h:34,
                 from tcpha_fe.c:21:
/usr/include/netinet/in.h:33: error: conflicting types for `IPPROTO_IP'
/usr/include/linux/in.h:26: error: previous declaration of `IPPROTO_IP'
/usr/include/netinet/in.h:37: error: conflicting types for `IPPROTO_ICMP'
/usr/include/linux/in.h:27: error: previous declaration of `IPPROTO_ICMP'
/usr/include/netinet/in.h:39: error: conflicting types for `IPPROTO_IGMP'
/usr/include/linux/in.h:28: error: previous declaration of `IPPROTO_IGMP'
/usr/include/netinet/in.h:41: error: conflicting types for `IPPROTO_IPIP'
/usr/include/linux/in.h:29: error: previous declaration of `IPPROTO_IPIP'
/usr/include/netinet/in.h:43: error: conflicting types for `IPPROTO_TCP'
/usr/include/linux/in.h:30: error: previous declaration of `IPPROTO_TCP'
/usr/include/netinet/in.h:45: error: conflicting types for `IPPROTO_EGP'
/usr/include/linux/in.h:31: error: previous declaration of `IPPROTO_EGP'
/usr/include/netinet/in.h:47: error: conflicting types for `IPPROTO_PUP'
/usr/include/linux/in.h:32: error: previous declaration of `IPPROTO_PUP'
/usr/include/netinet/in.h:49: error: conflicting types for `IPPROTO_UDP'
/usr/include/linux/in.h:33: error: previous declaration of `IPPROTO_UDP'
/usr/include/netinet/in.h:51: error: conflicting types for `IPPROTO_IDP'
/usr/include/linux/in.h:34: error: previous declaration of `IPPROTO_IDP'
/usr/include/netinet/in.h:55: error: conflicting types for `IPPROTO_IPV6'
/usr/include/linux/in.h:38: error: previous declaration of `IPPROTO_IPV6'
/usr/include/netinet/in.h:61: error: conflicting types for `IPPROTO_RSVP'
/usr/include/linux/in.h:35: error: previous declaration of `IPPROTO_RSVP'
/usr/include/netinet/in.h:63: error: conflicting types for `IPPROTO_GRE'
/usr/include/linux/in.h:36: error: previous declaration of `IPPROTO_GRE'
/usr/include/netinet/in.h:65: error: conflicting types for `IPPROTO_ESP'
/usr/include/linux/in.h:42: error: previous declaration of `IPPROTO_ESP'
/usr/include/netinet/in.h:67: error: conflicting types for `IPPROTO_AH'
/usr/include/linux/in.h:43: error: previous declaration of `IPPROTO_AH'
/usr/include/netinet/in.h:79: error: conflicting types for `IPPROTO_PIM'
/usr/include/linux/in.h:40: error: previous declaration of `IPPROTO_PIM'
/usr/include/netinet/in.h:81: error: conflicting types for `IPPROTO_COMP'
/usr/include/linux/in.h:44: error: previous declaration of `IPPROTO_COMP'
/usr/include/netinet/in.h:85: error: conflicting types for `IPPROTO_RAW'
/usr/include/linux/in.h:46: error: previous declaration of `IPPROTO_RAW'
/usr/include/netinet/in.h:88: error: conflicting types for `IPPROTO_MAX'
/usr/include/linux/in.h:48: error: previous declaration of `IPPROTO_MAX'
/usr/include/netinet/in.h:138: error: redefinition of `struct in_addr'
/usr/include/netinet/in.h:220: error: redefinition of `struct sockaddr_in'
In file included from /usr/include/netinet/in.h:253,
                 from /usr/include/net/route.h:27,
                 from tcpha_fe.h:34,
                 from tcpha_fe.c:21:
/usr/include/bits/in.h:74: error: redefinition of `struct ip_mreq'
/usr/include/bits/in.h:81: error: redefinition of `struct ip_mreqn'
/usr/include/bits/in.h:89: error: redefinition of `struct in_pktinfo'
In file included from /usr/include/net/route.h:27,
                 from tcpha_fe.h:34,
                 from tcpha_fe.c:21:
/usr/include/netinet/in.h:262: error: syntax error before '(' token
/usr/include/netinet/in.h:262: error: syntax error before "__u32"
/usr/include/netinet/in.h:263: error: syntax error before '(' token
/usr/include/netinet/in.h:263: error: syntax error before "__u16"
/usr/include/netinet/in.h:265: error: syntax error before '(' token
/usr/include/netinet/in.h:265: error: syntax error before "__u32"
/usr/include/netinet/in.h:267: error: syntax error before '(' token
/usr/include/netinet/in.h:267: error: syntax error before "__u16"
tcpha_fe.h:35:21: net/tcp.h: No such file or directory
tcpha_fe.h:36:21: net/udp.h: No such file or directory
tcpha_fe.h:39:54: net/icmp.h: No such file or directory
tcpha_fe.h:40:20: net/ip.h: No such file or directory
In file included from tcpha_fe.c:21:
tcpha_fe.h:77: error: field `af_tcp' has incomplete type
tcpha_fe.c: In function `worker_daemon':
tcpha_fe.c:269: error: dereferencing pointer to incomplete type
tcpha_fe.c:271: error: dereferencing pointer to incomplete type
tcpha_fe.c:275: error: dereferencing pointer to incomplete type
tcpha_fe.c: In function `adv_worker_daemon':
tcpha_fe.c:350: error: dereferencing pointer to incomplete type
tcpha_fe.c:352: error: dereferencing pointer to incomplete type
tcpha_fe.c:356: error: dereferencing pointer to incomplete type
make: *** [tcpha_fe.o] Error 1


Could you help me?
Thanks.

Toni

<Prev in Thread] Current Thread [Next in Thread>