[Bug 900] New: PluginLoader fails to load mqueue transport with target Xenomai

http://bugs.orocos.org/show_bug.cgi?id=900

Summary: PluginLoader fails to load mqueue transport with
target Xenomai
Product: Toolchain
Version: master
Platform: All
OS/Version: GNU/Linux
Status: NEW
Severity: minor
Priority: P3
Component: RTT
AssignedTo: orocos-dev [..] ...
ReportedBy: meyer [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

Created attachment 732
--> http://bugs.orocos.org/attachment.cgi?id=732
Orocos log file

When RTT is built and installed with mqueue transport enabled (default), the
PluginLoader fails to load the librtt-transport-mqueue-xenomai.so library due
to a dependency to libpthread_rt.so, which cannot be dlopen()ed (see
attachment).

Johannes

[Bug 900] PluginLoader fails to load mqueue transport with targe

http://bugs.orocos.org/show_bug.cgi?id=900

--- Comment #3 from Johannes Meyer <meyer [..] ...> 2011-09-23 00:21:02 CEST ---
I use the Xenomai libraries from the Ubuntu repos and therefore cannot simply
change the compile settings. Another simple solution would be to link
orocos-rtt with the posix skin during compile time, when mqueue transport is
going to be used and do not let dlopen() load that library.

I attached a little patch (untested). At least when running the RTT application
with LD_PRELOAD=/usr/lib/libpthreads_rt.so environment variable set, the error
disappears.

[Bug 900] PluginLoader fails to load mqueue transport with targe

http://bugs.orocos.org/show_bug.cgi?id=900

--- Comment #2 from Johannes Meyer <meyer [..] ...> 2011-09-23 00:14:40 CEST ---
Created attachment 734
--> http://bugs.orocos.org/attachment.cgi?id=734
link orocos-rtt with xenomai posix skin when mqueue transport is enabled

[Bug 900] PluginLoader fails to load mqueue transport with targe

http://bugs.orocos.org/show_bug.cgi?id=900

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |peter [..] ...
Resolution| |WONTFIX

--- Comment #1 from Peter Soetens <peter [..] ...> 2011-09-22 21:30:24 CEST ---
(In reply to comment #0)
> Created attachment 732 [details]
> Orocos log file
>
> When RTT is built and installed with mqueue transport enabled (default), the
> PluginLoader fails to load the librtt-transport-mqueue-xenomai.so library due
> to a dependency to libpthread_rt.so, which cannot be dlopen()ed (see
> attachment).

This is a known issue and due to a misconfiguration of your Xenomai libraries.

>From our mailing list/forum:

"I believe the solution to this issue is is to build Xenomai with the
"--enable-dlopen-skins" option. If you're using "configure", just make it an
option of that. If you're going with the Debian package, edit the
./debian/config file and add the option to the list."

My 'wontfix' is a 'cantfix' actually... unless someone knows how to check this
during Orocos/RTT build or run-time such that we can warn the user.

Peter