Skip to contentSkip to conversation

POSIX skin and dynamic libs

Xenomai-help Jeff Webb 1 participant 1 message Oct 2, 2006

lore
Share & tools
lore

Jeff Webb

author
#0 lore raw

I have a main program that dynamically loads shared library modules using dlopen(). I would like to create a shared library module that is able to spawn a Xenomai RT thread. This seems like it should be possible, but I get the following error when loading the module:

IOError: /usr/xenomai/lib/libpthread_rt.so.0: undefined symbol: __real_pthread_getschedparam

This seems to be related to the "-Wl,--wrap" linker flags. Is there a way to get this to work? I don't think recompiling the main program is an option, but I can add some code that gets executed before the dynamic library is loaded.

Thanks,

Jeff