[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Problem linking Linux Sound Library (#360)

Tobias Pape notifications at github.com
Fri Jan 25 21:31:09 UTC 2019


The problem here is that the sound pluing (`vm-sound-pulse`) is in fact not linked agains the `libpulse-simple.so`. So says `ldd` and a quick glance a the code does not tell me why tho.

When the sound system is initialized, it apparently tries to dynload the `vm-sound-pulse` but since it has unresolved symbols, that fails.

However, using `LD_PRELOAD`, we force the `libpulse-simple.so` into the starting process, so that the dynload can actually succeed, as the missing symbols can already be found in the process. (`LD_PRELOAD` is present on al ELF-based systems, ie, Linux/BSD, Mach-O based use `DYLD_INSERT_LIBRARIES`, ie macOS).

The proper fix would be to ling `vm-sound-pulse` with `-lpulse-simple` somehow, but looking at the Make-includes/cmake files, I wonder why that's not the case in the first place.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20190125/97a6b5ea/attachment-0001.html>

More information about the Vm-dev mailing list