File: 10_gcc-10_no-common.patch

package info (click to toggle)
netperf 2.7.0%2Bgit20210121.3bc455b%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,784 kB
  • sloc: ansic: 41,887; sh: 5,277; xml: 3,129; python: 2,480; makefile: 70; awk: 68
file content (35 lines) | stat: -rw-r--r-- 1,086 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Tony Ambardar <itugrok@yahoo.com>
Date: Tue, 9 Sep 2025 13:32:13 +0200
Subject: netperf: fix compilation with GCC10

Origin: openwrt, https://github.com/openwrt/packages/pull/13058

GCC10 defaults to -fno-common,
which breaks compilation when
there are multiple definitions of implicit "extern" variables.
Remove the extra definitions.
---
 src/nettest_omni.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/nettest_omni.c b/src/nettest_omni.c
index 5d63f02..76add0e 100644
--- a/src/nettest_omni.c
+++ b/src/nettest_omni.c
@@ -483,16 +483,6 @@ static  int remote_cpu_method;
 static int client_port_min = 5000;
 static int client_port_max = 65535;
 
- /* different options for the sockets				*/
-
-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
   loc_tcpcork,
   rem_tcpcork,