Re: [LAD] ladspa: dlopen failed for tap ladspa plugins

From: Cedric Roux <sed@email-addr-hidden>
Date: Sun May 18 2014 - 23:09:55 EEST

On 05/18/2014 09:04 PM, Filipe Coelho wrote:
> On 05/18/2014 07:50 PM, Cedric Roux wrote:
>> Ubuntu is wrong too. Debian is okay. So it might be ubuntu the
>> guilty one in there. I sent an email to the list
>> ubuntu-motu@email-addr-hidden
>> (https://lists.ubuntu.com/archives/ubuntu-motu/2014-May/007660.html)
>
> I think this is caused by -Wl,--as-needed in the LDFLAGS.
> This flag was introduced some time ago in Debian, and recent Ubuntu
> versions have it as well.
>
> Have you checked tap-plugins from debian testing?
> Perhaps the issue is also there.

I tried testing and unstable. ldd tap_rotspeak.so shows libm.

Got a reply in the ubuntu mailing list.
(https://lists.ubuntu.com/archives/ubuntu-motu/2014-May/007661.html)

As you say, it seems to be related with the --as-needed thing.
So now the real question is why it works in debian. :)

And for plugin writers, remember to put the libraries you use
*after* your .o files in the linking command line. Some
distributions have funky linker defaults.

So tap-plugins is wrong. The -lm comes *before* the .o in the Makefile.
(what a crazy sunday...)
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Mon May 19 00:15:02 2014

This archive was generated by hypermail 2.1.8 : Mon May 19 2014 - 00:15:03 EEST