- From: Klaus Oppermann <klaus.oppermann_at_students.jku.at>
- Date: Mon, 24 Jul 2006 09:22:46 +0200
Hi
I use a RT-Linux 2.4.26-rtl3.2-rc1 kernel and I want to install the comedi driver included by the distribution. When I install the driver without RT-support the driver installs correctly. With this option this error occurs:
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -fomit-frame-pointer -D__RTL__ -D_LOOSE_KERNEL_NAMES -O2 -I/usr/src/linux/include -I/usr/src/rtlinux-3.2-rc1/include -I/usr/src/rtlinux-3.2-rc1/include/compat -I/usr/src/rtlinux-3.2-rc1/drivers/comedi/include -I/usr/src/rtlinux-3.2-rc1/include/posix -DMODULE -c -o rt_pend_tq.o rt_pend_tq.c
rt_pend_tq.c:67: error: parse error before '{' token
make[1]: *** [rt_pend_tq.o] Error 1
make[1]: Leaving directory `/usr/comedi/comedi'
make: *** [_mod_comedi] Error 2
And with newer drivers I have other compiling problems. For example with the comedi 7.70 there is a comedi_rt_timer error.
So I think it is easier to use the old driver, because they work in parts.
comedi_rt_timer.c:139: error: parse error before "RT_TASK"
comedi_rt_timer.c:139: warning: no semicolon at end of struct or union
comedi_rt_timer.c:140: warning: type defaults to `int' in declaration of `scan_task'
comedi_rt_timer.c:140: warning: data definition has no type or storage class
comedi_rt_timer.c:146: error: parse error before "start"
comedi_rt_timer.c:146: warning: type defaults to `int' in declaration of `start'
comedi_rt_timer.c:146: warning: data definition has no type or storage class
comedi_rt_timer.c:148: error: parse error before "scan_period"
comedi_rt_timer.c:148: warning: type defaults to `int' in declaration of `scan_period'
comedi_rt_timer.c:148: warning: data definition has no type or storage class
comedi_rt_timer.c:150: error: parse error before "convert_period"
comedi_rt_timer.c:150: warning: type defaults to `int' in declaration of `convert_period'
comedi_rt_timer.c:150: warning: data definition has no type or storage class
comedi_rt_timer.c:155: error: parse error before ':' token
comedi_rt_timer.c:156: warning: type defaults to `int' in declaration of `timer_private'
comedi_rt_timer.c:156: warning: data definition has no type or storage class
comedi_rt_timer.c: In function `timer_cancel':
comedi_rt_timer.c:161: error: parse error before ')' token
comedi_rt_timer.c: In function `check_scan_timing':
comedi_rt_timer.c:170: error: `RTIME' undeclared (first use in this function)
comedi_rt_timer.c:170: error: (Each undeclared identifier is reported only once
comedi_rt_timer.c:170: error: for each function it appears in.)
comedi_rt_timer.c:170: error: parse error before "now"
comedi_rt_timer.c:172: error: `now' undeclared (first use in this function)
comedi_rt_timer.c:172: warning: implicit declaration of function `rt_get_time'
comedi_rt_timer.c:173: error: `timing_error' undeclared (first use in this function)
comedi_rt_timer.c:173: error: parse error before ')' token
comedi_rt_timer.c:173: error: parse error before ')' token
comedi_rt_timer.c:174: error: parse error before ')' token
comedi_rt_timer.c: At top level:
comedi_rt_timer.c:185: error: parse error before "RTIME"
comedi_rt_timer.c:186: warning: function declaration isn't a prototype
comedi_rt_timer.c: In function `check_conversion_timing':
comedi_rt_timer.c:187: error: `RTIME' undeclared (first use in this function)
comedi_rt_timer.c:187: error: parse error before "now"
comedi_rt_timer.c:189: error: `now' undeclared (first use in this function)
comedi_rt_timer.c:190: error: `timing_error' undeclared (first use in this function)
comedi_rt_timer.c:190: error: `scan_start' undeclared (first use in this function)
comedi_rt_timer.c:190: error: `conversion' undeclared (first use in this function)
comedi_rt_timer.c:190: error: parse error before ')' token
comedi_rt_timer.c:191: error: parse error before ')' token
comedi_rt_timer.c:192: error: `dev' undeclared (first use in this function)
comedi_rt_timer.c: In function `timer_data_read':
comedi_rt_timer.c:208: error: parse error before ')' token
comedi_rt_timer.c:208: error: parse error before ')' token
comedi_rt_timer.c: In function `timer_data_write':
comedi_rt_timer.c:248: error: parse error before ')' token
comedi_rt_timer.c:248: error: parse error before ')' token
comedi_rt_timer.c: In function `timer_dio_read':
comedi_rt_timer.c:269: error: parse error before ')' token
comedi_rt_timer.c:269: error: parse error before ')' token
comedi_rt_timer.c: In function `scan_task_func':
comedi_rt_timer.c:292: error: `RTIME' undeclared (first use in this function)
comedi_rt_timer.c:292: error: parse error before "scan_start"
comedi_rt_timer.c:296: error: parse error before ')' token
comedi_rt_timer.c:301: warning: implicit declaration of function `rt_task_suspend'
comedi_rt_timer.c:301: error: parse error before ')' token
comedi_rt_timer.c:309: error: parse error before ')' token
comedi_rt_timer.c:316: error: `scan_start' undeclared (first use in this function)
comedi_rt_timer.c:320: warning: implicit declaration of function `rt_task_wait'
comedi_rt_timer.c:327: error: parse error before ')' token
comedi_rt_timer.c:340: error: parse error before ')' token
comedi_rt_timer.c:340: error: parse error before ')' token
comedi_rt_timer.c:344: error: parse error before ')' token
comedi_rt_timer.c:346: error: parse error before ')' token
comedi_rt_timer.c: In function `timer_task_func':
comedi_rt_timer.c:360: error: parse error before ')' token
comedi_rt_timer.c:361: error: parse error before ')' token
comedi_rt_timer.c:362: error: parse error before ')' token
comedi_rt_timer.c:368: error: parse error before ')' token
comedi_rt_timer.c:371: warning: implicit declaration of function `rt_task_make_periodic'
comedi_rt_timer.c:371: error: parse error before ')' token
comedi_rt_timer.c:372: error: parse error before ')' token
comedi_rt_timer.c:372: error: parse error before ')' token
comedi_rt_timer.c:373: error: parse error before ')' token
comedi_rt_timer.c:381: error: parse error before ')' token
comedi_rt_timer.c:383: error: parse error before ')' token
comedi_rt_timer.c: In function `timer_insn':
comedi_rt_timer.c:393: error: parse error before ')' token
comedi_rt_timer.c:395: error: parse error before ')' token
comedi_rt_timer.c: In function `timer_cmd':
comedi_rt_timer.c:509: error: parse error before ')' token
comedi_rt_timer.c:509: error: parse error before ')' token
comedi_rt_timer.c:512: error: parse error before ')' token
comedi_rt_timer.c:512: error: parse error before ')' token
comedi_rt_timer.c:520: error: parse error before ')' token
comedi_rt_timer.c:523: error: parse error before ')' token
comedi_rt_timer.c:532: error: parse error before ')' token
comedi_rt_timer.c:535: error: parse error before ')' token
comedi_rt_timer.c: In function `timer_start_cmd':
comedi_rt_timer.c:565: error: `RTIME' undeclared (first use in this function)
comedi_rt_timer.c:565: error: parse error before "now"
comedi_rt_timer.c:568: error: parse error before ')' token
comedi_rt_timer.c:573: error: `delay' undeclared (first use in this function)
comedi_rt_timer.c:577: error: `now' undeclared (first use in this function)
comedi_rt_timer.c:582: error: `period' undeclared (first use in this function)
comedi_rt_timer.c:582: error: parse error before ')' token
comedi_rt_timer.c:583: error: parse error before ')' token
comedi_rt_timer.c: In function `timer_attach':
comedi_rt_timer.c:613: error: parse error before ')' token
comedi_rt_timer.c:614: error: parse error before ')' token
comedi_rt_timer.c:616: error: parse error before ')' token
comedi_rt_timer.c:618: error: parse error before ')' token
comedi_rt_timer.c:619: error: parse error before ')' token
comedi_rt_timer.c:637: error: parse error before ')' token
comedi_rt_timer.c:643: error: parse error before ')' token
comedi_rt_timer.c:650: error: parse error before ')' token
comedi_rt_timer.c:659: error: parse error before ')' token
comedi_rt_timer.c:661: error: parse error before ')' token
comedi_rt_timer.c:661: error: `RT_TASK' undeclared (first use in this function)
comedi_rt_timer.c:662: error: parse error before ')' token
comedi_rt_timer.c:662: error: parse error before ')' token
comedi_rt_timer.c:662: error: parse error before ')' token
comedi_rt_timer.c:662: error: parse error before ')' token
comedi_rt_timer.c:665: warning: implicit declaration of function `rt_task_init'
comedi_rt_timer.c:665: error: parse error before ')' token
comedi_rt_timer.c:669: error: parse error before ')' token
comedi_rt_timer.c:670: error: parse error before ')' token
comedi_rt_timer.c:674: error: parse error before ')' token
comedi_rt_timer.c:675: error: parse error before ')' token
comedi_rt_timer.c:675: error: parse error before ')' token
comedi_rt_timer.c:675: error: parse error before ')' token
comedi_rt_timer.c:675: error: parse error before ')' token
comedi_rt_timer.c:677: error: parse error before ')' token
comedi_rt_timer.c:681: error: parse error before ')' token
comedi_rt_timer.c:682: error: parse error before ')' token
comedi_rt_timer.c: In function `timer_detach':
comedi_rt_timer.c:694: error: parse error before ')' token
comedi_rt_timer.c:695: error: parse error before ')' token
comedi_rt_timer.c:696: warning: implicit declaration of function `rt_task_delete'
comedi_rt_timer.c:696: error: parse error before ')' token
comedi_rt_timer.c:697: error: parse error before ')' token
comedi_rt_timer.c:699: error: parse error before ')' token
comedi_rt_timer.c:700: error: parse error before ')' token
comedi_rt_timer.c:701: error: parse error before ')' token
comedi_rt_timer.c:703: error: parse error before ')' token
comedi_rt_timer.c:705: error: parse error before ')' token
comedi_rt_timer.c:706: error: parse error before ')' token
make[3]: *** [comedi_rt_timer.o] Error 1
make[3]: Leaving directory `/usr/comedi-0.7.70/comedi/drivers'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/comedi-0.7.70/comedi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/comedi-0.7.70'
make: *** [all] Error 2
So I am happy, if one of the 2 drivers works in RT-Linux.
kind regards
Klaus Oppermann
Received on 2006-07-24Z06:22:46