Re: Compile sndio as static library

From: Fuzhou Chen <>
Date: Wed, 13 Dec 2023 16:31:07 +0800
Hi Jan,

It does. See source code:
I also attached my readelf and ldd output when querying
/usr/lib/, on the Manjaro unstable branch. You can see it
depends on, which is part of alsa-lib package.

If you are running on other systems, it's also possible that the system
distributed is built using other backends, maybe OSS?

Actually, the different output from your machine and mine shows a perfect
example to support my previous scenario description, that why a game
developer should not depend on OS provided libraries.


==== Output of library needed ====
fuzhouch_at_fcdvh01 ~/p/c/s/libsndio (feature-staticlib)> readelf -a -W
/usr/lib/ |grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: []
 0x0000000000000001 (NEEDED)             Shared library: []
 0x0000000000000001 (NEEDED)             Shared library: []

fuzhouch_at_fcdvh01 ~/p/c/s/libsndio (feature-staticlib)> ldd
/usr/lib/ (0x00007ffc93d26000) => /usr/lib/ (0x00007f318171f000) => /usr/lib/ (0x00007f3181709000) => /usr/lib/ (0x00007f3181527000) => /usr/lib/ (0x00007f318143a000)
/usr/lib64/ (0x00007f3181851000) => /usr/lib/ (0x00007f318142a000)

On Wed, Dec 13, 2023 at 3:41 PM Jan Stary <> wrote:

> > I hit this problem on my project, HashBLD. The goal is to make a game
> > engine, hashlink, portable: A
> > dependency chain on the audio part is: hashlink(openal.hdll module) ->
> > openal-soft -> libsndio -> alsa-lib.
> I don't think libsndio depends on alsa.
> /usr/lib/
> Start            End              Type  Open Ref GrpRef Name
> 00000344d1de0000 00000344d1df3000 dlib  1    0   0
> /usr/lib/
> > I set a fixed backend chain until
> > alsa-lib (since ALSA is available on all Linux distros).
Received on Wed Dec 13 2023 - 09:31:07 CET

This archive was generated by hypermail 2.3.0 : Thu Dec 14 2023 - 01:30:01 CET