<div dir="ltr"><div>Do your drivers/Makefile.am rules for the resulting new program specify dependencies to use similar to other USB-capable drivers? e.g.</div><div><br></div><div>````</div><div>blazer_usb_SOURCES = blazer.c blazer_usb.c $(LIBUSB_IMPL) usb-common.c<br>blazer_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm</div><div>````</div><div><br></div><div>Jim<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 2, 2024 at 2:30 AM William R. Elliot <<a href="mailto:bill@wreassoc.com">bill@wreassoc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello again all.<br>
<br>
I am trying to use USB functions (non-HID) and I get a linker error <br>
for functions that are in the included usb-common.h file.<br>
<br>
Specifically, at the start, these functions:<br>
- warn_if_bad_usb_port_filename<br>
- nutusb_open<br>
- is_usb_device_supported<br>
<br>
Clearly the headers are there or I don't think the driver would <br>
compile. Can someone point me in the right direction please?<br>
<br>
Thank you,<br>
<br>
Bill<br>
<br>
Not sure if these USB related lines from the configuration run are <br>
relevant or not:<br>
<br>
checking for libregex version via pkg-config... none found<br>
checking for regex.h... yes<br>
checking whether regexec is declared... yes<br>
checking whether regcomp is declared... yes<br>
checking for libusb-1.0 version via pkg-config... 1.0.27 found<br>
checking for libusb(-0.1) version via pkg-config... 0.1.12 found<br>
checking for libusb-config... /usr/bin/libusb-config<br>
checking via /usr/bin/libusb-config... 0.1.12 found<br>
checking for libusb preferred version... 1.0.27 (libusb-1.0)<br>
checking for libusb cflags... -I/usr/include/libusb-1.0<br>
checking for libusb ldflags... -lusb-1.0<br>
checking for libusb.h... yes<br>
checking for libusb_init... yes<br>
checking for libusb_strerror... yes<br>
checking for libusb_kernel_driver_active... yes<br>
checking for libusb_set_auto_detach_kernel_driver... yes<br>
checking for libusb_detach_kernel_driver... yes<br>
checking for libusb_detach_kernel_driver_np... no<br>
checking for usb_detach_kernel_driver_np... no<br>
checking for libusb_get_port_number... yes<br>
checking whether to build USB drivers... yes (libusb-1.0)<br>
checking whether to install hotplug rules... no<br>
checking whether to generate scripts/udev/nut-usbups.rules... yes<br>
* build USB drivers: yes (libusb-1.0)<br>
<br>
<br>
-- <br>
This email has been checked for viruses by AVG antivirus software.<br>
<a href="http://www.avg.com" rel="noreferrer" target="_blank">www.avg.com</a><br>
<br>
_______________________________________________<br>
Nut-upsdev mailing list<br>
<a href="mailto:Nut-upsdev@alioth-lists.debian.net" target="_blank">Nut-upsdev@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev</a><br>
</blockquote></div>