autopkgtest gutsy keepalived: erroneous package!

Bug #136534 reported by Ian Jackson autopkgtest
Affects Status Importance Assigned to Milestone
keepalived (Ubuntu)
Steve Langasek

Bug Description

Hash: SHA1

 affects /ubuntu/keepalived
 importance high

 Test executed for: gutsy source keepalived
 Outcome: erroneous package!
  blame: arg:tmp/keepalived/src/keepalived_1.1.12-1ubuntu1.dsc dsc:keepalived
  badpkg: rules build failed with exit code 2
  quitting: erroneous package: rules build failed with exit code 2

  erroneous package!

This message is automatically generated by the autopkgtest package
testing system. You are receiving it because:
 The test results appear to indicate a problem with the package
 and reports for package maintainers for gutsy are being directed to
 <email address hidden>

The test log, which is intended to be sufficient to diagnose most
failures, can be found below. However, in case this is not
sufficient, another copy can be found along with output files, saved
temporary files, and so on, at:

The test environment is an amd64 Xen guest with limited amounts of
memory. The relevant dependencies are installed for each test but
very few other packages. Most autopkgtest reports are FTBFS problems.

If you have any questions about this service please contact me at:
 Ian Jackson <email address hidden>


- -8<-
++++++ fetching ++++++
++++++ selecting ++++++
selected keepalived (age <never-yet>, score 500000000)

Package: keepalived
Binary: keepalived
Version: 1.1.12-1ubuntu1
Priority: optional
Section: admin
Maintainer: Alexander Wirt <email address hidden>
Build-Depends: debhelper (>> 4.1.0), libssl-dev, libpopt-dev, textutils, cdbs
Architecture: any
Standards-Version: 3.7.2
Format: 1.0
Directory: pool/main/k/keepalived
 65dc0e39bab5e1804aacbe073f47ab13 636 keepalived_1.1.12-1ubuntu1.dsc
 622e656a1e79566df04f2922afef524c 215811 keepalived_1.1.12.orig.tar.gz
 74b5a75e28930429e856f7780800cc60 12684 keepalived_1.1.12-1ubuntu1.diff.gz

++++++ fetching ++++++
++++++ fetching ++++++
++++++ fetching ++++++
++++++ starting test ++++++
+ adt-run --tmp-dir tmp/keepalived/tmp --output-dir tmp/keepalived/out --log-file tmp/keepalived/log --summary tmp/_summary --built-binaries-filter=__ --source tmp/keepalived/src/keepalived_1.1.12-1ubuntu1.dsc --- adt-virt-xenlvm --userv --distro=gutsy --
adt-run: trace: ** init
adt-run: trace: ** start
adt-run: trace: $ vserver: adt-virt-xenlvm --userv --distro=gutsy --
File descriptor 6 left open
adt-run: trace: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ starting
adt-run: trace: ** open, scratch=None
File descriptor 10 left open
File descriptor 10 left open
adt-run: trace: * initialising
adt-run: trace: * no key generation needed
adt-run: trace: * reset
adt-run: trace: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ builds ...
adt-run: trace: @@@@@@@@@@@@@@@@@@@@ dsc dsc0
adt-run: trace: * publish
adt-run: trace: $ ftparchive: sh -ec <SCRIPT> x tmp/keepalived/tmp/binaries /home/iwj/.autopkgtest/gpg
adt-run: trace: $ apt-key: sh -ec <SCRIPT>
Get:1 file: Release.gpg [189B]
Get:2 gutsy Release.gpg [191B]
Get:3 file: Release [724B]
Get:4 gutsy Release [65.9kB]
Ign file: Packages
Get:5 gutsy/main Packages [1095kB]
Get:6 gutsy/restricted Packages [6830B]
Get:7 gutsy/universe Packages [3947kB]
Get:8 gutsy/multiverse Packages [153kB]
Fetched 5267kB in 2s (1926kB/s)
Reading package lists...
adt-run: trace: * publish reinstall checking...
adt-run: trace: * publish install...
adt-run: trace: * publish done
adt-run: trace: $ dsc0: python -c <SCRIPT>
adt-run: trace: $ dsc0-extract: sh -ec <SCRIPT> x /root/adt-downtmp/dsc0-build/tmpdir /root/adt-downtmp/dsc0/keepalived_1.1.12-1ubuntu1.dsc
+ spec=/root/adt-downtmp/dsc0/keepalived_1.1.12-1ubuntu1.dsc
+ pwd
+ origpwd=/root/adt-downtmp/dsc0-build
+ cd /root/adt-downtmp/dsc0-build
+ chown adtxenu .
+ TMPDIR=/root/adt-downtmp/dsc0-build/tmpdir
+ rm -rf -- /root/adt-downtmp/dsc0-build/tmpdir
+ export TMPDIR
+ su adtxenu -c mkdir -- "$TMPDIR"
+ spec=/root/adt-downtmp/dsc0/keepalived_1.1.12-1ubuntu1.dsc origpwd=/root/adt-downtmp/dsc0-build su adtxenu -c
   dpkg-source -x $spec

gpg: new configuration file `/home/adtxenu/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/adtxenu/.gnupg/gpg.conf' are not yet active during this run
gpg: Signature made Fri Sep 15 16:18:50 2006 UTC using DSA key ID C978C8AE
gpg: Can't check signature: public key not found
dpkg-source: extracting keepalived in keepalived-1.1.12
dpkg-source: unpacking keepalived_1.1.12.orig.tar.gz
dpkg-source: applying /root/adt-downtmp/dsc0/keepalived_1.1.12-1ubuntu1.diff.gz
+ cd keepalived-1.1.12/.
+ pwd
+ set +e
+ test -f debian/tests/control
+ echo 1
adt-run: trace: * <dsc:dsc0> build needed for binaries
adt-run: trace: $ dsc0: python -c <SCRIPT>
adt-run: trace: $ dsc0-build: sh -ec <SCRIPT> x /root/adt-downtmp/dsc0-build/tmpdir /root/adt-downtmp/dsc0-build/keepalived-1.1.12
+ TMPDIR=/root/adt-downtmp/dsc0-build/tmpdir
+ rm -rf -- /root/adt-downtmp/dsc0-build/tmpdir
+ export TMPDIR
+ su adtxenu -c mkdir -- "$TMPDIR"
+ cd /root/adt-downtmp/dsc0-build/keepalived-1.1.12
+ dpkg-checkbuilddeps
+ su adtxenu -c debian/rules build
test -x debian/rules
mkdir -p "."
/usr/bin/make -f debian/rules reverse-config
make[1]: Entering directory `/root/adt-downtmp/dsc0-build/keepalived-1.1.12'
make[1]: Nothing to be done for `reverse-config'.
make[1]: Leaving directory `/root/adt-downtmp/dsc0-build/keepalived-1.1.12'
if [ "debian/stamp-patched" = "reverse-patches" ]; then rm -f debian/stamp-patched; fi
patches: debian/patches/00_fix-manpagepath.patch debian/patches/01_fix-genhash-manpagepath.patch
Trying patch debian/patches/00_fix-manpagepath.patch at level 1 ... 0 ... success.
Trying patch debian/patches/01_fix-genhash-manpagepath.patch at level 1 ... 0 ... success.
if [ "debian/stamp-patched" != "reverse-patches" ]; then touch debian/stamp-patched; fi
if [ "debian/stamp-patched" != "reverse-patches" ] ; then \
  /usr/bin/make -f debian/rules update-config ; \
