• Bug#890432: suricata: FTBFS on ia64

    From Jason Duerstock@21:1/5 to All on Wed Feb 14 18:40:02 2018
    XPost: linux.debian.bugs.dist

    This is a multi-part MIME message sent by reportbug.


    Source: suricata
    Severity: normal
    Tags: patch
    User: debian-ia64@lists.debian.org
    Usertags: ia64

    Dear Maintainer,

    From https://buildd.debian.org/status/fetch.php?pkg=suricata&arch=ia64&ver=1%3A4.0.4-1&stamp=1518609275&raw=0

    gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/ia64-linux-gnu/htp/include -I/usr/include/nspr -I/usr/include/nspr -I/usr/include/nss -I/usr/include/nspr -I/usr/include/nss -I/usr/include -Wextra -Werror-implicit-function-
    declaration -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -I/usr/include -DLOCAL_STATE_DIR=\"/var\" -std=gnu99 -Wall -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wwrite-strings -Wbad-function-
    cast -Wformat-security -Wno-format-nonliteral -Wmissing-format-attribute -funsigned-char -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -specs=/usr/share/dpkg/pie-compile.specs -Wformat -Werror=format-security -c -o conf-yaml-loader.o conf-yaml-loader.c
    cc1: warning: -fstack-protector not supported for this target
    In file included from /usr/include/ia64-linux-gnu/bits/siginfo-consts.h:184:0,
    from /usr/include/signal.h:58,
    from suricata-common.h:152,
    from conf-yaml-loader.c:27: /usr/include/ia64-linux-gnu/bits/siginfo-consts-arch.h:39:17: error: 'TRAP_TRACE' undeclared here (not in a function); did you mean '_SC_TRACE'?
    TRAP_BRANCH = TRAP_TRACE + 1,
    ^~~~~~~~~~
    _SC_TRACE
    Makefile:1687: recipe for target 'conf-yaml-loader.o' failed
    make[4]: *** [conf-yaml-loader.o] Error 1
    make[4]: *** Waiting for unfinished jobs....
    make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
    Makefile:1131: recipe for target 'all' failed
    make[3]: *** [all] Error 2
    make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
    Makefile:494: recipe for target 'all-recursive' failed
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory '/<<PKGBUILDDIR>>'
    Makefile:422: recipe for target 'all' failed
    make[1]: *** [all] Error 2
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_auto_build: make -j2 returned exit code 2
    debian/rules:57: recipe for target 'build-arch' failed
    make: *** [build-arch] Error 2
    dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2

    Patch attached.

    -- System Information:
    Debian Release: buster/sid
    APT prefers unreleased
    APT policy: (500, 'unreleased'), (500, 'unstable')
    Architecture: ia64

    Kernel: Linux 3.14-0.bpo.2-mckinley (SMP w/2 CPU cores)
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
    Shell: /bin/sh linked to /bin/dash
    Init: sysvinit (via /sbin/init)

    --- src/suricata-common.h.orig 2018-02-14 12:27:29.727546789 -0500
    +++ src/suricata-common.h 2018-02-14 12:27:43.135478812 -0500
    @@ -34,7 +34,6 @@
    #define FALSE 0

    #define _GNU_SOURCE
    -#define __USE_GNU

    #if HAVE_CONFIG_H
    #include <config.h>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)