summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2025-03-21 10:56:39 +0100
committerKhem Raj <raj.khem@gmail.com>2025-03-21 11:07:33 -0700
commitbf70a667752124b1babb92f8f8e9097e872c1900 (patch)
tree6588c5d62e02f0f4da3ca3c423392eb628b430cb
parentf19750acc1458e68bc933c08780d9635094ef50d (diff)
downloadmeta-openembedded-bf70a667752124b1babb92f8f8e9097e872c1900.tar.gz
iperf3: fix build with gcc-15
* fixes: http://errors.yoctoproject.org/Errors/Details/848456/ Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-benchmark/iperf3/iperf3/0001-fix-build-with-gcc-15.patch66
-rw-r--r--meta-oe/recipes-benchmark/iperf3/iperf3_3.17.1.bb1
2 files changed, 67 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/iperf3/iperf3/0001-fix-build-with-gcc-15.patch b/meta-oe/recipes-benchmark/iperf3/iperf3/0001-fix-build-with-gcc-15.patch
new file mode 100644
index 0000000000..d3f3e712c9
--- /dev/null
+++ b/meta-oe/recipes-benchmark/iperf3/iperf3/0001-fix-build-with-gcc-15.patch
@@ -0,0 +1,66 @@
1From a46630d4e373e9a3ef974c1b67767f6816c66572 Mon Sep 17 00:00:00 2001
2From: Rudi Heitbaum <rudi@heitbaum.com>
3Date: Mon, 9 Dec 2024 10:13:02 +0000
4Subject: [PATCH] fix build with gcc-15
5
6Upstream-Status: Submitted [https://github.com/esnet/iperf/pull/1805]
7
8Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
9---
10 src/iperf_api.c | 8 ++++----
11 src/iperf_api.h | 8 ++++----
12 2 files changed, 8 insertions(+), 8 deletions(-)
13
14diff --git a/src/iperf_api.c b/src/iperf_api.c
15index 7fb741e..4bb5b2f 100644
16--- a/src/iperf_api.c
17+++ b/src/iperf_api.c
18@@ -599,25 +599,25 @@ iperf_set_mapped_v4(struct iperf_test *ipt, const int val)
19 }
20
21 void
22-iperf_set_on_new_stream_callback(struct iperf_test* ipt, void (*callback)())
23+iperf_set_on_new_stream_callback(struct iperf_test* ipt, void (*callback)(struct iperf_stream *))
24 {
25 ipt->on_new_stream = callback;
26 }
27
28 void
29-iperf_set_on_test_start_callback(struct iperf_test* ipt, void (*callback)())
30+iperf_set_on_test_start_callback(struct iperf_test* ipt, void (*callback)(struct iperf_test *))
31 {
32 ipt->on_test_start = callback;
33 }
34
35 void
36-iperf_set_on_test_connect_callback(struct iperf_test* ipt, void (*callback)())
37+iperf_set_on_test_connect_callback(struct iperf_test* ipt, void (*callback)(struct iperf_test *))
38 {
39 ipt->on_connect = callback;
40 }
41
42 void
43-iperf_set_on_test_finish_callback(struct iperf_test* ipt, void (*callback)())
44+iperf_set_on_test_finish_callback(struct iperf_test* ipt, void (*callback)(struct iperf_test *))
45 {
46 ipt->on_test_finish = callback;
47 }
48diff --git a/src/iperf_api.h b/src/iperf_api.h
49index 1313142..df10c38 100644
50--- a/src/iperf_api.h
51+++ b/src/iperf_api.h
52@@ -213,10 +213,10 @@ void iperf_set_dont_fragment( struct iperf_test* ipt, int dont_fragment );
53 void iperf_set_test_congestion_control(struct iperf_test* ipt, char* cc);
54 void iperf_set_test_mss(struct iperf_test* ipt, int mss);
55 void iperf_set_mapped_v4(struct iperf_test* ipt, const int val);
56-void iperf_set_on_new_stream_callback(struct iperf_test* ipt, void (*callback)());
57-void iperf_set_on_test_start_callback(struct iperf_test* ipt, void (*callback)());
58-void iperf_set_on_test_connect_callback(struct iperf_test* ipt, void (*callback)());
59-void iperf_set_on_test_finish_callback(struct iperf_test* ipt, void (*callback)());
60+void iperf_set_on_new_stream_callback(struct iperf_test* ipt, void (*callback)(struct iperf_stream *));
61+void iperf_set_on_test_start_callback(struct iperf_test* ipt, void (*callback)(struct iperf_test *));
62+void iperf_set_on_test_connect_callback(struct iperf_test* ipt, void (*callback)(struct iperf_test *));
63+void iperf_set_on_test_finish_callback(struct iperf_test* ipt, void (*callback)(struct iperf_test *));
64
65 #if defined(HAVE_SSL)
66 void iperf_set_test_client_username(struct iperf_test *ipt, const char *client_username);
diff --git a/meta-oe/recipes-benchmark/iperf3/iperf3_3.17.1.bb b/meta-oe/recipes-benchmark/iperf3/iperf3_3.17.1.bb
index 2a93109b9c..c84ce5e630 100644
--- a/meta-oe/recipes-benchmark/iperf3/iperf3_3.17.1.bb
+++ b/meta-oe/recipes-benchmark/iperf3/iperf3_3.17.1.bb
@@ -16,6 +16,7 @@ SRC_URI = "git://github.com/esnet/iperf.git;branch=master;protocol=https \
16 file://0002-Remove-pg-from-profile_CFLAGS.patch \ 16 file://0002-Remove-pg-from-profile_CFLAGS.patch \
17 file://0001-configure.ac-check-for-CPP-prog.patch \ 17 file://0001-configure.ac-check-for-CPP-prog.patch \
18 file://do-not-listen-to-old-udp-prot-listener.patch \ 18 file://do-not-listen-to-old-udp-prot-listener.patch \
19 file://0001-fix-build-with-gcc-15.patch \
19 " 20 "
20 21
21SRCREV = "2acfcfe94e928e74542c9f107e02aa6dd4748a79" 22SRCREV = "2acfcfe94e928e74542c9f107e02aa6dd4748a79"