We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3732 - Configure script fails to set up dynamic loading for some libs.
Summary: Configure script fails to set up dynamic loading for some libs.
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-07 14:56 UTC by Ryan C. Gordon
Modified: 2020-07-03 11:22 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan C. Gordon 2017-08-07 14:56:07 UTC
The "find_lib" function in the configure script (and probably the equivalent in CMake) will find libraries for dynamic loading if a "libname.so.1" exists on the system, but it will fail if the system only has "libname.so.1.1" ...apparently the Debian/Ubuntu package for libsndio-dev only installs a "libsndio.so.6.1" file.

To reproduce:
- Install Ubuntu.
- sudo apt-get install libsndio-dev
- Run SDL's configure, see that it found sndio support, but doesn't list it as a dynamic dependency, thus linking directly to it.

In this case, SDL should find "libsndio.so.6.1" for the library name as a fallback.

--ryan.
Comment 1 Ryan C. Gordon 2017-08-09 05:25:36 UTC
(Sorry if you get a lot of copies of this email, we're touching dozens of bug reports right now.)

Tagging a bunch of bugs as target-2.0.6.

This means we're in the final stretch for an official SDL 2.0.6 release! These are the bugs we really want to fix before shipping if humanly possible.

That being said, we don't promise to fix them because of this tag, we just want to make sure we don't forget to deal with them before we bless a final 2.0.6 release, and generally be organized about what we're aiming to ship. After some debate, we might just remove this tag again and deal with it for a later release.

Hopefully you'll hear more about this bug soon. If you have more information (including "this got fixed at some point, nevermind"), we would love to have you come add more information to the bug report when you have a moment.

Thanks!
--ryan.
Comment 2 Rainer Deyke 2020-07-03 11:22:11 UTC
Just came here to report this (for cmake), only to find that it's three-year-old known bug.  As a workaround, I am manually passing "-DSNDIO_SHARED=ON" to cmake for now.