[Nut-upsdev] Driver with calls to USB functions not linking
William R. Elliot
bill at wreassoc.com
Sat Nov 2 01:18:39 GMT 2024
Hello again all.
I am trying to use USB functions (non-HID) and I get a linker error
for functions that are in the included usb-common.h file.
Specifically, at the start, these functions:
- warn_if_bad_usb_port_filename
- nutusb_open
- is_usb_device_supported
Clearly the headers are there or I don't think the driver would
compile. Can someone point me in the right direction please?
Thank you,
Bill
Not sure if these USB related lines from the configuration run are
relevant or not:
checking for libregex version via pkg-config... none found
checking for regex.h... yes
checking whether regexec is declared... yes
checking whether regcomp is declared... yes
checking for libusb-1.0 version via pkg-config... 1.0.27 found
checking for libusb(-0.1) version via pkg-config... 0.1.12 found
checking for libusb-config... /usr/bin/libusb-config
checking via /usr/bin/libusb-config... 0.1.12 found
checking for libusb preferred version... 1.0.27 (libusb-1.0)
checking for libusb cflags... -I/usr/include/libusb-1.0
checking for libusb ldflags... -lusb-1.0
checking for libusb.h... yes
checking for libusb_init... yes
checking for libusb_strerror... yes
checking for libusb_kernel_driver_active... yes
checking for libusb_set_auto_detach_kernel_driver... yes
checking for libusb_detach_kernel_driver... yes
checking for libusb_detach_kernel_driver_np... no
checking for usb_detach_kernel_driver_np... no
checking for libusb_get_port_number... yes
checking whether to build USB drivers... yes (libusb-1.0)
checking whether to install hotplug rules... no
checking whether to generate scripts/udev/nut-usbups.rules... yes
* build USB drivers: yes (libusb-1.0)
--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
More information about the Nut-upsdev
mailing list