Source: suricata
Version: 0.9.2-1
Severity: serious
Tags: patch

Hi,

your package FTBFS some architecture.
  https://buildd.debian.org/pkg.cgi?pkg=suricata

-----
<snip>

checking pcre.h presence... yes
configure: WARNING: pcre.h: present but cannot be compiled
configure: WARNING: pcre.h:     check for missing prerequisite headers?
configure: WARNING: pcre.h: see the Autoconf documentation
configure: WARNING: pcre.h:     section "Present But Cannot Be Compiled"
configure: WARNING: pcre.h: proceeding with the compiler's result
checking for pcre.h... no
configure: error: pcre.h not found ...
        "tail -v -n +0 config.log"
==> config.log <==

<snip>

configure:12438: result: no
configure:12502: checking pcre.h usability
configure:12502: gcc -c -g -O2 -Wextra -Wall -fno-strict-aliasing
-Wno-unused-parameter -std=gnu99  -fstack-protector
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -march=native
conftest.c >&5
conftest.c:1: error: bad value (native) for -march= switch

<snip>
-----

This package appears to be using -march=native. But it's not supported
on most architectures.
And, because "- march=native" is optimized to the machine that does
the build, the binary
that doesn't work with old CPU is build.

I made patch to fix this bug. Could you apply this patch?

Best regards,
 Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
diff --git a/debian/rules b/debian/rules
index 92d123e..50539c7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,7 @@ export DH_VERBOSE=1
 
 build:
 	dh_testdir
-	dh_auto_configure -- --enable-nfqueue --enable-prelude --enable-non-bundled-htp --enable-gccprotect
+	dh_auto_configure -- --enable-nfqueue --enable-prelude --enable-non-bundled-htp --enable-gccprotect --disable-gccmarch-native
 	sed \
 		-e 's|^classification-file: .*$$|classification-file: /etc/snort/classification.config|' \
 		-e 's|^default-rule-path: .*$$|default-rule-path: /etc/snort/rules|' \

Reply via email to