qemu-ios icon indicating copy to clipboard operation
qemu-ios copied to clipboard

Error in compiling

Open breadhandsome15048 opened this issue 1 year ago • 1 comments

So I was trying to compile it on arch Linux, and it failed compiling.

It turns out, in ebpf/ebpf_rss.c, line 52, there is a broken (deprecated) code

From Patchew:

``bpf_program__set_<TYPE> functions have been deprecated since libbpf 0.8. Replace with the equivalent bpf_program__set_type call to avoid a deprecation warning.

Signed-off-by: Haochen Tong [email protected]

ebpf/ebpf_rss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ebpf/ebpf_rss.c b/ebpf/ebpf_rss.c index 118c68da83..cee658c158 100644 --- a/ebpf/ebpf_rss.c +++ b/ebpf/ebpf_rss.c @@ -49,7 +49,7 @@ bool ebpf_rss_load(struct EBPFRSSContext *ctx) goto error; }

-- bpf_program__set_socket_filter(rss_bpf_ctx->progs.tun_rss_steering_prog); ++ bpf_program__set_type(rss_bpf_ctx->progs.tun_rss_steering_prog, BPF_PROG_TYPE_SOCKET_FILTER);

 if (rss_bpf__load(rss_bpf_ctx)) {
     trace_ebpf_error("eBPF RSS", "can not load RSS program");

-- 2.36.1``

breadhandsome15048 avatar Oct 13 '23 01:10 breadhandsome15048

Could you retry to compile the recently rebased ipod_touch_2g branch? 👍

devos50 avatar Jan 01 '24 16:01 devos50