diff --git a/bugfix-of-gcc-10.patch b/bugfix-of-gcc-10.patch new file mode 100644 index 0000000..8801b1e --- /dev/null +++ b/bugfix-of-gcc-10.patch @@ -0,0 +1,12 @@ +diff -Nur perftest-4.2-old/src/raw_ethernet_resources.c perftest-4.2/src/raw_ethernet_resources.c +--- perftest-4.2-old/src/raw_ethernet_resources.c 2018-05-06 19:58:57.000000000 +0800 ++++ perftest-4.2/src/raw_ethernet_resources.c 2021-08-03 15:00:40.000000000 +0800 +@@ -54,7 +54,7 @@ + #include "raw_ethernet_resources.h" + #include "config.h" + +-struct perftest_parameters* duration_param; ++extern struct perftest_parameters* duration_param; + + int check_flow_steering_support(char *dev_name) + { diff --git a/perftest.spec b/perftest.spec index 8919b4e..e9a13d1 100644 --- a/perftest.spec +++ b/perftest.spec @@ -1,6 +1,6 @@ Name: perftest Version: 4.2 -Release: 6 +Release: 7 License: GPLv2 or BSD Summary: RDMA Performance Testing Tools Url: https://github.com/linux-rdma/perftest @@ -10,6 +10,8 @@ Source: https://github.com/linux-rdma/%{name}/releases/download/V4.2-0.8 BuildRequires: gcc libibverbs-devel >= 1.2.0 librdmacm-devel >= 1.0.21 libibumad-devel >= 1.3.10.2 Obsoletes: openib-perftest < 1.3 +Patch0001: bugfix-of-gcc-10.patch + %description Perftest is a collection of simple tools for testing bandwidth and latency over RDMA connections. @@ -18,7 +20,7 @@ Perftest is a collection of simple tools for testing bandwidth and latency over %build %configure -%make_build CFLAGS+="-fPIC -g -Wall -D_GNU_SOURCE -O3 -fcommon" +%make_build CFLAGS+="-fPIC -g -Wall -D_GNU_SOURCE -O3" %install for file in ib_{atomic,read,send,write}_{lat,bw} raw_ethernet_{lat,bw}; do @@ -30,6 +32,9 @@ done %_bindir/* %changelog +* Tue 3 Aug 2021 Shenmei Tu - 4.2-7 +- bugfix-of-gcc-10.patch + * Fri 30 July 2021 Shenmei Tu - 4.2-6 - bug fix of multiple definition