LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re : RE: [Keepalived] Release 0.5.6 available

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re : RE: [Keepalived] Release 0.5.6 available
Cc: keepalived-devel@xxxxxxxxxxxxxxxxxxxxx
From: "Alexandre CASSEN" <alexandre.cassen@xxxxxxxxxxxxxx>
Date: Mon, 15 Apr 2002 14:14:48 +0200
Hi Matthijs,

>I am trying to compile this new release but I am running into some trouble
(IPVS 0.8.1 on kernel-2.4.9-31).
>
>First of all I do not have 'net/ip_vs.h' in my include path, I do have it
in the kernel sources however. To resolve this, I copied
>'/usr/src/linux-2.4.9-31SGI_XFS_1.0.2/net/ipv4/ipvs/ip_vs.h' into a subdir
'net' of the keepalived-0.5.6 sources. Then I modified 'data.h' and
>'ipvswrapper.h' to read '#include "net/ip_vs.h"' instead of '#include
<net/ip_vs.h>'. I remember doing the exact same thing with a previous
>release of keepalived, however this time the compiler exits with the
following errors:
>
>...
>gcc -o ipwrapper.o -g -O2 -Wall -Wunused -Wstrict-prototypes -D_DEBUG_
-D_KRNL_2_4_ -I/usr/src/linux/include -c ipwrapper.c
>
>gcc -o ipvswrapper.o -g -O2 -Wall -Wunused -Wstrict-prototypes -D_DEBUG_
-D_KRNL_2_4_ -I/usr/src/linux/include -c ipvswrapper.c
>
>ipvswrapper.c: In function `ipvs_syncd_cmd':
>ipvswrapper.c:118: structure has no member named `state'
>ipvswrapper.c:120: `IP_VS_IFNAME_MAXLEN' undeclared (first use in this
function)
>ipvswrapper.c:120: (Each undeclared identifier is reported only once
>ipvswrapper.c:120: for each function it appears in.)
>ipvswrapper.c:120: structure has no member named `mcast_ifn'
>ipvswrapper.c:120: structure has no member named `mcast_ifn'
>ipvswrapper.c:120: structure has no member named `mcast_ifn'
>ipvswrapper.c:128: `IP_VS_SO_SET_STARTDAEMON' undeclared (first use in
this function)
>ipvswrapper.c:132: `IP_VS_SO_SET_STOPDAEMON' undeclared (first use in this
function)
>ipvswrapper.c:129: warning: unreachable code at beginning of switch
statement
>ipvswrapper.c: In function `ipvs_syncd_goto_master_thread':
>ipvswrapper.c:249: `IP_VS_SO_SET_STARTDAEMON' undeclared (first use in
this function)
>ipvswrapper.c:249: `IP_VS_STATE_MASTER' undeclared (first use in this
function)
>ipvswrapper.c: In function `ipvs_syncd_master_thread':
>ipvswrapper.c:256: `IP_VS_SO_SET_STOPDAEMON' undeclared (first use in this
function)
>ipvswrapper.c:256: `IP_VS_STATE_BACKUP' undeclared (first use in this
function)
>ipvswrapper.c: In function `ipvs_syncd_goto_backup_thread':
>ipvswrapper.c:266: `IP_VS_SO_SET_STARTDAEMON' undeclared (first use in
this function)
>ipvswrapper.c:266: `IP_VS_STATE_BACKUP' undeclared (first use in this
function)
>ipvswrapper.c: In function `ipvs_syncd_backup_thread':
>ipvswrapper.c:273: `IP_VS_SO_SET_STOPDAEMON' undeclared (first use in this
function)
>ipvswrapper.c:273: `IP_VS_STATE_MASTER' undeclared (first use in this
function)
>make: *** [ipvswrapper.o] Error 1
>
>What am I doing wrong? This release of keepalived is supposed to work with
version 0.8.1 of ipvs, isn't it?

Oops, Yes the problem is because IPVS in version 0.8.x doesn't support LVS
sync daemon. I hightly recommand you to upgrade to the last 1.0.2 to have
this functionality (or 0.9.x which is the starting point release to support
this functionnality).

Anyway, I will patch the autoconf/automake script to test both : ip_vs.h &
IPVS syncd support.

Best regards & thanks for feedback,
Alexandre



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