- From: ??? <liuxiaomei_521_at_163.com>
- Date: Mon, 21 Jun 2004 09:39:58 +0800
Hi:
what is the relation between comedi-0.7.60/include/linux/comedilib.h and /usr/comedilib.h ?
I use comedi-0.7.60 in my rtlinux(3.2) modules, if my include file is /usr/comedilib.h
some compile problome come out:
wrong message :
cc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -g -D__RTL__ -D_LOOSE_KERNEL_NAMES -O2 -I/usr/src/rtlinux-3.2-pre2/linux/include -I/usr/src/rtlinux-3.2-pre2/include -I/usr/src/rtlinux-3.2-pre2/include/compat -I/usr/src/rtlinux-3.2-pre2/include/posix -c -o 1756.o 1756.c
In file included from /usr/include/sys/ioctl.h:30,
from /usr/include/comedilib.h:29,
from 1756.c:14:
/usr/include/bits/ioctl-types.h:29: redefinition of `struct winsize'
/usr/include/bits/ioctl-types.h:38: redefinition of `struct termio'
In file included from /usr/include/bits/types.h:143,
from /usr/include/stdio.h:36,
from /usr/include/comedilib.h:31,
from 1756.c:14:
/usr/include/bits/pthreadtypes.h:52: conflicting types for `pthread_attr_t'
/usr/src/rtlinux-3.2-pre2/include/rtl_sched.h:251: previous declaration of `pthread_attr_t'
/usr/include/bits/pthreadtypes.h:70: conflicting types for `pthread_key_t'
/usr/src/rtlinux-3.2-pre2/include/rtl_sched.h:216: previous declaration of `pthread_key_t'
/usr/include/bits/pthreadtypes.h:140: conflicting types for `pthread_t'
/usr/src/rtlinux-3.2-pre2/include/rtl_sched.h:59: previous declaration of `pthread_t'
1756.c: In function `bit_toggle':
1756.c:44: warning: passing arg 1 of `pthread_make_periodic_np' makes pointer from integer without a cast
1756.c: In function `init_module':
1756.c:68: warning: passing arg 1 of `pthread_attr_init' from incompatible pointer type
1756.c:70: warning: passing arg 1 of `pthread_attr_setschedparam' from incompatible pointer type
1756.c:71: warning: passing arg 1 of `__pthread_create' from incompatible pointer type
1756.c:71: warning: passing arg 2 of `__pthread_create' from incompatible pointer type
1756.c: In function `cleanup_module':
1756.c:79: warning: passing arg 1 of `pthread_delete_np' makes pointer from integer without a cast
make: *** [1756.o] Error 1
if my include file is comedi-0.7.60/include/linux/comedilib.h,no wrong message,but comedi_dio_write()
return -22,(comedi_open() is right!) what is the matter for this?
Thank you for your help!
liuxiaomei_521_at_163.com
2004-06-21
Received on 2004-06-21Z00:39:58