<div dir="ltr"><div>Hi,</div><div>I can't get the LD_PRELOAD trick to function.</div><div><br></div><div>Best,</div><div>Karl</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 27, 2019 at 2:50 PM Tobias Pape <<a href="mailto:Das.Linux@gmx.de">Das.Linux@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
<br>
> On 27.01.2019, at 14:41, karl ramberg <<a href="mailto:karlramberg@gmail.com" target="_blank">karlramberg@gmail.com</a>> wrote:<br>
> <br>
> Sound on Linux seem to be a mess.<br>
> I'm on Ubuntu 18.04 and had no sound from Squeak.<br>
> I got this error in the terminal: dev/dsp: No such file or directory<br>
> I installed package osspd and that seem to solve the problem.<br>
> (sudo apt-get install osspd)<br>
<br>
This is the exact problem described.<br>
<br>
Please try " export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libpulse-simple.so.0.1.0" (or whereever that file is on your pc, and maybe i386 instead of x86_64 if you're running 32bit)<br>
and tell us if it helps in your case.<br>
<br>
best regards<br>
        -Tobias<br>
<br>
> <br>
> Best,<br>
> Karl<br>
> <br>
> <br>
> On Sat, Jan 26, 2019 at 12:18 AM Tobias Pape <<a href="mailto:notifications@github.com" target="_blank">notifications@github.com</a>> wrote:<br>
>  <br>
> > On 25.01.2019, at 23:32, Eliot Miranda <<a href="mailto:notifications@github.com" target="_blank">notifications@github.com</a>> wrote:<br>
> > <br>
> > Hi Tobias,<br>
> > <br>
> > On Fri, Jan 25, 2019 at 2:27 PM Tobias Pape <<a href="mailto:notifications@github.com" target="_blank">notifications@github.com</a>><br>
> > wrote:<br>
> > <br>
> > > That's besides the point here.<br>
> > ><br>
> > > The plugin would not have been built if the library was not present.<br>
> > > That's what the configure step is for.<br>
> > > The VM is origrinally from a travis and I made sure the lib is there:<br>
> > > <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/scripts/ci/travis_install.sh#L15" rel="noreferrer" target="_blank">https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/scripts/ci/travis_install.sh#L15</a><br>
> > > (thats the dev lib that depends on the real one:<br>
> > > <a href="https://packages.ubuntu.com/xenial/libpulse-dev" rel="noreferrer" target="_blank">https://packages.ubuntu.com/xenial/libpulse-dev</a>)<br>
> > ><br>
> > <br>
> > So how come it isn't linked against libpulse-simple.so ?<br>
> <br>
> I have not the slightest idea and, atm, no linux at hand.<br>
> We (ie, maybe, @ekrebs5 or @fniephaus) have to look wether this stems from here or <a href="https://github.com/squeak-smalltalk/squeak-app" rel="noreferrer" target="_blank">https://github.com/squeak-smalltalk/squeak-app</a> .<br>
> On macOS we have rpath issues that can come out like this and might be sensitive to be moved around…<br>
> <br>
> Here we see that the lib is added in configure:<br>
> <a href="https://travis-ci.org/OpenSmalltalk/opensmalltalk-vm/jobs/483526374#L1071" rel="noreferrer" target="_blank">https://travis-ci.org/OpenSmalltalk/opensmalltalk-vm/jobs/483526374#L1071</a><br>
> <br>
> And here we see that the squeak _binary_ is actually linked agains libpulse-simple:<br>
> <br>
> <a href="https://travis-ci.org/OpenSmalltalk/opensmalltalk-vm/jobs/483526374#L3455" rel="noreferrer" target="_blank">https://travis-ci.org/OpenSmalltalk/opensmalltalk-vm/jobs/483526374#L3455</a><br>
> <br>
> That is ok, since the dynloaded vm-sound-pulse can lookup in its loading process, which (being squeak being linked against libpulse-simple) should have the syms.<br>
> <br>
> Accordingly we see the plugin not begin linked against the lib:<br>
> <a href="https://travis-ci.org/OpenSmalltalk/opensmalltalk-vm/jobs/483526374#L4111" rel="noreferrer" target="_blank">https://travis-ci.org/OpenSmalltalk/opensmalltalk-vm/jobs/483526374#L4111</a><br>
> <br>
> The rest is libtool chitter-chat that i cannot understand so quick…<br>
> <br>
> > <br>
> > > All of the respecitve sound plugins are optional, and absence is expected.<br>
> > ><br>
> > <br>
> > Not for a build slave, surely. Shouldn't;t the build slave build all<br>
> > possible variants? If we're providing prebuilt VMs (for good reason) then<br>
> > we have to build what we support. Things like vm-display-fbdev may be<br>
> > something we can not support and leave to individuals to build if they want<br>
> > to. But vm-sound-pulse is not in that category.<br>
> <br>
> Did not say that. all the vm-*-* plugins seem to care for optionality. and IIRC it is nigh impossible to build for some combinations to be built with the same package set (NAS + OSS or some OSS/ALSA combos, but my memory is foggy there).<br>
> <br>
> In fact, I tried to make sure as many as possible plugins to be buildable on Travis: <br>
> <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/698661a94af388b06b98b11d9d2a4216b36acdb5#diff-852da479861e8f719725fb8018cc1699R5" rel="noreferrer" target="_blank">https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/698661a94af388b06b98b11d9d2a4216b36acdb5#diff-852da479861e8f719725fb8018cc1699R5</a><br>
> <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/989f7e06d041c145863dd2d648e196a3169947d4#diff-eaec0bdb68c02946e8335228ebbbbad9" rel="noreferrer" target="_blank">https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/989f7e06d041c145863dd2d648e196a3169947d4#diff-eaec0bdb68c02946e8335228ebbbbad9</a><br>
> <br>
> <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/75f59c456f79fb4f7ca64bc1d2504d3f9626e305" rel="noreferrer" target="_blank">https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/75f59c456f79fb4f7ca64bc1d2504d3f9626e305</a><br>
> <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/ca75c6bfd0903f25917b8b88aca63e574dd39a1f" rel="noreferrer" target="_blank">https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/ca75c6bfd0903f25917b8b88aca63e574dd39a1f</a><br>
> <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/a82b9cfdcf2f8d5396fa2f6950a06f35c374098d" rel="noreferrer" target="_blank">https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/a82b9cfdcf2f8d5396fa2f6950a06f35c374098d</a><br>
> <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/3a8a3c4bb7033c0e19c714ca4d90b0cc8f9f2565" rel="noreferrer" target="_blank">https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/3a8a3c4bb7033c0e19c714ca4d90b0cc8f9f2565</a><br>
> <br>
> Point is: yes, I really tried to make sure the build slave builds everything necessary.<br>
> <br>
> <br>
> -t<br>
> <br>
> <br>
> > <br>
> > _,,,^..^,,,_<br>
> > best, Eliot<br>
> > —<br>
> > You are receiving this because you were mentioned.<br>
> > Reply to this email directly, view it on GitHub, or mute the thread.<br>
> > <br>
> <br>
> —<br>
> You are receiving this because you commented.<br>
> Reply to this email directly, view it on GitHub, or mute the thread.<br>
> <br>
<br>
</blockquote></div>