Package: mawk
Version: 1.3.3-17
Severity: minor

Dear Maintainer,

Hello,

Using the rebuild infrastructure, your package fails to build with clang 
instead of gcc.

Error message is:
print.c:85:11: error: expected parameter declarator

Full build log is available here:
http://clang.debian.net/logs/2015-03-25/mawk_1.3.3-17_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 -u mawk-1.3.3/debian/patches/series mawk-1.3.3/debian/patches/series
--- mawk-1.3.3/debian/patches/series
+++ mawk-1.3.3/debian/patches/series
@@ -1,3 +1,4 @@
+clang_build.patch
 01_error-on-full-fs
 02_fix-examples
 03_read-and-close-redefinition
only in patch2:
unchanged:
--- mawk-1.3.3.orig/debian/patches/clang_build.patch
+++ mawk-1.3.3/debian/patches/clang_build.patch
@@ -0,0 +1,18 @@
+--- a/print.c
++++ b/print.c
+@@ -81,12 +81,15 @@
+    but we need them here and sometimes they are missing
+ */
+ 
++#if __clang__ != 1
++/* when build with clang, redeclaration of these prototyping will cause problem */
+ #ifdef NO_FPRINTF_IN_STDIO
+ int PROTO(fprintf, (FILE *, const char *,...)) ;
+ #endif
+ #ifdef NO_SPRINTF_IN_STDIO
+ int PROTO(sprintf, (char *, const char *,...)) ;
+ #endif
++#endif
+ 
+ /* this can be moved and enlarged  by -W sprintf=num  */
+ char *sprintf_buff = string_buff ;

Reply via email to