Re: hackrf / libusb / libusb_interrupt_event_handler
- In reply to: Tomek CEDRO : "Re: hackrf / libusb / libusb_interrupt_event_handler"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Oct 2022 21:26:54 UTC
On Sun, Oct 2, 2022 at 8:09 PM Tomek CEDRO wrote: > On Sun, Oct 2, 2022 at 5:43 PM Hans Petter Selasky wrote: > > On 10/2/22 16:23, Tomek CEDRO wrote: > > > Hello HPS :-) > > > The new release of HackRF is out 2022.09.1, I would like to update the > > > port.. however there is a linking problem with libusb: > > > > > > ld: error: ../../libhackrf/src/libhackrf.so.0.7.0: undefined reference > > > to libusb_interrupt_event_handler [--no-allow-shlib-undefined] > > > > > > Indeed this function seems missing in our libusb implementation? > > > % nm -gDC /usr/lib/libusb.so.3 | grep libusb_interrupt_event_handler > > > % > > > Any clues on how to fix? :-) > > > > https://cgit.freebsd.org/src/commit/?id=aa87aa52326be7b726664dba65e91ec3d8160f48 > > > > If the function doesn't exist, then you can comment it out. I see hackrf > > will work also w/o this implemented. > > > > I couldn't bump the LIBUSB version, because I don't have overview what > > else I need to implement then. > > --HPS > > Wow, so the fix is already in the source tree!! ? Then it will have to > propagate to STABLE and then RELEASE ? I can confirm that Your patch fixes the issue, enables the 2022.09.1 build and operations! I have managed to flash firmware (hackrf_spiflash), read device info (hackrf_info), sweep some radio frequencies (hackrf_sweep) and receive/transmit (hackrf_transfer). Thank you HPS :-) When it will be safe to provide port update 2022.09.1 to the port tree? Should we create a separate comms/hackrf-2021.03.1 port for the older systems where this LibUSB call is not available? Or maybe it will be possible to build and update LibUSB on the older systems? > I will bump the port to 2021.03.1 for now and when libusb is in the > Release we could bump it further to 2022.09.1? What do you suggest? Port update to 2021.03.1 is ready: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266774 https://github.com/freebsd/freebsd-ports/pull/132 Thank you HPS!! :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info