It seems that configure system does not find "net/ip_vs.h":
root@abdal:/usr/src/keepalived-1.2.2# dpkg-buildpackage -b dpkg-buildpackage: source package keepalived dpkg-buildpackage: source version 1:1.2.2-2 dpkg-buildpackage: source changed by Alexander Wirt <formo...@debian.org> dpkg-buildpackage: host architecture amd64 dpkg-source --before-build keepalived-1.2.2 debian/rules clean ... cd . && STRIP=/bin/true CFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall" CXXFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall" CPPFLAGS="" LDFLAGS="" /usr/src/keepalived-1.2.2/./configure --build=x86_64-linux-gnu --prefix=/usr --includedir="${prefix}/include" --mandir="${prefix}/share/man" --infodir="${prefix}/share/info" --sysconfdir=/etc --localstatedir=/var --libexecdir="${prefix}/lib/keepalived" --srcdir=. --disable-maintainer-mode --disable-dependency-tracking --disable-silent-rules configure: WARNING: unrecognized options: --disable-maintainer-mode, --disable-dependency-tracking, --disable-silent-rules checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... .... checking for kernel version... 3.1.1 checking net/ip_vs.h usability... no checking net/ip_vs.h presence... no checking for net/ip_vs.h... no configure: WARNING: keepalived will be built without LVS support. checking for an ANSI C-conforming const... yes .... Keepalived configuration ------------------------ Keepalived version : 1.2.2 Compiler : gcc Compiler flags : -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall Extra Lib : -lpopt -lssl -lcrypto -lnl Use IPVS Framework : No IPVS sync daemon support : No Use VRRP Framework : Yes Use Debug flags : No So the package is build without IPVS support. I was able to build the proper package with following command: CCFLAGS="-Idebian/include" CPPFLAGS="-Idebian/include" dpkg-buildpackage -b But I do not know what is the best way to incorporate this in the build system -- Luben Karavelov