Page MenuHomeFreeBSD

libusb: version symbols
Needs ReviewPublic

Authored by bapt on Mar 6 2026, 8:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 28, 7:00 AM
Unknown Object (File)
Mon, Apr 27, 11:06 PM
Unknown Object (File)
Sat, Apr 25, 1:29 AM
Unknown Object (File)
Sat, Apr 11, 8:03 PM
Unknown Object (File)
Wed, Apr 8, 9:53 AM
Unknown Object (File)
Mar 25 2026, 8:09 AM
Unknown Object (File)
Mar 18 2026, 6:47 AM
Unknown Object (File)
Mar 18 2026, 3:03 AM
Subscribers

Details

Reviewers
emaste
Group Reviewers
USB

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71220
Build 68103: arc lint + arc unit

Event Timeline

bapt requested review of this revision.Mar 6 2026, 8:09 AM

Adding symbol versions to the library changes the library ABI. This requires the (final) bump of the dso version.

Our rtld has a feature that in theory makes the bump not strictly necessary, but it is recommended anyway, because it improves forward-compatibility by avoiding very confusing error message from rtld when newly linked binary is used with old library without versioning.

lib/libusb/Symbol.map
3

You are mixing the raw linker version script syntax there, with our pre-processed Symbol.map. There is no need in the scope specifiers.

251

All symbols not explicitly listed in the Symbol.map with FreeBSD syntax, are automatically localized AKA not exported.