Presence of liburing-dev package breaks rocksdb

We're using rocksdb with rebar3. When running unit tests I get a failure on start up:

{error,{load_failed,"Failed to load NIF library: '/home/...XXX.../_build/default/lib/rocksdb/priv/liberocksdb.so: undefined symbol: io_uring_queue_init'"}}

It looks like it has done the build with io_uring support, but maybe it hasn't linked properly, or maybe the symbols are being optimised out?

The cmake configure output includes Found uring: /usr/lib/x86_64-linux-gnu/liburing.a and that file does indeed exist.

If I remove the liburing-dev package I see the message Could NOT find uring (missing: uring_LIBRARIES uring_INCLUDE_DIR) and the system works as expected.