Package: tlsdate Version: 0.0.12-1 Severity: serious Justification: fails to build from source (but built successfully in the past)
Hi, Since linux 3.15, seccomp_filter has been enabled in mips kernels. This causes tlsdate to FTBFS with: > checking for LIBEVENT... yes > checking kernel for seccomp_filter support... yes > checking for CrOS-specific platform wake event support... no [...] > CC src/src_tlsdate_helper-seccomp.o > src/seccomp.c:52:4: error: #error "Platform does not support seccomp filter > yet" > # error "Platform does not support seccomp filter yet" > ^ > In file included from src/seccomp.c:21:0: > src/seccomp.c: In function 'enable_setter_seccomp': > src/seccomp.c:66:38: error: 'SECCOMP_AUDIT_ARCH' undeclared (first use in > this function) > BPF_JUMP (BPF_JMP+BPF_JEQ+BPF_K, SECCOMP_AUDIT_ARCH, 1, 0), > ^ > src/seccomp.c:66:38: note: each undeclared identifier is reported only once > for each function it appears in > make[2]: *** [src/src_tlsdate_helper-seccomp.o] Error 1 I've attached the full log of a local build I've done which was running on a machine with this kernel: > $ uname -a > Linux debian-3a-3 3.16.0-4-loongson-3 #1 SMP PREEMPT Debian 3.16.7-2 > (2014-11-06) mips64 GNU/Linux Although it doesn't fail to build on the buildds (which run older kernels), I've marked this bug as serious since it FTBFS on 3.16 which will be released with jessie. Thanks, James
dpkg-buildpackage -rfakeroot -D -us -uc dpkg-buildpackage: source package tlsdate dpkg-buildpackage: source version 0.0.12-1 dpkg-buildpackage: source distribution unstable dpkg-buildpackage: source changed by Jacob Appelbaum <ja...@appelbaum.net> dpkg-source --before-build tlsdate-0.0.12 dpkg-buildpackage: host architecture mipsel fakeroot debian/rules clean dh clean -with autotools_dev,autoreconf dh_testdir debian/rules override_dh_auto_clean make[1]: Entering directory '/home/jcowgill/tlsdate/tlsdate-0.0.12' dh_auto_clean rm -f src/configmake.h make[1]: Leaving directory '/home/jcowgill/tlsdate/tlsdate-0.0.12' dh_autotools-dev_restoreconfig dh_autoreconf_clean dh_clean dpkg-source -b tlsdate-0.0.12 dpkg-source: info: using source format `3.0 (quilt)' dpkg-source: info: building tlsdate using existing ./tlsdate_0.0.12.orig.tar.xz dpkg-source: info: building tlsdate in tlsdate_0.0.12-1.debian.tar.xz dpkg-source: info: building tlsdate in tlsdate_0.0.12-1.dsc debian/rules build dh build -with autotools_dev,autoreconf dh_testdir dh_autotools-dev_updateconfig dh_autoreconf libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'. libtoolize: copying file `config/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. libtoolize: copying file `m4/libtool.m4' libtoolize: copying file `m4/ltoptions.m4' libtoolize: copying file `m4/ltsugar.m4' libtoolize: copying file `m4/ltversion.m4' libtoolize: copying file `m4/lt~obsolete.m4' configure.ac:7: installing 'config/compile' configure.ac:5: installing 'config/config.guess' configure.ac:5: installing 'config/config.sub' configure.ac:9: installing 'config/install-sh' configure.ac:9: installing 'config/missing' Makefile.am: installing 'config/depcomp' parallel-tests: installing 'config/test-driver' debian/rules override_dh_auto_configure make[1]: Entering directory '/home/jcowgill/tlsdate/tlsdate-0.0.12' ./autogen.sh autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'. libtoolize: copying file `config/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. libtoolize: copying file `m4/libtool.m4' libtoolize: copying file `m4/ltoptions.m4' libtoolize: copying file `m4/ltsugar.m4' libtoolize: copying file `m4/ltversion.m4' libtoolize: copying file `m4/lt~obsolete.m4' autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing autoreconf: Leaving directory `.' dh_auto_configure configure: WARNING: unrecognized options: --disable-maintainer-mode checking build system type... mipsel-unknown-linux-gnu checking host system type... mipsel-unknown-linux-gnu checking target system type... mipsel-unknown-linux-gnu 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 whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... 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 minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking whether make supports nested variables... yes checking whether UID '1001' is supported by ustar format... yes checking whether GID '1001' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking dependency style of gcc... none checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert mipsel-unknown-linux-gnu file names to mipsel-unknown-linux-gnu format... func_convert_file_noop checking how to convert mipsel-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether the -Werror option is usable... yes checking for simple visibility declarations... yes checking whether make supports nested variables... (cached) yes checking for $COMPILE_DATE in the environment... ...we've found $COMPILE_DATE in the environment. ...$COMPILE_DATE is set to: 1414335821 checking PolarSSL... checking whether C compiler accepts ... yes checking for ssl_init in -lpolarssl... no checking whether C compiler accepts -I/include... yes checking for ssl_init in -lpolarssl... (cached) no checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking openssl/bio.h usability... yes checking openssl/bio.h presence... yes checking for openssl/bio.h... yes checking openssl/err.h usability... yes checking openssl/err.h presence... yes checking for openssl/err.h... yes checking openssl/evp.h usability... yes checking openssl/evp.h presence... yes checking for openssl/evp.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking for stdint.h... (cached) yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for unistd.h... (cached) yes checking linux/rtc.h usability... yes checking linux/rtc.h presence... yes checking for linux/rtc.h... yes checking for struct rtc_time... yes checking for strchrnul... yes checking for strnlen... yes checking for gettimeofday... yes checking for prctl... yes checking for preadv... yes checking for pwritev... yes checking for setresuid... yes checking for fmemopen... yes checking for funopen... no checking for clock_gettime... yes checking user/group to drop privs to... nobody:nogroup checking group to allow DBus calls from... root checking for clock_gettime... (cached) yes checking for LIBEVENT... yes checking kernel for seccomp_filter support... yes checking for CrOS-specific platform wake event support... no checking whether the linker accepts ... yes checking whether C compiler accepts -g... yes checking whether C compiler accepts -O1... yes checking whether C compiler accepts -Wall... yes checking whether C compiler accepts -fno-strict-aliasing... yes checking whether C compiler accepts -D_FORTIFY_SOURCE=2... yes checking whether C compiler accepts -fstack-protector-all... yes checking whether C compiler accepts -fwrapv... yes checking whether C compiler accepts -fPIE... yes checking whether C compiler accepts -Wstack-protector... yes checking whether C compiler accepts --param=ssp-buffer-size=1... yes checking whether the linker accepts -z relro -z now... yes checking whether the linker accepts -pie... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating dbus/org.torproject.tlsdate.conf config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands configure: WARNING: unrecognized options: --disable-maintainer-mode make[1]: Leaving directory '/home/jcowgill/tlsdate/tlsdate-0.0.12' dh_auto_build make[1]: Entering directory '/home/jcowgill/tlsdate/tlsdate-0.0.12' Making src/configmake.h make all-am make[2]: Entering directory '/home/jcowgill/tlsdate/tlsdate-0.0.12' CC src/compat/src_compat_libtlsdate_compat_la-clock-linux.lo CCLD src/compat/libtlsdate_compat.la CC src/src_tlsdate-tlsdate.o CCLD src/tlsdate CC src/src_tlsdate_helper-seccomp.o src/seccomp.c:52:4: error: #error "Platform does not support seccomp filter yet" # error "Platform does not support seccomp filter yet" ^ In file included from src/seccomp.c:21:0: src/seccomp.c: In function ‘enable_setter_seccomp’: src/seccomp.c:66:38: error: ‘SECCOMP_AUDIT_ARCH’ undeclared (first use in this function) BPF_JUMP (BPF_JMP+BPF_JEQ+BPF_K, SECCOMP_AUDIT_ARCH, 1, 0), ^ src/seccomp.c:66:38: note: each undeclared identifier is reported only once for each function it appears in Makefile:1949: recipe for target 'src/src_tlsdate_helper-seccomp.o' failed make[2]: *** [src/src_tlsdate_helper-seccomp.o] Error 1 make[2]: Leaving directory '/home/jcowgill/tlsdate/tlsdate-0.0.12' Makefile:1356: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/jcowgill/tlsdate/tlsdate-0.0.12' dh_auto_build: make -j1 returned exit code 2 debian/rules:25: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2