All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] __rtdm_muxid symbol multipy defined in static libs
@ 2012-07-30 19:17 Jeff Weber
  2012-07-30 19:23 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Weber @ 2012-07-30 19:17 UTC (permalink / raw)
  To: Xenomai Mailing List

When I attempt to statically link my application, the linker complains the
symbol
__rtdm_muxid is multiply defined.:

c++  -o myapp myobjects  mylibs -static -lsqlite3 -lrtdm -L/usr/xenomai/lib
-lpthread_rt -lxenomai -lpthread -lrt -ldl
/usr/xenomai/lib/libpthread_rt.a(libpthread_rt_la-init.o):(.data+0x4):
multiple definition of `__rtdm_muxid'
/usr/xenomai/lib/librtdm.a(librtdm_la-init.o):(.data+0x0): first defined
here

(I have pre-linked a subset of object files with the posix.wrappers script
so I can control which application posix calls
bind to the Xenomai __wrap_ calls.)

Use of "nm" shows what the linker is complaining about:

 # nm --defined -o /usr/xenomai/lib/*.a | grep __rtdm_muxid
/usr/xenomai/lib/libpthread_rt.a:libpthread_rt_la-init.o:00000004 D
__rtdm_muxid
/usr/xenomai/lib/librtdm.a:librtdm_la-init.o:00000000 D __rtdm_muxid

I have no link errors when dynamically linking my application.

Am I statically linking incorrectly, or is this a bug?

my config:
architecture: x86 32-bit
Xenomai-2.6.1

Thanks,
Jeff

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

end of thread, other threads:[~2012-07-30 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-30 19:17 [Xenomai] __rtdm_muxid symbol multipy defined in static libs Jeff Weber
2012-07-30 19:23 ` Gilles Chanteperdrix

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.