All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] POSIX skin and dynamic libs
@ 2006-10-02 23:43 Jeff Webb
  0 siblings, 0 replies; 2+ 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] 2+ messages in thread

* Re: [Xenomai-help] POSIX skin and dynamic libs
  2006-10-03  7:54 gilles.chanteperdrix
@ 2006-10-03 15:41 ` Jeff Webb
  0 siblings, 0 replies; 2+ 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] 2+ messages in thread

end of thread, other threads:[~2006-10-03 15:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-02 23:43 [Xenomai-help] POSIX skin and dynamic libs Jeff Webb
  -- strict thread matches above, loose matches on Subject: below --
2006-10-03  7:54 gilles.chanteperdrix
2006-10-03 15:41 ` [Xenomai-help] " 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.