From: Jakub Nowacki <j.s.nowacki@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] unresolved symbol - check the xenomai installation
Date: Sun, 08 Jan 2012 20:38:00 +0000 [thread overview]
Message-ID: <4F09FEA8.9080001@domain.hid> (raw)
In-Reply-To: <4F06C191.1090704@domain.hid>
On 06/01/12 09:40, Gilles Chanteperdrix wrote:
> This is not the same issue as Gregory. Gregory missing symbols were from
> libnative, and we know that examples makefiles include -lnative, so,
> libnative is probably not installed in the place where the linker looks
> for it: that is an installation issue.
> On the other hands, the symbols from the errors you show us are defined
> in libxenomai.so. So, the RTXI build system is likely using hardcoded
> flags instead of the flags returned by xeno-config: that is a makefile
> issue.
>
OK, maybe my problem is not similar but I still get unresolved
reference. Below I show the full listing when compilation fails
/bin/bash ../libtool --tag=CXX --mode=link g++ -pipe -Wall
-I/usr/share/qt3/include -DQT_THREAD_SUPPORT -O2 -L/usr/share/qt3/lib
-lqt-mt -lSM -lICE -lX11 -lXext -lXmu -lXt -lXi -lgsl -lgslcblas -lm
-L/usr/xenomai/lib -lxenomai -lpthread -lrt -lnative -o rtxi
cmdline.o daq.o default_gui_model.o event.o fifo.o io.o main.o
main_window.o mutex.o plugin.o rt.o rtfile.o rwlock.o sem.o settings.o
workspace.o rt_os-xenomai.o moc_default_gui_model.o moc_main_window.o
moc_plugin.o -rdynamic
libtool: link: g++ -pipe -Wall -I/usr/share/qt3/include
-DQT_THREAD_SUPPORT -O2 -o rtxi cmdline.o daq.o default_gui_model.o
event.o fifo.o io.o main.o main_window.o mutex.o plugin.o rt.o rtfile.o
rwlock.o sem.o settings.o workspace.o rt_os-xenomai.o
moc_default_gui_model.o moc_main_window.o moc_plugin.o -rdynamic
-L/usr/share/qt3/lib /usr/lib/libqt-mt.so -lSM -lICE -lX11 -lXext -lXmu
-lXt -lXi -lgsl -lgslcblas -lm -L/usr/xenomai/lib
/usr/xenomai/lib/libxenomai.so -lpthread -lrt
/usr/xenomai/lib/libnative.so -Wl,-rpath -Wl,/usr/xenomai/lib -Wl,-rpath
-Wl,/usr/xenomai/lib
/usr/xenomai/lib/libnative.so: undefined reference to `xeno_current'
/usr/xenomai/lib/libnative.so: undefined reference to `xeno_sem_heap'
/usr/xenomai/lib/libnative.so: undefined reference to
`xeno_sigshadow_install_once'
/usr/xenomai/lib/libnative.so: undefined reference to `xeno_set_current'
/usr/xenomai/lib/libnative.so: undefined reference to `xeno_map_heap'
/usr/xenomai/lib/libnative.so: undefined reference to `xnarch_tsc_to_ns'
/usr/xenomai/lib/libnative.so: undefined reference to
`xeno_handle_mlock_alert'
/usr/xenomai/lib/libnative.so: undefined reference to `xeno_fault_stack'
/usr/xenomai/lib/libnative.so: undefined reference to
`xeno_set_current_mode'
/usr/xenomai/lib/libnative.so: undefined reference to `xeno_bind_skin_opt'
/usr/xenomai/lib/libnative.so: undefined reference to `xeno_current_mode'
/usr/xenomai/lib/libnative.so: undefined reference to `xnarch_ns_to_tsc'
collect2: ld returned 1 exit status
make[1]: *** [rtxi] Error 1
make[1]: Leaving directory `/usr/src/rtxi-1.31/rtxi'
make: *** [all-recursive] Error 1
I use xeno-config to get flags, as you can see in the above libtool
command. I'm not the expert on autotools, but everything seems to look
OK. I even tried to add xenomai LD_LIBRARY_PATH, but the result is still
the same. I think I give it a go with 2.5.6 and see if the error is
there; I installed xenomai 2.5.6 for RTXI a couple of times on different
machines and I don't recall this problem. Just to be absolutely clear,
I'm suing Ubuntu 11.04 with GCC 4.6 (I checked 4.5 and I get the same
thing).
Best wishes,
Jakub
next prev parent reply other threads:[~2012-01-08 20:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-04 14:31 [Xenomai-help] unresolved symbol - check the xenomai installation Gregory Gosse
2012-01-04 14:55 ` Gilles Chanteperdrix
2012-01-04 16:22 ` Gregory Gosse
2012-01-04 17:45 ` Gilles Chanteperdrix
2012-01-05 23:07 ` Jakub Nowacki
2012-01-06 9:40 ` Gilles Chanteperdrix
2012-01-08 20:38 ` Jakub Nowacki [this message]
2012-01-08 22:09 ` Philippe Gerum
2012-01-08 22:35 ` Jakub Nowacki
2012-01-09 12:11 ` Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F09FEA8.9080001@domain.hid \
--to=j.s.nowacki@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.