fix multiple definition
Signed-off-by: shdluan <shdluan@163.com>
This commit is contained in:
parent
f584104af1
commit
93a6fb5cd6
20
netperf-fix-multiple-definition.patch
Normal file
20
netperf-fix-multiple-definition.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--- ./src/nettest_omni.c.bak 2021-08-03 17:12:46.083392014 +0800
|
||||||
|
+++ ./src/nettest_omni.c 2021-08-03 17:13:38.299856016 +0800
|
||||||
|
@@ -456,15 +456,13 @@
|
||||||
|
|
||||||
|
/* different options for the sockets */
|
||||||
|
|
||||||
|
-int
|
||||||
|
+extern int
|
||||||
|
loc_nodelay, /* don't/do use NODELAY locally */
|
||||||
|
rem_nodelay, /* don't/do use NODELAY remotely */
|
||||||
|
loc_sndavoid, /* avoid send copies locally */
|
||||||
|
loc_rcvavoid, /* avoid recv copies locally */
|
||||||
|
rem_sndavoid, /* avoid send copies remotely */
|
||||||
|
- rem_rcvavoid; /* avoid recv_copies remotely */
|
||||||
|
-
|
||||||
|
-extern int
|
||||||
|
+ rem_rcvavoid, /* avoid recv_copies remotely */
|
||||||
|
loc_tcpcork,
|
||||||
|
rem_tcpcork,
|
||||||
|
local_connected,
|
||||||
10
netperf.spec
10
netperf.spec
@ -2,12 +2,14 @@
|
|||||||
|
|
||||||
Name: netperf
|
Name: netperf
|
||||||
Version: 2.7.0
|
Version: 2.7.0
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: A Performance benchmark testing tool fro TCP/UDP
|
Summary: A Performance benchmark testing tool fro TCP/UDP
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://github.com/HewlettPackard/netperf
|
URL: http://github.com/HewlettPackard/netperf
|
||||||
Source0: https://github.com/HewlettPackard/netperf/archive/%{name}-%{_version}.tar.gz
|
Source0: https://github.com/HewlettPackard/netperf/archive/%{name}-%{_version}.tar.gz
|
||||||
|
|
||||||
|
Patch1: netperf-fix-multiple-definition.patch
|
||||||
|
|
||||||
BuildRequires: gcc texinfo texinfo-tex
|
BuildRequires: gcc texinfo texinfo-tex
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -17,9 +19,10 @@ netperf is a collection of many different network performance benchmarking tool
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
%{__make} %{_smp_mflags}
|
%{__make} %{_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -50,6 +53,9 @@ netperf is a collection of many different network performance benchmarking tool
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 4 2021 shdluan <shdluan@163.com> - 2.7.0-5
|
||||||
|
- fix multiple defination of variable
|
||||||
|
|
||||||
* Thu Jun 03 2021 zhaoyao <zhaoyao32@huawei.com> - 2.7.0.-4
|
* Thu Jun 03 2021 zhaoyao <zhaoyao32@huawei.com> - 2.7.0.-4
|
||||||
- fixs failed: gcc command not found.
|
- fixs failed: gcc command not found.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user