Bug#305751: Information about 305751 bug
Hi, I had a problem with keepalived source package in debian sarge. Linux kernel is 2.4.27-2-686-smp. Viewing bug reports of this package appears: After modifying it to use 2.4.27 kernel-headers and rebuilding, it works Well, if I compile it (./configure ; make ; make install) it works, but if I build the binary package (dpkg-buildpackage) the package is not valid and continues with the same error: Keepalived_healthcheckers: IPVS: Module is wrong version What I realized is that when configure script is runned by dpgk-buildpackge linux kernel version is supposed to be 2.6.0-test7 which is the version against was compiled libc (in fact there is a read operation to /lib/libc-2.3.2.so throught /lib/libc.so.6 (a symbolic link)). If you run uname -r you get the correct kernel version and there is only one kernel headers in the system under /usr/src/linux (2.4.27-2-686-smp). For this reason when I compile it it links libipvs-2.6 instead of libipvs-2.4. I tried changing in configure the conftest.c: fprintf (fp, %s\n, UTS_RELEASE); to fprintf (fp, %s\n, 2.4.27-2-686-smp); and then all went ok but there are a lot of errors during compilation. That time it generated the correct libipvs makefile, libipvs-2.4. So I supposed that there is something wrong during the debianization of the package for 2.4 kernels. I am not been able to solve it, yet. I hope this can be useful to improve keepalive source package. Best wishes, José Angel de Bustos Pérez -- ___ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze
Bug#305751: Information about 305751 bug
Jose Angel de Bustos Perez schrieb am Montag, den 03. Oktober 2005: Hi, I had a problem with keepalived source package in debian sarge. Linux kernel is 2.4.27-2-686-smp. You don't want to use keepalive with this kernel, it has serious bugs (see README.Debian for the appropiate threads). Viewing bug reports of this package appears: After modifying it to use 2.4.27 kernel-headers and rebuilding, it works Indeed, but the bugs will stay. If you REALLY want to use it whith this kernel do he following: apt-get source keepalived install the kernel-headers package copy cp ip_vs.h from include/net/ to debian/include/net in the source package rebuild the package. This is all. But if you wan't some tipp from me. Use a 2.6 kernel for keepalived, the perfomance is much much better. Best wishes Alex -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#305751: Information about 305751 bug
- Original Message - From: Alexander Wirt [EMAIL PROTECTED] To: Jose Angel de Bustos Perez [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Bug#305751: Information about 305751 bug Date: Mon, 3 Oct 2005 11:12:28 +0200 Jose Angel de Bustos Perez schrieb am Montag, den 03. Oktober 2005: Hi, I had a problem with keepalived source package in debian sarge. Linux kernel is 2.4.27-2-686-smp. You don't want to use keepalive with this kernel, it has serious bugs (see README.Debian for the appropiate threads). Viewing bug reports of this package appears: After modifying it to use 2.4.27 kernel-headers and rebuilding, it works Indeed, but the bugs will stay. If you REALLY want to use it whith this kernel do he following: apt-get source keepalived install the kernel-headers package copy cp ip_vs.h from include/net/ to debian/include/net in the source package rebuild the package. This is all. Thanks, but your workaround doesn't work: ipvswrapper.c: In function `ipvs_set_rule': ipvswrapper.c:602: error: structure has no member named `conn_flags' make[3]: *** [ipvswrapper.o] Error 1 make[3]: Leaving directory `/usr/src/pruebas/keepalived-1.1.11/keepalived/check' make[2]: *** [all] Error 1 make[2]: Leaving directory `/usr/src/pruebas/keepalived-1.1.11/keepalived' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/pruebas/keepalived-1.1.11' make: *** [debian/stamp-makefile-build] Error 2 :-( I've download kernel headers, in case there was something wrong in the ones I have intalled in the server. But if you wan't some tipp from me. Use a 2.6 kernel for keepalived, the perfomance is much much better. Unfortunately, we can't. We have serious stability problems with kernels 2.6 and debian under vmware ESX. Best wishes Alex -- ___ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze
Bug#305751: Information about 305751 bug
Jose Angel de Bustos Perez schrieb am Montag, den 03. Oktober 2005: *snip* Thanks, but your workaround doesn't work: ipvswrapper.c: In function `ipvs_set_rule': ipvswrapper.c:602: error: structure has no member named `conn_flags' make[3]: *** [ipvswrapper.o] Error 1 make[3]: Leaving directory `/usr/src/pruebas/keepalived-1.1.11/keepalived/check' make[2]: *** [all] Error 1 make[2]: Leaving directory `/usr/src/pruebas/keepalived-1.1.11/keepalived' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/pruebas/keepalived-1.1.11' make: *** [debian/stamp-makefile-build] Error 2 :-( I've download kernel headers, in case there was something wrong in the ones I have intalled in the server. But if you wan't some tipp from me. Use a 2.6 kernel for keepalived, the perfomance is much much better. Unfortunately, we can't. We have serious stability problems with kernels 2.6 and debian under vmware ESX. If you don't want zombies, switch to a recent 2.4 kernel, then keepalived should work out of the box! really! But anyhow, you are right. The keepalived configure detects it should be compiled for a 2.6 kernel, that depends on the version in /usr/include/linux/version.h. I currently don't have a good workaround, because I'm very busy today I'm not able to provide a good workaround. But you really (!) want to get keepalived working with that ancient version of the ip_vs stack try the following patch to configure.in. Its awfull, its bad, but it should work. Please don't blame me for that: --- keepalived-1.1.11/configure.in 2005-03-01 00:25:03.0 +0100 +++ /home/formorer/tmp/keepalived-1.1.11/configure.in 2005-10-03 13:47:10.065706280 +0200 @@ -76,16 +76,11 @@ ]) rm -f linuxinfo AC_MSG_RESULT([$LINUX_MAJOR.$LINUX_MINOR.$LINUX_PATCH]) - if test $LINUX_MINOR = 6; then -KERN=_KRNL_2_6_ - elif test $LINUX_MINOR = 4; then -KERN=_KRNL_2_4_ - else -KERN=_KRNL_2_2_ - fi + KERN=_KRNL_2_4_ if test $LINUX_MAJOR = 0 -a $LINUX_MINOR = 0 -a $LINUX_PATCH = 0; then AC_MSG_WARN([Cannot determine Linux Kernel version.]) fi + AC_CHECK_FILE($kernelpath/net/core/link_watch.c, [ LINKWATCH_SUPPORT=_WITH_LINKWATCH_ It told you its evil... Best wishes Alex -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]