Was able to reproduce the issue on Slackware x64 with get_version.
If you use strace, you should find that you're still attempting to pick 
a library from /usr/lib64 or something, rather than the new one in /lib64.

Basically, this is what I did (after uninstalling libusb-1.0 from 
package manager, which I guess did not remove all the 64 bit binaries).

./configure --libdir=/lib64 --prefix=/usr --disable-static
make
make install
cd examples
gcc -I /usr/include/libusb-1.0/ -lusb-1.0 -o xusb xusb.c
./xusb -x
-> undefined symbol: libusb_get_version
strace ./xusb -x
-> found that /usr/lib64/libusb-1.0.so.0 was being called
-> looked into /usr/lib64 and found the libusb libraries there were 
dated back to 2010
rm /usr/lib64/libusb-1.0.so.0*
./xusb -x
-> works

I also tried xusb with -i option, that calls on libusb_get_port_path() 
and it works fine, so I'm pretty sure that libusb_get_port() should work 
too if you remove all existing traces of old libusb libraries.
I guess the old libusb you have is 1.0.9 (with get_version) whereas the 
one I had was apparently 1.0.6, which explains why mine would fail on 
get_version (introduced in 1.0.9 for both libusb and libusbx) and yours 
on get_port (introduced in post 1.0.9 x only).

Regards,

/Pete


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to