New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'io_uring_enable_rings' not exposed #773
Comments
That's just an oversight... Want to send in a patch? |
Sure, but before I do, here's a list of symbols that are in a non-stripped library that are also not external.
Should any of those also be in the patch? |
Static functions should NOT be exported. |
Summary: io_uring_enable_rings was missing from liburing upstream (see axboe/liburing#773) which is breaking the open source build. See facebook#1908 Instead just implement it locally, as it's trivial Differential Revision: D42497664 fbshipit-source-id: a04af7edf5cce2c98dc4d83ea329f6b34f63bef0
Summary: Pull Request resolved: #1915 io_uring_enable_rings was missing from liburing upstream (see axboe/liburing#773) which is breaking the open source build. See #1908 Instead just implement it locally, as it's trivial Reviewed By: dmm-fb Differential Revision: D42497664 fbshipit-source-id: 7241785a36046e867f907bfe74623aaeb38c4b70
Summary: X-link: facebook/folly#1915 io_uring_enable_rings was missing from liburing upstream (see axboe/liburing#773) which is breaking the open source build. See facebook/folly#1908 Instead just implement it locally, as it's trivial Reviewed By: dmm-fb Differential Revision: D42497664 fbshipit-source-id: 7241785a36046e867f907bfe74623aaeb38c4b70
As 'io_uring_enable_rings' is not in 'liburing.map' it is not marked as an external symbol in 'liburing.so'. This results in package managers (arch and debian at least) build systems stripping the symbol from the shared object when striping symbols. The upshot is that the function can be referenced by user code at compile time as it's in the header, but linking to the shared object fails due to an undefined reference to the function.
https://github.com/axboe/liburing/blob/master/src/liburing.map
(liburing.map is a 'version-script' parameter to the linker when linking liburing.so.)
Is this a bug, or is the intent to not publicly expose this function?
(The initial issue is here, fwiw: facebook/proxygen#434)
The text was updated successfully, but these errors were encountered: