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, Jun 16, 12:35 PM
Unknown Object (File)
Sun, Jun 14, 12:28 PM
Unknown Object (File)
Sun, May 31, 9:59 PM
Unknown Object (File)
Wed, May 27, 5:31 AM
Unknown Object (File)
Tue, May 26, 3:01 AM
Unknown Object (File)
May 7 2026, 2:23 AM
Unknown Object (File)
May 3 2026, 10:30 AM
Unknown Object (File)
Apr 28 2026, 7:00 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.