Package: netdiag 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 netdiag.orig/netdiag-1.1/debian/changelog netdiag/netdiag-1.1/debian/changelog --- netdiag.orig/netdiag-1.1/debian/changelog 2014-05-18 20:51:54.693832373 -0500 +++ netdiag/netdiag-1.1/debian/changelog 2014-05-18 21:46:16.849759521 -0500 @@ -1,3 +1,11 @@ +netdiag (1.1-2) unstable; urgency=low + + * Fix FTBFS with clang: + - Fixed the "wrong main declaration" error in: + tcpspray/tcpspray.c + + -- Arthur Marble <art...@info9.net> Sun, 18 May 2014 21:46:16 -0500 + netdiag (1.1-1) unstable; urgency=high * Removed strobe because its license is not DFSG-free. (Closes: #686580) diff -Naur netdiag.orig/netdiag-1.1/debian/patches/clang-ftbfs.diff netdiag/netdiag-1.1/debian/patches/clang-ftbfs.diff --- netdiag.orig/netdiag-1.1/debian/patches/clang-ftbfs.diff 1969-12-31 18:00:00.000000000 -0600 +++ netdiag/netdiag-1.1/debian/patches/clang-ftbfs.diff 2014-05-18 21:44:31.821761867 -0500 @@ -0,0 +1,13 @@ +--- a/tcpspray/tcpspray.c ++++ b/tcpspray/tcpspray.c +@@ -71,9 +71,7 @@ typedef int pid_t; + #endif /*FALSE*/ + + int +- main(argc, argv) +-unsigned int argc; +-char *argv[]; ++ main(int argc, char *argv[]) + { + + int eflag = FALSE; /* use echo instead of discard for full duplex*/ diff -Naur netdiag.orig/netdiag-1.1/debian/patches/series netdiag/netdiag-1.1/debian/patches/series --- netdiag.orig/netdiag-1.1/debian/patches/series 2014-05-18 20:51:54.693832373 -0500 +++ netdiag/netdiag-1.1/debian/patches/series 2014-05-18 21:43:11.477763661 -0500 @@ -5,3 +5,4 @@ trafshow.diff adapt_netload_to_bsd.diff adaption_to_kfreebsd.diff +clang-ftbfs.diff