make[1]: Entering directory `/root/adt-downtmp/dsc0-build/keepalived-1.1.12'
make[1]: Nothing to be done for `update-config'.
make[1]: Leaving directory `/root/adt-downtmp/dsc0-build/keepalived-1.1.12'
touch debian/stamp-autotools-files
chmod a+x /root/adt-downtmp/dsc0-build/keepalived-1.1.12/./configure
cd . && CC="cc" CXX="g++" CFLAGS="-g -Wall -O2" CXXFLAGS="-g -Wall -O2" CPPFLAGS="" LDFLAGS="" /root/adt-downtmp/dsc0-build/keepalived-1.1.12/./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" --disable-maintainer-mode --disable-dependency-tracking --srcdir=. --with-kernel-dir=/root/adt-downtmp/dsc0-build/keepalived-1.1.12/debian
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for strip... strip
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/md5.h usability... yes
checking openssl/md5.h presence... yes
checking for openssl/md5.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking for MD5_Init in -lcrypto... yes
checking for SSL_CTX_new in -lssl... yes
checking for poptGetContext in -lpopt... yes
checking for kernel version... 0.0.0
configure: WARNING: Cannot determine Linux Kernel version.
checking for /root/adt-downtmp/dsc0-build/keepalived-1.1.12/debian/net/core/link_watch.c... no
checking net/ip_vs.h usability... yes
checking net/ip_vs.h presence... yes
checking for net/ip_vs.h... yes
checking for IPVS version... 1.2.1
checking for IPVS syncd support... no
checking for kernel netlink support... yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether cc needs -traditional... no
checking for working memcmp... yes
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for select... yes
checking for socket... yes
checking for strerror... yes
checking for strtol... yes
checking for uname... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating genhash/Makefile
config.status: creating keepalived/core/Makefile
config.status: creating keepalived/include/config.h
config.status: creating keepalived.spec
config.status: creating keepalived/Makefile
config.status: creating lib/Makefile
config.status: creating keepalived/vrrp/Makefile
config.status: creating keepalived/check/Makefile
config.status: creating keepalived/libipfwc/Makefile

Keepalived configuration
- ------------------------
Keepalived version : 1.1.12
Compiler : cc
Compiler flags : -g -Wall -O2
Extra Lib : -lpopt -lssl -lcrypto
Use IPVS Framework : Yes
IPVS sync daemon support : No
Use VRRP Framework : Yes
Use LinkWatch : No
Use Debug flags : No
/usr/bin/make -C .
make[1]: Entering directory `/root/adt-downtmp/dsc0-build/keepalived-1.1.12'
/usr/bin/make -C lib || exit 1;
make[2]: Entering directory `/root/adt-downtmp/dsc0-build/keepalived-1.1.12/lib'
cc -g -Wall -O2 -I. -Wall -Wunused -Wstrict-prototypes -c memory.c
cc -g -Wall -O2 -I. -Wall -Wunused -Wstrict-prototypes -c utils.c
cc -g -Wall -O2 -I. -Wall -Wunused -Wstrict-prototypes -c notify.c
cc -g -Wall -O2 -I. -Wall -Wunused -Wstrict-prototypes -c timer.c
cc -g -Wall -O2 -I. -Wall -Wunused -Wstrict-prototypes -c scheduler.c
cc -g -Wall -O2 -I. -Wall -Wunused -Wstrict-prototypes -c vector.c
cc -g -Wall -O2 -I. -Wall -Wunused -Wstrict-prototypes -c list.c
cc -g -Wall -O2 -I. -Wall -Wunused -Wstrict-prototypes -c html.c
cc -g -Wall -O2 -I. -Wall -Wunused -Wstrict-prototypes -c parser.c
cc -g -Wall -O2 -I. -Wall -Wunused -Wstrict-prototypes -c signals.c
make[2]: Leaving directory `/root/adt-downtmp/dsc0-build/keepalived-1.1.12/lib'
/usr/bin/make -C keepalived
make[2]: Entering directory `/root/adt-downtmp/dsc0-build/keepalived-1.1.12/keepalived'
make[3]: Entering directory `/root/adt-downtmp/dsc0-build/keepalived-1.1.12/keepalived/core'
cc -g -Wall -O2 -I/root/adt-downtmp/dsc0-build/keepalived-1.1.12/debian/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_2_ -D_WITH_LVS_ -D_WITH_VRRP_ -c main.c
cc -g -Wall -O2 -I/root/adt-downtmp/dsc0-build/keepalived-1.1.12/debian/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_2_ -D_WITH_LVS_ -D_WITH_VRRP_ -c daemon.c
cc -g -Wall -O2 -I/root/adt-downtmp/dsc0-build/keepalived-1.1.12/debian/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_2_ -D_WITH_LVS_ -D_WITH_VRRP_ -c pidfile.c
cc -g -Wall -O2 -I/root/adt-downtmp/dsc0-build/keepalived-1.1.12/debian/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_2_ -D_WITH_LVS_ -D_WITH_VRRP_ -c layer4.c
In file included from ../include/check_api.h:29,
                 from layer4.c:27:
