<p>Hi.</p>
<p>The problem here is that the sound pluing (<code>vm-sound-pulse</code>) is in fact not linked agains the <code>libpulse-simple.so</code>. So says <code>ldd</code> and a quick glance a the code does not tell me why tho.</p>
<p>When the sound system is initialized, it apparently tries to dynload the <code>vm-sound-pulse</code> but since it has unresolved symbols, that fails.</p>
<p>However, using <code>LD_PRELOAD</code>, we force the <code>libpulse-simple.so</code> into the starting process, so that the dynload can actually succeed, as the missing symbols can already be found in the process. (<code>LD_PRELOAD</code> is present on al ELF-based systems, ie, Linux/BSD, Mach-O based use <code>DYLD_INSERT_LIBRARIES</code>, ie macOS).</p>
<p>The proper fix would be to ling <code>vm-sound-pulse</code> with <code>-lpulse-simple</code> somehow, but looking at the Make-includes/cmake files, I wonder why that's not the case in the first place.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/360#issuecomment-457736311">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AhLyW7GgVWEkMaNF2IkrEaXKSjxJu4SGks5vG3edgaJpZM4aS083">mute the thread</a>.<img src="https://github.com/notifications/beacon/AhLyWxdpmjz75SJt-QHe-fy-m0iHxRHGks5vG3edgaJpZM4aS083.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@krono in #360: Hi.\r\n\r\nThe 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.\r\n\r\nWhen the sound system is initialized, it apparently tries to dynload the `vm-sound-pulse` but since it has unresolved symbols, that fails.\r\n\r\nHowever, 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).\r\n\r\nThe 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."}],"action":{"name":"View Issue","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/360#issuecomment-457736311"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/360#issuecomment-457736311",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/360#issuecomment-457736311",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>