Broken backwards compatibility
Closed this issue · 1 comments
xuijuthub commented
README.md: libusb C-library version 1.0.8 or any newer version
but running example written in synopsis section and rake test
uses libusb_set_log_cb
and makes it crash as
TestLibusbGc#test_descriptors = <internal:gc>:34: warning: Exception in finalizer #<Method: #<FFI::Pointer address=0x00003f1adb34fe20>.free_struct(id) /home/user/testing/libusb/lib/libusb/context_reference.rb:20>
/home/user/testing/libusb/lib/libusb/context.rb:143:in `free_context': undefined method `libusb_set_log_cb' for LIBUSB::Call:Module (NoMethodError)
Call.libusb_set_log_cb(self, nil, LOG_CB_CONTEXT)
^^^^^^^^^^^^^^^^^^
Did you mean? libusb_set_debug
It's an issue on FreeBSD 14.1-RELEASE, as it has API compatibility up to 1.0.13, with 1.0.16 not fully implemented yet (freebsd/freebsd-src@5654b42).
larskanis commented
Thanks for reporting! Fixed in libusb-0.7.2.