From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4F06C191.1090704@domain.hid> Date: Fri, 06 Jan 2012 10:40:33 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <000301cccaed$80667540$81335fc0$@soterem.fr> <4F046865.9000408@domain.hid> <000001cccafd$1c6046b0$5520d410$@soterem.fr> <4F049054.4000302@domain.hid> <4F062D33.3060606@domain.hid> In-Reply-To: <4F062D33.3060606@domain.hid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] unresolved symbol - check the xenomai installation List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jakub Nowacki Cc: xenomai@xenomai.org On 01/06/2012 12:07 AM, Jakub Nowacki wrote: > On 04/01/12 17:45, Gilles Chanteperdrix wrote: >> >> This looks bad. Please re-run latency with no argument. If should >> normally produce a report about min/average/max latency every second. If >> it does not, I would recommend restarting the installation from scratch: >> - first uninstalling any installed version, running "make uninstall" in >> the build directory, this for xenomai 2.4.4 and 2.6.0. >> - re-run prepare-kernel, recompile the kernel, leaving the xenomai >> configuration options to their default value. >> > I have a similar problem trying to install xenomai 2.6.0. In my case > latency works correctly, but trying to compile examples gives me the > same 'unresolved reference' error. I noticed this first trying to > compile RTXI, which also gives me > > /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 refereance to `xnarch_ns_to_tsc' 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. -- Gilles.