Closed bgemmill closed 10 months ago
Ah yes, that looks like an error in the ffi, it should be io_uring_prep_cmd_sock()... I'll commit a fix.
Well that's a bit annoying, as the ffi name is actually what I would consider correct. If I change this, then it could break things. But perhaps it's early enough that we don't have to worry about it, probably better to just get it correct.
Since I can't go back in time and fix 2.5, you probably just want to use the 'master' branch right now. This will go out with the 2.6 release, but that's still a bit out.
Thanks for having a look at this one.
I'm not currently using io_uring_prep_sock_cmd
in either name at the moment, is there a way to configure and make version 2.5 such that it builds, or are my choices version 2.4 (and wait for 2.6) or master?
You basically just have to make that one-line edit in src/liburing-ffi.map:
https://github.com/axboe/liburing/commit/92b21aa1b4ea98e322c5eca9db1d94b837f4be75
and then it should work just fine. But if you don't want to edit anything, yes the choices would be 2.4 or just run master. master is basically just a few additions (and mostly on the testing side), it'll be identical to 2.5 in terms of stability/maturity for programs. Hence that would be my recommendation.
Ok, thanks a lot.
From a fresh git clone, configure, and make of version 2.5, on ubuntu 22.04, like this:
I get this error:
Thinking I must have done something wrong, I grepped the codebase for
io_uring_prep_sock_cmd
, and it only appears once, inside./src/liburing-ffi.map
here.Should there be a function of that name for the map file to export?
There looks to be a function called
io_uring_prep_cmd_sock
where "cmd" and "sock" are flipped.