diff --git a/hping-multiple-definition-of-delaytable.patch b/hping-multiple-definition-of-delaytable.patch new file mode 100644 index 0000000000000000000000000000000000000000..e78a282cf882ba79755101c2707065ef100282d1 --- /dev/null +++ b/hping-multiple-definition-of-delaytable.patch @@ -0,0 +1,11 @@ +--- ./hping2.h.xiugai 2021-08-03 10:41:08.601438036 +0800 ++++ ./hping2.h 2021-08-03 10:44:28.575662672 +0800 +@@ -357,7 +357,7 @@ + int status; + }; + +-volatile struct delaytable_element delaytable[TABLESIZE]; ++extern volatile struct delaytable_element delaytable[TABLESIZE]; + + /* protos */ + void nop(void); /* nop */ diff --git a/hping.spec b/hping.spec index d0796af000891b4884d0ff7c678f079d3d69a445..ab6c82ff2940a5d24e23448a1ec52ead1078a138 100644 --- a/hping.spec +++ b/hping.spec @@ -2,13 +2,14 @@ Name: hping Version: 20200503 -Release: 2 +Release: 3 Summary: hping is a command-line oriented TCP/IP packet assembler/analyzer License: GPLv2 URL: http://www.hping.org/ Source0: %{name}-%{version}.zip Patch0: hping-fix-netbpf-header.patch +Patch1: hping-multiple-definition-of-delaytable.patch BuildRequires: gcc tcl-devel libpcap-devel @@ -18,6 +19,7 @@ hping is a command-line oriented TCP/IP packet assembler/analyzer. The interface %prep %setup -q -n %{name}-master/ %patch0 -p1 +%patch1 -p1 %build %configure @@ -45,6 +47,9 @@ install -m0644 docs/hping3.8 %{buildroot}/%{_mandir}/man8 %{_mandir}/* %changelog +* Mon Aug 2 2021 liushaofei +- fix multiple definition + * Mon Oct 12 2020 liqingqing_1229 - update source0's url