All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] Unresolved symbols tickGet/wind_current_context_errno using libvxworks.a
@ 2006-01-22 20:17 Niklaus Giger
  2006-01-23 18:22 ` Thomas Lockhart
  0 siblings, 1 reply; 2+ messages in thread
From: Niklaus Giger @ 2006-01-22 20:17 UTC (permalink / raw)
  To: xenomai

Hi

Linking my vxworks application library (about 180 C++ files) against xenomai 
2.1 gives me now the following errors:
../../obj/xeno-ppc/BSys_lib.a(BSysCountingSemaphore.o):BSysCountingSemaphore.cpp:
(.text+0x14d4): more undefined references to `wind_current_context_errno' 
follow
../../obj/xeno-ppc/BSys_lib.a(BSysTick.o): In function 
`BSysTick::now()':BSysTick.cpp:(.text+0x1dc): undefined reference to 
`tickGet'

It does not however complain about the other used functions like taskSpawn.
Looking at  /usr/xenomai/lib/libvxworks.a using nm gives me the following 
results:
$ nm -o /usr/xenomai/lib/libvxworks.a |grep tickGet
/usr/xenomai/lib/libvxworks.a:tickLib.o:00000000 T tickGet
$ nm -o /usr/xenomai/lib/libvxworks.a |grep wind_current_context_errno
/usr/xenomai/lib/libvxworks.a:errnoLib.o:00000000 T wind_current_context_errno
$ nm -o /usr/xenomai/lib/libvxworks.a |grep taskSpawn
/usr/xenomai/lib/libvxworks.a:taskLib.o:00000d80 T taskSpawn

Is this the result that tickGet is defined as xnticks_t tickGet(void) in 
xenomai but as int tickGet(void) under vxWorks?

Any help would be appreciated? Thanks in advance.

Best regards

-- 
Niklaus Giger


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai-core] Unresolved symbols tickGet/wind_current_context_errno using libvxworks.a
  2006-01-22 20:17 [Xenomai-core] Unresolved symbols tickGet/wind_current_context_errno using libvxworks.a Niklaus Giger
@ 2006-01-23 18:22 ` Thomas Lockhart
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lockhart @ 2006-01-23 18:22 UTC (permalink / raw)
  To: niklaus.giger; +Cc: xenomai

> Linking my vxworks application library (about 180 C++ files) against xenomai 
> 2.1 gives me now the following errors...
> Is this the result that tickGet is defined as xnticks_t tickGet(void) in 
> xenomai but as int tickGet(void) under vxWorks?

Hmm, that should not matter since the symbol would be the same (only C++ 
  which mangles names would have a different signature).

More likely the library containing the symbols is mentioned before the 
library needing the symbols. Look for that or send along the actual call 
to the linker...

hth

                                 - Tom

-- 
Thomas Lockhart
Supervisor, Realtime Software Group
Interferometry and Large Optical Systems
Caltech/JPL


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-23 18:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-22 20:17 [Xenomai-core] Unresolved symbols tickGet/wind_current_context_errno using libvxworks.a Niklaus Giger
2006-01-23 18:22 ` Thomas Lockhart

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.