-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Description
I am getting
[exec] /var/lib/jenkins/workspace/one-nio/src/one/nio/os/native/bpf.c: In function ‘Java_one_nio_os_bpf_Bpf_progTestRun’:
[exec] /var/lib/jenkins/workspace/one-nio/src/one/nio/os/native/bpf.c:242:15: error: ‘struct <anonymous>’ has no member named ‘ctx_size_in’
[exec] attr.test.ctx_size_in = len_ctx_in;
[exec] ^
[exec] /var/lib/jenkins/workspace/one-nio/src/one/nio/os/native/bpf.c:244:15: error: ‘struct <anonymous>’ has no member named ‘ctx_in’
[exec] attr.test.ctx_in = ptr_to_u64(b_ctx_in);
[exec] ^
[exec] /var/lib/jenkins/workspace/one-nio/src/one/nio/os/native/bpf.c:252:15: error: ‘struct <anonymous>’ has no member named ‘ctx_size_out’
[exec] attr.test.ctx_size_out = (*env)->GetArrayLength(env, ctx_out);
[exec] ^
[exec] /var/lib/jenkins/workspace/one-nio/src/one/nio/os/native/bpf.c:254:15: error: ‘struct <anonymous>’ has no member named ‘ctx_out’
[exec] attr.test.ctx_out = ptr_to_u64(b_ctx_out);
[exec] ^
[exec] /var/lib/jenkins/workspace/one-nio/src/one/nio/os/native/bpf.c:267:22: error: ‘struct <anonymous>’ has no member named ‘ctx_size_out’
[exec] attr.test.ctx_size_out,
[exec] ^
[exec] Result: 1
other-wize it works fine. The test field was added in this commit torvalds/linux@1cf1cae
pretty old but I guess I am dealing with even older linux in production....so it is what it is.
For my internal build of one-nio I just removed the method implementation altogether. Perhaps we could do an #ifdef
? I'd prefer to keep differences between my internal build and your github version to a minimum.
Metadata
Metadata
Assignees
Labels
No labels