Source: audit
Version: 2.4
Severity: minor
Dear Maintainer,
Hello,
Using the rebuild infrastructure, your package fails to build with clang
instead of gcc.
Error message is like this:
http://clang.debian.net/status.php?version=3.6.0&key=KEYWORD_PRECEDE
Full build log is available here:
http://clang.debian.net/logs/2015-03-25/audit_2.4-1_unstable_clang.log
Thanks,
Joseph
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.0.4-2-ARCH (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru audit-2.4/debian/patches/clang_build.patch audit-2.4/debian/patches/clang_build.patch
--- audit-2.4/debian/patches/clang_build.patch 1970-01-01 00:00:00.000000000 +0000
+++ audit-2.4/debian/patches/clang_build.patch 2015-05-24 14:05:59.000000000 +0000
@@ -0,0 +1,15 @@
+--- a/src/libev/ev.c
++++ b/src/libev/ev.c
+@@ -967,7 +967,12 @@
+ #define ecb_unreachable() __builtin_unreachable ()
+ #else
+ /* this seems to work fine, but gcc always emits a warning for it :/ */
++# if __clang__
++/* clang is using gnu11 as default, so _Noreturn must precede fuction declarator*/
++ ecb_noreturn ecb_inline void ecb_unreachable (void);
++# else
+ ecb_inline void ecb_unreachable (void) ecb_noreturn;
++# endif
+ ecb_inline void ecb_unreachable (void) { }
+ #endif
+
diff -Nru audit-2.4/debian/patches/series audit-2.4/debian/patches/series
--- audit-2.4/debian/patches/series 2014-09-07 14:57:13.000000000 +0000
+++ audit-2.4/debian/patches/series 2015-05-24 14:03:21.000000000 +0000
@@ -1 +1,2 @@
01-no-refusemanualstop.patch
+clang_build.patch