POSIX skin and dynamic libs
---------- Debut du message initial -----------
De : [email protected]
A : "Xenomai help" [email protected]
Copies :
Date : Mon, 02 Oct 2006 18:43:40 -0500
Objet : [Xenomai-help] POSIX skin and dynamic libs
Quoted 6 lines
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:
Quoted 7 lines
IOError:
/usr/xenomai/lib/libpthread_rt.so.0: undefined symbol:__real_pthread_getschedparamThis 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.
The wrapper for __real_pthread_getschedparam is missing in src/skins/posix/wrappers.c, try adding it.
--
Gilles Chanteperdrix
Accédez au courrier électronique de La Poste
sur www.laposte.net ou sur 3615 LAPOSTENET (0,34€ TTC /mn) 1 Giga de stockage gratuit – Antispam et antivirus intégrés
Quoted 11 lines · gilles.chanteperdrix
Quoted 8 lines
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_getschedparamThe wrapper for
__real_pthread_getschedparamis missing insrc/skins/posix/wrappers.c, try adding it.
That works. Thanks, again!
-Jeff