On Sat, 20 Feb 2016 14:38:51 +0100
Andreas Beckmann <[email protected]> wrote:

> Source: kinect-audio-setup
> Version: 0.5-1
> Severity: important
> 
> Hi,
>

Hi Andreas,

> kinect-audio-setup FTBFS on kfreebsd-i386, kfreebsd-amd64:
> 
> https://buildd.debian.org/status/fetch.php?pkg=kinect-audio-setup&arch=kfreebsd-amd64&ver=0.5-1&stamp=1452375002
> https://buildd.debian.org/status/fetch.php?pkg=kinect-audio-setup&arch=kfreebsd-i386&ver=0.5-1&stamp=1452372701
> 
> cc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security 
> -fno-common -Wall -Wextra -Wformat=2 -Winit-self -Winline -Wpacked 
> -Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith -Wlarger-than-65500 
> -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn 
> -Wmissing-prototypes -Wnested-externs -Wold-style-definition 
> -Wredundant-decls -Wsign-compare -Wstrict-aliasing=2 -Wstrict-prototypes 
> -Wswitch-enum -Wundef -Wunreachable-code -Wwrite-strings 
> -Wunsafe-loop-optimizations  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o 
> kinect_upload_fw.o kinect_upload_fw.c
> kinect_upload_fw.c: In function 'main':
> kinect_upload_fw.c:298:2: warning: implicit declaration of function 
> 'libusb_set_auto_detach_kernel_driver' [-Wimplicit-function-declaration]
>   libusb_set_auto_detach_kernel_driver(dev, 1);
>   ^

libusb_set_auto_detach_kernel_driver() is available in libusb-1.0 since
v1.0.16 dated 2013-07-11, according
to /usr/share/doc/libusb-1.0-0/changelog.gz

I see that the kfreebsd ports use a compatible library named libusb2,
where can I find more info about it?

Can the libusb-1.0 library from http://libusb.info/ be used at all on
kfreebsd?

I think I could add a patch to make the call to
libusb_set_auto_detach_kernel_driver() conditional at compile time, but
I'd like to know more about the libusb2 used on kfreebsd first and if
it's a strict requirement.

Thanks,
   Antonio

> kinect_upload_fw.c:298:2: warning: nested extern declaration of 
> 'libusb_set_auto_detach_kernel_driver' [-Wnested-externs]
> cc -Wl,-z,relro  kinect_upload_fw.o  -lusb -o kinect_upload_fw
> kinect_upload_fw.o: In function `main':
> /«PKGBUILDDIR»/kinect_upload_fw/kinect_upload_fw.c:298: undefined reference 
> to `libusb_set_auto_detach_kernel_driver'
> collect2: error: ld returned 1 exit status
> <builtin>: recipe for target 'kinect_upload_fw' failed
> make[2]: *** [kinect_upload_fw] Error 1
> 
> 
> Andreas


-- 
Antonio Ospite
http://ao2.it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?

Reply via email to