Krzysztof Błaszkowski wrote: > On Wed, 2010-08-18 at 00:59 +0200, Gilles Chanteperdrix wrote: >> - I have not really checked your user-space compilation flags, I am >> using xeno-config to get the correct ones. > > xeno-config --skin=native --cflags gives: > > -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -Wall -pipe -D__XENO__ > > > note that there is no xenomai installed on my r&d server > in /usr/xenomai/ > > i build xenomai per kernel and install it in kernel's INSTALL sub-dir > (DESTDIR=) as well as kernel's modules and other related stuff for this > particular kernel. > (otherwise i would go mad soon due to various versions ..)
xeno-config handles the DESTDIR environment variable (failing to do this would be kind of silly, because a lot of people, including the maintainers, use Xenomai mostly in cross-compiled environment). > xeno-config --skin=native --ldflags gives: > > -lnative -L/usr/xenomai/lib -lxenomai -lpthread > > and indeed i missed libpthread but otoh userland without pthread even > does not depend directly on pthreads: > > ldd xeno-shmem-fork > linux-gate.so.1 => (0xffffe000) > libnative.so.3 => not found > libxenomai.so.0 => not found > libc.so.6 => /lib/libc.so.6 (0xf7da5000) > /lib/ld-linux.so.2 (0xf7f10000) > > when compiled without pthreads. libnative depends on pthread, if ldd had been able to find libnative, it would have found the dependency on libpthread. >> - your user-space code was missing #include <unistd.h> > > i added. it changed nothing. Ok, with all other changes I assume? >> - some subtle difference in the glibc > > hmm, i'd say that is rather out my control. i use by default opensuse > for r&d. > > does this mean that this distro is broken ? > > (otoh many things are - especially gnome) What version of opensuse? If several toolchains are available, which one are you using? I do not mean to say that the glibc is broken, only that xenomai could use it in a way that breaks with the version you are using. >> In any case, without further information, it is hard for me to dig any >> further tonight. Regards. > > i see. want you me to send .config file ? anything else ? Run cat /proc/ipipe/version /proc/xenomai/version, uname and "getconf GNU_LIBPTHREAD_VERSION" on the target, in order to get sure that you run the versions you think you are running. Then please send your .config. Please also send a full kernel log, from the boot, up to the bug. -- Gilles. _______________________________________________ Xenomai-core mailing list Xenomai-core@gna.org https://mail.gna.org/listinfo/xenomai-core