libtool: dlopen() fails, but only when running as a subprocess
I have a strange issue with an application that uses libtool
to load plugins at runtime. When run directly from the shell, it operates correctly. But when run as a child process of any kind (e.g. Python subprocess
, /bin/sh -c <appname>
) it fails to load the plugins with the error message lt_dlopen(<plugin.so>) returned NULL, lt_dlerror() = file not found
.