Oops, wrong email destination.
Sorry, i did not know about dlerror().
Output:
dlopen failed: /usr/lib/ladspa/tap_echo.so (dlerror:
/usr/lib/ladspa/tap_echo.so: undefined symbol: __powf_finite)
dlerror? (null)
In my code I call dlerror to print the error.
What is printed?
And can you send me the strace log so I have a look
at what's going on?
On 05/18/2014 11:15 AM, Zlobin Nikita wrote:
> I don't see any changes. In my code following check fails:
> if (pvPluginHandle)
> Shortly - dlopen returns NULL, so futher struggle is useless.
>
>> try that:
>>
>> #include <stdio.h>
>> #include <dlfcn.h>
>> int main (int argc, char ** argv)
>> {
>>
>> //LADSPAPluginSearch(describePluginLibrary);
>> char plugpath [] = "/usr/lib/ladspa/tap_echo.so";
>> void * pvPluginHandle = dlopen(plugpath, RTLD_NOW | RTLD_LOCAL);
>> if (pvPluginHandle) dlclose (pvPluginHandle);
>> else printf ("dlopen failed: %s (dlerror: %s)\n",
>>
>> plugpath, dlerror());
>>
>> printf("dlerror? %s\n", dlerror());
>>
>> return 0;
>>
>> }
>>
>> compile with:
>> gcc -Wall bug.c -ldl -o bug
>>
>> then run:
>> ./bug
>>
>> what happens?
>> If it fails, can you run:
>> strace ./bug 2>&1 > strace.log
>> and send me the strace.log file.
>>
>> and also tell me what "gcc --version" says,
>> and what "uname -a" says.
>>
>> Thanks.
>>
>> On 05/18/2014 07:07 AM, Zlobin Nikita wrote:
>>> Fons: i tried with existing path.
>>> Library path is valid - i checked it with ls (doing it for ladspa dir
>>> before to get libraries list).
>>>
>>> Code - includes are omited, line with main() declaration is numbered
>>>
>>> 30: int main (int argc, char ** argv)
>>> {
>>>
>>> //LADSPAPluginSearch(describePluginLibrary);
>>> char plugpath [] = "/usr/lib/ladspa/tap_echo.so";
>>> void * pvPluginHandle = dlopen(plugpath, RTLD_NOW | RTLD_LOCAL);
>>> if (pvPluginHandle) dlclose (pvPluginHandle);
>>> else printf ("dlopen failed: %s\n", plugpath);
>>> return 0;
>>>
>>> }
>>>
>>> hermann: thanks, will look
>>>
>>>> On 05/17/2014 10:15 PM, Zlobin Nikita wrote:
>>>>> Backtrace of scanning crash (gdb output) is in attachement (too
long
>>>>> lines
>>>>> in email message are automatically wrapped - don't know, is it
good to
>>>>> violate this).
>>>>
>>>> You should provide some code, it's hard to help you without seeing
what
>>>> your program really does.
>>>
>>> _______________________________________________
>>> Linux-audio-dev mailing list
>>> Linux-audio-dev(a)lists.linuxaudio.org
>>>
http://lists.linuxaudio.org/listinfo/linux-audio-dev