Package: ipgrab
Severity: minor
Usertags: clang-ftbfs
User: pkg-llvm-t...@lists.alioth.debian.org
Tag: patch


Hello,

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

Thanks,
Arthur 
diff -Naur ipgrab-0.9.10/debian.orig/changelog ipgrab-0.9.10/debian/changelog
--- ipgrab-0.9.10/debian.orig/changelog	2014-02-10 18:39:42.899932602 -0600
+++ ipgrab-0.9.10/debian/changelog	2014-02-11 20:50:18.396001328 -0600
@@ -1,3 +1,10 @@
+ipgrab (0.9.10-2) unstable; urgency=low
+
+  * Fix the FTBFS with clang:
+    - Fixed return void bug src/icmpv6.c
+
+ -- Arthur Marble <art...@playtux.info9.net>  Mon, 10 Feb 2014 18:45:50 -0600
+
 ipgrab (0.9.10-1) unstable; urgency=low
 
   * New upstream release
diff -Naur ipgrab-0.9.10/debian.orig/patches/clang-ftbfs.diff ipgrab-0.9.10/debian/patches/clang-ftbfs.diff
--- ipgrab-0.9.10/debian.orig/patches/clang-ftbfs.diff	1969-12-31 18:00:00.000000000 -0600
+++ ipgrab-0.9.10/debian/patches/clang-ftbfs.diff	2014-02-10 18:42:08.475935137 -0600
@@ -0,0 +1,13 @@
+Index: ipgrab-0.9.10/src/icmpv6.c
+===================================================================
+--- ipgrab-0.9.10.orig/src/icmpv6.c	2007-06-25 07:25:36.000000000 -0500
++++ ipgrab-0.9.10/src/icmpv6.c	2014-02-10 18:42:04.231935063 -0600
+@@ -205,7 +205,7 @@
+     case ICMPV6_TYPE_NEIGHBORSOLICIT:
+       /* Skip 4 unused bytes */
+       if ( skip_packet_bytes (pkt,4) == 0 )
+-         return 0;
++         return;
+ 
+       /* Next 16 bytes are an IPv6 address */
+       if (get_packet_bytes((u_int8_t *) &v6addr, pkt, 16) == 0)
diff -Naur ipgrab-0.9.10/debian.orig/patches/series ipgrab-0.9.10/debian/patches/series
--- ipgrab-0.9.10/debian.orig/patches/series	2014-02-10 18:39:42.899932602 -0600
+++ ipgrab-0.9.10/debian/patches/series	2014-02-10 18:40:54.923933856 -0600
@@ -1,2 +1,3 @@
 segfault_amd64.patch
 spelling.patch
+clang-ftbfs.diff

Reply via email to