Hi all, I recently compiled and installed a xenomai patched kernel but I am currently having some issues compiling sample code that came with the xenomai kernel. So here's what is happening:
================================================================================================= root@zion:/usr/src/xenomai-2.6.0/examples/posix# make XENO=/usr/xenomai/ KSRC=/usr/src/linux-2.6.38.8-xenomai/ --xeno-cflags is deprecated, use --skin=name --cflags instead --xeno-ldflags is deprecated, use --skin=name --ldflags instead gcc -DCONSUMER -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -Wall -Werror-implicit-function-declaration -pipe -D__XENO__ -I/usr/xenomai/include/posix -Wl,@/usr/xenomai/lib/posix.wrappers -L/usr/xenomai/lib -lpthread_rt -lxenomai -lpthread -lrt -Xlinker -rpath -Xlinker /usr/xenomai/lib satch.c -o satch /usr/bin/ld: /tmp/ccLV0g8I.o: undefined reference to symbol 'pthread_cancel@@GLIBC_2.0' /usr/bin/ld: note: 'pthread_cancel@@GLIBC_2.0' is defined in DSO /lib/i386-linux-gnu/libpthread.so.0 so try adding it to the linker command line /lib/i386-linux-gnu/libpthread.so.0: could not read symbols: Invalid operation collect2: ld returned 1 exit status make: *** [satch] Error 1 ================================================================================================= Linker issue here, the program satch in posix directory won't compile, first change in the posix makefile: ================================================================================================= CFLAGS=-DCONSUMER $(shell $(XENOCONFIG) --skin=posix --cflags) $(APP_CFLAGS) LDFLAGS=$(shell $(XENOCONFIG) --skin=posix --ldflags) $(APP_LDFLAGS) ================================================================================================= Then, the program still doesn't compile so I actually had to remove the lpthread switch in compiling: ================================================================================================= vikram@zion:/usr/src/xenomai-2.6.0/examples/posix$ gcc -DCONSUMER -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -Wall -Werror-implicit-function-declaration -pipe -D__XENO__ -I/usr/xenomai/include/posix -Wl,@/usr/xenomai/lib/posix.wrappers -L/usr/xenomai/lib -lpthread_rt -lxenomai -lrt -Xlinker -rpath -Xlinker /usr/xenomai/lib satch.c -o satch vikram@zion:/usr/src/xenomai-2.6.0/examples/posix$ ls Makefile Makefile~ README satch satch.c vikram@zion:/usr/src/xenomai-2.6.0/examples/posix$ ./satch Xenomai: binding failed: Operation not permitted. ================================================================================================= Can anyone tell me what is causing the issue here? Thanks! - Vikram _______________________________________________ Xenomai-help mailing list Xenomai-help@gna.org https://mail.gna.org/listinfo/xenomai-help