Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Aug 2010 21:11:22 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Cc:        usb@freebsd.org
Subject:   Re: Porting an USB software from linux (libusb)
Message-ID:  <201008302111.22141.hselasky@c2i.net>
In-Reply-To: <20100830174232.56765zlyg2rhuhgc@webmail.leidinger.net>
References:  <20100830174232.56765zlyg2rhuhgc@webmail.leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 30 August 2010 17:42:32 Alexander Leidinger wrote:
> Hi,
> 
> I try to port a linux userland USB program and I get the following
> error message when trying to link to libusb (current as of r210105):
> ---snip---
> cc -lusb -lm -o fowsr  fowsr.o
> 
> fowsr.o(.text+0x1546): In function `CUSB_Open':
> : undefined reference to `usb_get_driver_np'
> 
> fowsr.o(.text+0x1710): In function `CUSB_Open':
> : undefined reference to `usb_detach_kernel_driver_np'
> 
> gmake: *** [fowsr] Fehler 1
> ---snip---
> 
> Do I need those functions on FreeBSD (the device may show up as a HID
> device, I hadn't a chance to attach it to a FreeBSD box yet), or can I
> just remove them (I could make sure the HID driver is not loaded in
> the kernel)?


Hi,

I've added these missing functions to LibUSB in USB P4 change 183086.

Consider adding a compile time check for the existence of these functions. 
They are marked non-portable in LibUSB.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008302111.22141.hselasky>