On Fri, Jan 25, 2019 at 1:31 PM Tobias Pape <notifications@github.com><br>
wrote:<br>
<br>
> Hi.<br>
><br>
> The problem here is that the sound pluing (vm-sound-pulse) is in fact not<br>
> linked agains the libpulse-simple.so. So says ldd and a quick glance a<br>
> the code does not tell me why tho.<br>
><br>
> When the sound system is initialized, it apparently tries to dynload the<br>
> vm-sound-pulse but since it has unresolved symbols, that fails.<br>
><br>
> However, using LD_PRELOAD, we force the libpulse-simple.so into the<br>
> starting process, so that the dynload can actually succeed, as the missing<br>
> symbols can already be found in the process. (LD_PRELOAD is present on al<br>
> ELF-based systems, ie, Linux/BSD, Mach-O based use DYLD_INSERT_LIBRARIES,<br>
> ie macOS).<br>
><br>
> The proper fix would be to ling vm-sound-pulse with -lpulse-simple<br>
> somehow, but looking at the Make-includes/cmake files, I wonder why that's<br>
> not the case in the first place.<br>
><br>
<br>
I suspect the autoconfig step being run on a build machine without lib<br>
pulse correctly installed.  Again that's an advantage of static makefiles;<br>
if prerequisites are unavailable the build will fail instead of the system<br>
silently (or at least very muffled) deciding not to link against a missing<br>
library.<br>
<br>
<br>
> —<br>
> You are receiving this because you commented.<br>
> Reply to this email directly, view it on GitHub<br>
> <https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/360#issuecomment-457736311>,<br>
> or mute the thread<br>
> <https://github.com/notifications/unsubscribe-auth/APHa0CPjFTfSsosBXq1-5TQ1FsKYXteLks5vG3edgaJpZM4aS083><br>
> .<br>
><br>
<br>
<br>
-- <br>
_,,,^..^,,,_<br>
best, Eliot<br>


<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-457742624">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AhLyW-GayfcXq03fU8bv_Mpe89muFZqWks5vG3xggaJpZM4aS083">mute the thread</a>.<img src="https://github.com/notifications/beacon/AhLyW-woJHHyZNT5z2o4CK16llgNN23eks5vG3xggaJpZM4aS083.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":"@eliotmiranda in #360: On Fri, Jan 25, 2019 at 1:31 PM Tobias Pape \u003cnotifications@github.com\u003e\nwrote:\n\n\u003e Hi.\n\u003e\n\u003e The problem here is that the sound pluing (vm-sound-pulse) is in fact not\n\u003e linked agains the libpulse-simple.so. So says ldd and a quick glance a\n\u003e the code does not tell me why tho.\n\u003e\n\u003e When the sound system is initialized, it apparently tries to dynload the\n\u003e vm-sound-pulse but since it has unresolved symbols, that fails.\n\u003e\n\u003e However, using LD_PRELOAD, we force the libpulse-simple.so into the\n\u003e starting process, so that the dynload can actually succeed, as the missing\n\u003e symbols can already be found in the process. (LD_PRELOAD is present on al\n\u003e ELF-based systems, ie, Linux/BSD, Mach-O based use DYLD_INSERT_LIBRARIES,\n\u003e ie macOS).\n\u003e\n\u003e The proper fix would be to ling vm-sound-pulse with -lpulse-simple\n\u003e somehow, but looking at the Make-includes/cmake files, I wonder why that's\n\u003e not the case in the first place.\n\u003e\n\nI suspect the autoconfig step being run on a build machine without lib\npulse correctly installed.  Again that's an advantage of static makefiles;\nif prerequisites are unavailable the build will fail instead of the system\nsilently (or at least very muffled) deciding not to link against a missing\nlibrary.\n\n\n\u003e —\n\u003e You are receiving this because you commented.\n\u003e Reply to this email directly, view it on GitHub\n\u003e \u003chttps://github.com/OpenSmalltalk/opensmalltalk-vm/issues/360#issuecomment-457736311\u003e,\n\u003e or mute the thread\n\u003e \u003chttps://github.com/notifications/unsubscribe-auth/APHa0CPjFTfSsosBXq1-5TQ1FsKYXteLks5vG3edgaJpZM4aS083\u003e\n\u003e .\n\u003e\n\n\n-- \n_,,,^..^,,,_\nbest, Eliot\n"}],"action":{"name":"View Issue","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/360#issuecomment-457742624"}}}</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-457742624",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/360#issuecomment-457742624",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>