Package libusb-dev for 20.04.3 does not properly link libusb.so

Asked by Mike Riley

The file libusb.so should be symbolically linked to libusb-1.0.so.0, but instead is a text file with these contents:
/* GNU ld script. */
GROUP ( /lib/x86_64-linux-gnu/libusb-0.1.so.4.4.4 )

Once I create the symbolic link my program that uses libusb.so works properly. Prior to that I get unresolved symbols for the API functions my code was calling.

I just want to verify if this is a known bug, or should I file a bug report to get it fixed?

Mike Riley

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu libusb Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

Are you sure that you aren't confusing libusb-0.1 and libusb-1.0 ?

If you need a link to libusb-1.0.so.0 then you most probably have to use libusb-1.0-0-dev

Revision history for this message
Mike Riley (mike-riley) said :
#2

You may be correct. I just changed my script to link with libusb-1.0.so and it works fine with that.

When I had looked for a package I think I searched for what had libusb.1.0.so, not libusb-1.0.so, and when that failed I tried libusb.so and so ended up using libusb-dev as the package I installed.

Still, it seems like in that package libusb.so should be a symbolic link to the right SONAME file, but I will leave that up to you to decide if it is an issue as this solves my problem by using libusb-1.0.so.

Revision history for this message
Mike Riley (mike-riley) said :
#3

Thanks Manfred Hampl, that solved my question.