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

Eliot Miranda notifications at github.com
Fri Jan 25 21:51:28 UTC 2019


On Fri, Jan 25, 2019 at 1:31 PM Tobias Pape <notifications at github.com>
wrote:

> Hi.
>
> 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.
>

I suspect the autoconfig step being run on a build machine without lib
pulse correctly installed.  Again that's an advantage of static makefiles;
if prerequisites are unavailable the build will fail instead of the system
silently (or at least very muffled) deciding not to link against a missing
library.


>> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/360#issuecomment-457736311>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/APHa0CPjFTfSsosBXq1-5TQ1FsKYXteLks5vG3edgaJpZM4aS083>
> .
>


-- 
_,,,^..^,,,_
best, Eliot


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/360#issuecomment-457742624
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20190125/c0b538a8/attachment.html>


More information about the Vm-dev mailing list