Re: problems compiling comedi/rtai modules persists

Hello,

I am not exactly sure what you are doing, but it looks like you are tryign to use the user space library calls from withint RTAI, which is not correct. Try setting up comedi to use RTAI, with the kernel support for comedi. See comedi and RTAI documentation for details.

~Ken 

>>> Nick Torenvliet <torenvliet_at_ica.net> 11/20 10:57 AM >>>
Hi all, so I've narrowed my problem down a little, I am trying to write 
an rtai module that uses

I am trying to hack the /usr/src/rtai/examples/preempt example so that 
it does something using ni_pcimio.

I can compile and run the preempt example just fine.

When I add the line "#include <comedilib.h>" to the rt_process.c file 
and then try a make  I get a bunch of warnings culminating in the 
following error

/usr/include/sys/select.h:49: warning: redefinition of `suseconds_t'
/usr/src/linux-2.4.18/include/linux/types.h:22: warning: `suseconds_t' 
previously declared here
/usr/include/sys/select.h:74: conflicting types for `fd_set'
/usr/src/linux-2.4.18/include/linux/types.h:13: previous declaration of 
`fd_set'In file included from /usr/include/fcntl.h:33,
                 from /usr/include/comedilib.h:30,
                 from ex_preempt.c:28:
/usr/include/bits/fcntl.h:137: redefinition of `struct flock'
make[2]: *** [ex_preempt.o] Error 1
make[2]: Leaving directory `/usr/src/rtai-24.1.10/examples/preempt'
make[1]: *** [_mod_examples/preempt] Error 2
make[1]: Leaving directory `/usr/src/rtai-24.1.10'
make: *** [all] Error 2

Can anyone help me out here,  I am quit new to command line programming 
and make files, etc. so I am not
quite sure how to blast through this one.




_______________________________________________
comedi mailing list
comedi_at_comedi.org 
https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi

Received on 2002-11-20Z16:08:37