Package: keepalived
Version: 1.1.17-1
Severity: important
Tags: patch
Hi Alexander!
keepalived 1.1.17-1 seems to be compiled without IPVS support. It
seems that you have missed my patch about using linux-libc-dev. I
attach the patch to this bug report.
I also suggest to add "-rm configure" to clean rules in debian/rules
to ensure that diff.gz is not cluttered with the newly generated
configure.
Thanks.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-1-amd64 (SMP w/1 CPU core)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages keepalived depends on:
ii iproute 20090324-1 networking and traffic control too
ii ipvsadm 1:1.24-2.1 Linux Virtual Server support progr
ii libc6 2.9-12 GNU C Library: Shared libraries
ii libpopt0 1.14-4 lib for parsing cmdline parameters
ii libssl0.9.8 0.9.8g-16 SSL shared libraries
keepalived recommends no packages.
keepalived suggests no packages.
-- no debconf information
diff --git a/configure.in b/configure.in
index 4d7aa34..5b14ffb 100644
--- a/configure.in
+++ b/configure.in
@@ -102,7 +102,7 @@ AC_SUBST(KERN)
dnl ----[ Checks for LVS and VRRP support ]----
IPVS_SUPPORT="_WITHOUT_LVS_"
if test "$enable_lvs" != "no"; then
- AC_CHECK_HEADER([net/ip_vs.h],
+ AC_CHECK_HEADER([linux/ip_vs.h],
[IPVS_SUPPORT="_WITH_LVS_"],
[
IPVS_SUPPORT="_WITHOUT_LVS_"
@@ -118,7 +118,7 @@ if test "$IPVS_SUPPORT" = "_WITH_LVS_"; then
AC_TRY_RUN([
#include <stdlib.h>
#include <stdio.h>
- #include <net/ip_vs.h>
+ #include <linux/ip_vs.h>
int main (void) {
FILE *fp = fopen ("ipvsinfo", "w");
if (!fp) return 1;
diff --git a/keepalived/include/check_data.h b/keepalived/include/check_data.h
index b6cc201..3ad328f 100644
--- a/keepalived/include/check_data.h
+++ b/keepalived/include/check_data.h
@@ -41,7 +41,7 @@
#else
#define SCHED_MAX_LENGTH IP_VS_SCHEDNAME_MAXLEN
#endif
-#include <net/ip_vs.h>
+#include <linux/ip_vs.h>
#else
#define SCHED_MAX_LENGTH 1
#endif
diff --git a/keepalived/include/ipvswrapper.h b/keepalived/include/ipvswrapper.h
index 77d9085..a894c3a 100644
--- a/keepalived/include/ipvswrapper.h
+++ b/keepalived/include/ipvswrapper.h
@@ -48,7 +48,7 @@
#elif _KRNL_2_6_
#include "../libipvs-2.6/libipvs.h"
#endif
- #include <net/ip_vs.h>
+ #include <linux/ip_vs.h>
#endif
#ifndef IP_VS_TEMPLATE_TIMEOUT
diff --git a/keepalived/libipvs-2.4/libipvs.h b/keepalived/libipvs-2.4/libipvs.h
index 2418d72..c87e720 100644
--- a/keepalived/libipvs-2.4/libipvs.h
+++ b/keepalived/libipvs-2.4/libipvs.h
@@ -10,7 +10,7 @@
#ifndef _LIBIPVS_H
#define _LIBIPVS_H
-#include <net/ip_vs.h>
+#include <linux/ip_vs.h>
/*
* The default IPVS_SVC_PERSISTENT_TIMEOUT is a little larger than average
diff --git a/keepalived/libipvs-2.6/libipvs.h b/keepalived/libipvs-2.6/libipvs.h
index 47182da..630844a 100644
--- a/keepalived/libipvs-2.6/libipvs.h
+++ b/keepalived/libipvs-2.6/libipvs.h
@@ -10,7 +10,7 @@
#ifndef _LIBIPVS_H
#define _LIBIPVS_H
-#include <net/ip_vs.h>
+#include <linux/ip_vs.h>
#define MINIMUM_IPVS_VERSION_MAJOR 1
#define MINIMUM_IPVS_VERSION_MINOR 1