<html>
<body>
<font size=3>At 11:45 AM 11/2/2024, Jim Klimov wrote:<br>
<blockquote type=cite class=cite cite="">Do your drivers/Makefile.am
rules for the resulting new program specify dependencies to use similar
to other USB-capable drivers? e.g.<br><br>
````<br>
blazer_usb_SOURCES = blazer.c blazer_usb.c $(LIBUSB_IMPL)
usb-common.c<br>
blazer_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm<br>
````<br><br>
Jim<br>
</font></blockquote><br>
<font size=3>Jim,<br><br>
Of course!.......not. Thanks for the gentle reminder.<br><br>
Bill<br><br>
<br>
<blockquote type=cite class=cite cite="">On Sat, Nov 2, 2024 at 2:30 AM
William R. Elliot
<<a href="mailto:bill@wreassoc.com">bill@wreassoc.com</a>>
wrote:<br>
</font>
<dl>
<dd>Hello again all.<br><br>
<dd>I am trying to use USB functions (non-HID) and I get a linker error
<br>
<dd>for functions that are in the included usb-common.h file.<br><br>
<dd>Specifically, at the start, these functions:<br>
<dd>- warn_if_bad_usb_port_filename<br>
<dd>- nutusb_open<br>
<dd>- is_usb_device_supported<br><br>
<dd>Clearly the headers are there or I don't think the driver would <br>
<dd>compile. Can someone point me in the right direction please?<br><br>
<dd>Thank you,<br><br>
<dd>Bill<br><br>
<dd>Not sure if these USB related lines from the configuration run are
<br>
<dd>relevant or not:<br><br>
<dd>checking for libregex version via pkg-config... none found<br>
<dd>checking for regex.h... yes<br>
<dd>checking whether regexec is declared... yes<br>
<dd>checking whether regcomp is declared... yes<br>
<dd>checking for libusb-1.0 version via pkg-config... 1.0.27 found<br>
<dd>checking for libusb(-0.1) version via pkg-config... 0.1.12 found<br>
<dd>checking for libusb-config... /usr/bin/libusb-config<br>
<dd>checking via /usr/bin/libusb-config... 0.1.12 found<br>
<dd>checking for libusb preferred version... 1.0.27 (libusb-1.0)<br>
<dd>checking for libusb cflags... -I/usr/include/libusb-1.0<br>
<dd>checking for libusb ldflags... -lusb-1.0<br>
<dd>checking for libusb.h... yes<br>
<dd>checking for libusb_init... yes<br>
<dd>checking for libusb_strerror... yes<br>
<dd>checking for libusb_kernel_driver_active... yes<br>
<dd>checking for libusb_set_auto_detach_kernel_driver... yes<br>
<dd>checking for libusb_detach_kernel_driver... yes<br>
<dd>checking for libusb_detach_kernel_driver_np... no<br>
<dd>checking for usb_detach_kernel_driver_np... no<br>
<dd>checking for libusb_get_port_number... yes<br>
<dd>checking whether to build USB drivers... yes (libusb-1.0)<br>
<dd>checking whether to install hotplug rules... no<br>
<dd>checking whether to generate scripts/udev/nut-usbups.rules...
yes<br>
<dd>* build USB drivers: yes (libusb-1.0)<br><br>
<br>
<dd>-- <br>
<dd>This email has been checked for viruses by AVG antivirus
software.<br>
<dd><a href="http://www.avg.com">www.avg.com</a><br><br>
<dd>_______________________________________________<br>
<dd>Nut-upsdev mailing list<br>
<dd><a href="mailto:Nut-upsdev@alioth-lists.debian.net">
Nut-upsdev@alioth-lists.debian.net</a><br>
<dd>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev" eudora="autourl">
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev</a>
<br>
</dl></blockquote><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /><table style="border-top: 1px solid #D3D4DE;"><tr><td style="width: 55px; padding-top: 13px;"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"/></a></td><td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free.<a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avg.com</a></td></tr></table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>