../include/check_data.h:38:27: error: linux/ip_masq.h: No such file or directory
../include/check_data.h:39:25: error: net/ip_masq.h: No such file or directory
In file included from ../include/check_api.h:29,
                 from layer4.c:27:
../include/check_data.h:113: error: 'IP_MASQ_TNAME_MAX' undeclared here (not in a function)
layer4.c: In function 'tcp_socket_state':
layer4.c:111: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness
make[3]: *** [layer4.o] Error 1
make[3]: Leaving directory `/root/adt-downtmp/dsc0-build/keepalived-1.1.12/keepalived/core'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/root/adt-downtmp/dsc0-build/keepalived-1.1.12/keepalived'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/adt-downtmp/dsc0-build/keepalived-1.1.12'
make: *** [debian/stamp-makefile-build] Error 2
blame: arg:tmp/keepalived/src/keepalived_1.1.12-1ubuntu1.dsc dsc:keepalived
badpkg: rules build failed with exit code 2
adt-run: erroneous package: rules build failed with exit code 2
adt-run: trace: ** stop
adt-run: trace: ** close, scratch=tb-scratch~/root/adt-downtmp:-/|/root/adt-downtmp/!
++++++ RESULTS erroneous package! ++++++
++++++ bundling ++++++
++++++ uploading ++++++
++++++ contacting maintainer_email_override ++++++
++++++ tested. ++++++

Version: GnuPG v1.4.3 (GNU/Linux)


Related branches

Matthias Klose (doko)
Changed in keepalived:
status: New → Confirmed
Changed in keepalived:
assignee: nobody → keybuk
Changed in keepalived:
assignee: keybuk → nobody
Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

Moving milestone to beta.

Revision history for this message
Steve Langasek (vorlon) wrote :

Root failure:

  checking for kernel version... 0.0.0
  configure: WARNING: Cannot determine Linux Kernel version. uses this code to detect the kernel version:

    #include <stdlib.h>
    #include <stdio.h>
    #include <linux/version.h>
    int main (void) {
      FILE *fp = fopen ("linuxinfo", "w");
      if (!fp) return 1;
      fprintf (fp, "%s\n", UTS_RELEASE);
      fclose (fp);
      return 0;

this is incorrect for recent linux-kernel-headers, which no longer expose UTS_RELEASE to userspace in linux/version.h, causing keepalived to misdetect the target kernel as 2.2.

Revision history for this message
Steve Langasek (vorlon) wrote :

Here is a patch that fixes keepalived for compatibility with recent linux-libc-dev. In addition to the UTS_RELEASE issue, an extra define is needed in vrrp_arp.c to avoid typedef conflicts between linux/types.h and sys/types.h.

A sponsorable package is available at <>.

Changed in keepalived:
assignee: nobody → vorlon
Revision history for this message
Daniel Holbach (dholbach) wrote :

Next time please adhere (update-maintainer of the ubuntu-dev-tools package does that).


Revision history for this message
Steve Langasek (vorlon) wrote :

keepalived (1.1.12-1ubuntu2) gutsy; urgency=low

  [ Steve Langasek ]
  * 99_linux_2.6_compat.patch, fixes needed to build with current
    linux-libc-dev headers:
    - Parse LINUX_VERSION_CODE to get a kernel version instead of
      relying on UTS_RELEASE, since the latter is deliberately no longer
      exported to userspace; and default to 2.6 when a kernel version
      can't be detected instead of defaulting to 2.2 which is no longer
      interesting (LP: #136534).
    - Define __KERNEL_STRICT_NAMES to circumvent a conflict between
      types in linux/types.h and sys/types.h.

  [ Daniel Holbach ]
  * Modify Maintainer value to match the DebianMaintainerField

 -- Steve Langasek <email address hidden> Wed, 03 Oct 2007 12:47:38 -0700

Changed in keepalived:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers