Control: tags -1 + patch Hi,
the attached patch fixes the FTBFS with GCC-10. Regards, -- Luis Paulo (lpfll)
diff -Nru tcpick-0.2.1/debian/patches/fix-ftbfs-with-gcc-10.patch tcpick-0.2.1/debian/patches/fix-ftbfs-with-gcc-10.patch --- tcpick-0.2.1/debian/patches/fix-ftbfs-with-gcc-10.patch 1969-12-31 21:00:00.000000000 -0300 +++ tcpick-0.2.1/debian/patches/fix-ftbfs-with-gcc-10.patch 2020-08-17 11:18:47.000000000 -0300 @@ -0,0 +1,27 @@ +Description: Fix FTBFS with GCC-10. +Author: Luis Paulo Linares <lpfllina...@gmail.com> +Bug-Debian: https://bugs.debian.org/957860 +Last-Update: 2020-08-17 + +--- tcpick-0.2.1.orig/src/conn.h ++++ tcpick-0.2.1/src/conn.h +@@ -80,5 +80,5 @@ struct CONN + }; + + +-struct ip * ip_last_header; /* FIXME: check */ +-struct tcphdr * tcp_last_header; ++extern struct ip * ip_last_header; /* FIXME: check */ ++extern struct tcphdr * tcp_last_header; +--- tcpick-0.2.1.orig/src/globals.h ++++ tcpick-0.2.1/src/globals.h +@@ -39,7 +39,7 @@ int datalink_size = 0; + int ip_size = 0; + int tcp_size = 0; + +-struct CONN * first_conn; +-struct CONN * last_conn; ++extern struct CONN * first_conn; ++extern struct CONN * last_conn; + + enum EXPIRED_FLAG expired_flag; diff -Nru tcpick-0.2.1/debian/patches/series tcpick-0.2.1/debian/patches/series --- tcpick-0.2.1/debian/patches/series 2018-11-04 10:48:34.000000000 -0200 +++ tcpick-0.2.1/debian/patches/series 2020-08-17 11:18:47.000000000 -0300 @@ -6,3 +6,4 @@ fix-man-invocation.patch fix-build-with-gcc5.patch set-timestamp-pcap-header-structure.patch +fix-ftbfs-with-gcc-10.patch