* [Xenomai-help] POSIX skin and dynamic libs
@ 2006-10-02 23:43 Jeff Webb
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Webb @ 2006-10-02 23:43 UTC (permalink / raw)
To: Xenomai help
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re:[Xenomai-help] POSIX skin and dynamic libs
@ 2006-10-03 7:54 gilles.chanteperdrix
2006-10-03 15:41 ` [Xenomai-help] " Jeff Webb
0 siblings, 1 reply; 3+ messages in thread
From: gilles.chanteperdrix @ 2006-10-03 7:54 UTC (permalink / raw)
To: jeff.webb; +Cc: xenomai-help
---------- Debut du message initial -----------
De : xenomai-help-bounces@domain.hid
A : "Xenomai help" xenomai@xenomai.org
Copies :
Date : Mon, 02 Oct 2006 18:43:40 -0500
Objet : [Xenomai-help] POSIX skin and dynamic libs
> 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.
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] POSIX skin and dynamic libs
2006-10-03 7:54 Re:[Xenomai-help] POSIX skin and dynamic libs gilles.chanteperdrix
@ 2006-10-03 15:41 ` Jeff Webb
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Webb @ 2006-10-03 15:41 UTC (permalink / raw)
To: xenomai-help
gilles.chanteperdrix wrote:
>> 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
>
> The wrapper for __real_pthread_getschedparam is missing in
> src/skins/posix/wrappers.c, try adding it.
That works. Thanks, again!
-Jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-10-03 15:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-03 7:54 Re:[Xenomai-help] POSIX skin and dynamic libs gilles.chanteperdrix
2006-10-03 15:41 ` [Xenomai-help] " Jeff Webb
-- strict thread matches above, loose matches on Subject: below --
2006-10-02 23:43 Jeff Webb
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.