LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: TCPHA Problem

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: TCPHA Problem
From: "Antonino Esposito" <t.esposito@xxxxxxxx>
Date: Wed, 30 Mar 2005 12:45:22 +0200
I have installed kernel source, the directory /usr/src/linux doesn't exist then 
I have added a symbol link to it "ln -s /usr/src/linux-2.4.22-1.2115.nptl 
/usr/src/linux".
Now, when I compile tcpha_fe the error is:

[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
In file included from /usr/src/linux/include/asm/semaphore.h:39,
                 from /usr/src/linux/include/linux/fs.h:202,
                 from /usr/src/linux/include/linux/capability.h:17,
                 from /usr/src/linux/include/linux/binfmts.h:4,
                 from /usr/src/linux/include/linux/sched.h:10,
                 from /usr/src/linux/include/linux/skbuff.h:19,
                 from tcpha_fe.h:15,
                 from tcpha_fe.c:21:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
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_con.o 
tcpha_fe_con.c
In file included from /usr/src/linux/include/asm/semaphore.h:39,
                 from /usr/src/linux/include/linux/fs.h:202,
                 from /usr/src/linux/include/linux/capability.h:17,
                 from /usr/src/linux/include/linux/binfmts.h:4,
                 from /usr/src/linux/include/linux/sched.h:10,
                 from /usr/src/linux/include/linux/skbuff.h:19,
                 from tcpha_fe.h:15,
                 from tcpha_fe_con.c:7:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
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_redirect.o 
tcpha_fe_redirect.c
In file included from /usr/src/linux/include/asm/semaphore.h:39,
                 from /usr/src/linux/include/linux/fs.h:202,
                 from /usr/src/linux/include/linux/capability.h:17,
                 from /usr/src/linux/include/linux/binfmts.h:4,
                 from /usr/src/linux/include/linux/sched.h:10,
                 from /usr/src/linux/include/linux/skbuff.h:19,
                 from tcpha_fe.h:15,
                 from tcpha_fe_redirect.c:7:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
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_http.o 
tcpha_fe_http.c
In file included from /usr/src/linux/include/asm/semaphore.h:39,
                 from /usr/src/linux/include/linux/fs.h:202,
                 from /usr/src/linux/include/linux/capability.h:17,
                 from /usr/src/linux/include/linux/binfmts.h:4,
                 from /usr/src/linux/include/linux/sched.h:10,
                 from /usr/src/linux/include/linux/skbuff.h:19,
                 from tcpha_fe.h:15,
                 from tcpha_fe_http.c:7:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
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_misc.o 
tcpha_fe_misc.c
In file included from /usr/src/linux/include/asm/semaphore.h:39,
                 from /usr/src/linux/include/linux/fs.h:202,
                 from /usr/src/linux/include/linux/capability.h:17,
                 from /usr/src/linux/include/linux/binfmts.h:4,
                 from /usr/src/linux/include/linux/sched.h:10,
                 from /usr/src/linux/include/linux/skbuff.h:19,
                 from tcpha_fe.h:15,
                 from tcpha_fe_misc.c:7:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
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_hash.o 
tcpha_fe_hash.c
In file included from /usr/src/linux/include/asm/semaphore.h:39,
                 from /usr/src/linux/include/linux/fs.h:202,
                 from /usr/src/linux/include/linux/capability.h:17,
                 from /usr/src/linux/include/linux/binfmts.h:4,
                 from /usr/src/linux/include/linux/sched.h:10,
                 from /usr/src/linux/include/linux/skbuff.h:19,
                 from tcpha_fe.h:15,
                 from tcpha_fe_hash.c:7:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
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_file.o 
tcpha_fe_file.c
In file included from /usr/src/linux/include/asm/semaphore.h:39,
                 from /usr/src/linux/include/linux/fs.h:202,
                 from /usr/src/linux/include/linux/capability.h:17,
                 from /usr/src/linux/include/linux/binfmts.h:4,
                 from /usr/src/linux/include/linux/sched.h:10,
                 from /usr/src/linux/include/linux/skbuff.h:19,
                 from tcpha_fe.h:15,
                 from tcpha_fe_file.c:7:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
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_bh.o 
tcpha_fe_bh.c
In file included from /usr/src/linux/include/asm/semaphore.h:39,
                 from /usr/src/linux/include/linux/fs.h:202,
                 from /usr/src/linux/include/linux/capability.h:17,
                 from /usr/src/linux/include/linux/binfmts.h:4,
                 from /usr/src/linux/include/linux/sched.h:10,
                 from /usr/src/linux/include/linux/skbuff.h:19,
                 from tcpha_fe.h:15,
                 from tcpha_fe_bh.c:7:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
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_mit.o 
tcpha_fe_mit.c
In file included from /usr/src/linux/include/asm/semaphore.h:39,
                 from /usr/src/linux/include/linux/fs.h:202,
                 from /usr/src/linux/include/linux/capability.h:17,
                 from /usr/src/linux/include/linux/binfmts.h:4,
                 from /usr/src/linux/include/linux/sched.h:10,
                 from /usr/src/linux/include/linux/skbuff.h:19,
                 from tcpha_fe.h:15,
                 from tcpha_fe_mit.c:7:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:189: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
ld -r tcpha_fe.o tcpha_fe_con.o tcpha_fe_redirect.o tcpha_fe_http.o 
tcpha_fe_misc.o tcpha_fe_hash.o tcpha_fe_file.o tcpha_fe_bh.o tcpha_fe_mit.o 
regex/librxspencer.a -o ktcphafe.o


Why?
Thanks

Toni




-----Original Message-----
From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx on behalf of 
dragonfly@xxxxxxxxxxxx
Sent: Wed 3/30/2005 2:42 AM
To: LinuxVirtualServer.org users mailing list.
Subject: Re: TCPHA Problem
 
Hi,
   First Make sure you have installed kernel source,then make sure the
directory :'/usr/src/linux' exist.Note:maybe after you installed kernel
source,the directory be like this:'/usr/src/linux-2.4.20-8',or be like
this:'/usr/src/linux-2.4'.At lease Redhat 9.0 is so:).then you should
add a symbol link to it:ln -s /usr/src/linux-2.4 /usr/src/linux.

Best Regards

?? Antonino Esposito <t.esposito@xxxxxxxx>:

> 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
> _______________________________________________
> LinuxVirtualServer.org mailing list -
> lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
> 







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