- From: Dale Stein <dstein2_at_bellsouth.net>
- Date: Mon, 03 Jan 2005 12:48:33 -0600
hellow, I am new to this list and have been trying to build a linux rt
system for some time.
However I am not a programmer, or hardware eng,. so please bear with me!
PS Happy New Year :)
Having a bit of a time making comedi-0.7.69 to compile. Have not found
any specific help in the archives on this. I was hoping someone could
look at this and perhaps shed some light on this.
My system is a celeron something using lfs3.3 runnning on 2.4.22 patched
rtlinux 3.2-per3 kernel.
(for some reason rtlinux does not like newer glibc libraries)
Thanks Dale Stein.
-include /usr/src/linux-2.4.22/include/linux/modversions.h
-D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_KERNEL_UP=1
-D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HUGEMEM=0
-I/usr/src/rtlinux-3.2-pre3/include
-I/usr/src/rtlinux-3.2-pre3/include/compat
-I/usr/src/rtlinux-3.2-pre3/include/posix -D__RT__ -g -O2 -c -o
comedi_ko-comedi_fops.o `test -f 'comedi_fops.c'
|| echo './'`comedi_fops.c
In file included from ../include/linux/comedidev.h:371,
from comedi_fops.c:42:
../include/linux/comedi_rt.h: In function `comedi_udelay':
../include/linux/comedi_rt.h:137: `nanosec_per_usec' undeclared (first use
in this function)
../include/linux/comedi_rt.h:137: (Each undeclared identifier is reported
only once
../include/linux/comedi_rt.h:137: for each function it appears in.)
make[3]: *** [comedi_ko-comedi_fops.o] Error 1
make[3]: Leaving directory `/home/comedi/comedi-0.7.69/comedi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/comedi/comedi-0.7.69/comedi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/comedi/comedi-0.7.69'
make: *** [all] Error 2
changed in comedi_rt.h
static inline void comedi_udelay( unsigned int usec )
{
#if defined(CONFIG_COMEDI_RTAI)
static const int nanosec_per_usec = 1000;
rt_busy_sleep(usec * nanosec_per_usec);
#elif defined(CONFIG_COMEDI_RTL)
static const int nanosec_per_usec = 1000; \ <- added this line –
using rtlinux3.2-per3
rtl_delay(usec * nanosec_per_usec);
#else
udelay( usec );
#endif
}
seams to compile fine, but don't know if this wouold be correct...
because
later on I get comedi_rt_timer.c errors (see below) .I do not know if they
are related
I tried to ./configure --enable-comedi_rt_timer=no and –
disable-comedi_rt_timer to not make this device to no avail. It looks
like there is a headder missing to make this work?
source='comedi_rt_timer.c' object='comedi_rt_timer.o' libtool=no \
depfile='.deps/comedi_rt_timer.Po' tmpdepfile='.deps/comedi_rt_timer.TPo' \
depmode=gcc /bin/sh ../../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include/
-DKBUILD_MODNAME=comedi_rt_timer -DKBUILD_BASENAME=comedi_rt_timer
-D__KERNEL__ -I/usr/src/linux-2.4.22/include-Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS
-include /usr/src/linux-2.4.22/include/linux/modversions.h -DMODULE
-DMODVERSIONS -include /usr/src/linux-2.4.22/include/linux/modversions.h
-D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_KERNEL_UP=1
-D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HUGEMEM=0
-I/usr/src/rtlinux-3.2-pre3/include
-I/usr/src/rtlinux-3.2-pre3/include/compat
-I/usr/src/rtlinux-3.2-pre3/include/posix -D__RT__ -g -O2 -c
comedi_rt_timer.c
comedi_rt_timer.c:139: 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: 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: 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: 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: parse error before `:'
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: parse error before `)'
comedi_rt_timer.c: In function `check_scan_timing':
comedi_rt_timer.c:170: `RTIME' undeclared (first use in this function)
comedi_rt_timer.c:170: (Each undeclared identifier is reported only once
comedi_rt_timer.c:170: for each function it appears in.)
comedi_rt_timer.c:170: parse error before `now'
comedi_rt_timer.c:172: `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: `timing_error' undeclared (first use in this
function)
comedi_rt_timer.c:173,174: parse error before `)'
comedi_rt_timer.c: At top level:
comedi_rt_timer.c:185: 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: `RTIME' undeclared (first use in this function)
comedi_rt_timer.c:187: parse error before `now'
comedi_rt_timer.c:189: `now' undeclared (first use in this function)
comedi_rt_timer.c:190: `timing_error' undeclared (first use in this
function)
comedi_rt_timer.c:190: `scan_start' undeclared (first use in this function)
comedi_rt_timer.c:190: `conversion' undeclared (first use in this function)
comedi_rt_timer.c:190,191: parse error before `)'
comedi_rt_timer.c:192: `dev' undeclared (first use in this function)
comedi_rt_timer.c: In function `timer_data_read':
comedi_rt_timer.c:208: parse error before `)'
comedi_rt_timer.c:208: parse error before `)'
comedi_rt_timer.c: In function `timer_data_write':
comedi_rt_timer.c:248: parse error before `)'
comedi_rt_timer.c: In function `timer_dio_read':
comedi_rt_timer.c:269-: parse error before `)'
comedi_rt_timer.c: In function `scan_task_func':
comedi_rt_timer.c:292: `RTIME' undeclared (first use in this function)
comedi_rt_timer.c:292: parse error before `scan_start'
comedi_rt_timer.c:296: parse error before `)'
comedi_rt_timer.c:301: warning: implicit declaration of function
`rt_task_suspend'
comedi_rt_timer.c:301,309: parse error before `)'
comedi_rt_timer.c:316: `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,340,344,346: parse error before `)'
comedi_rt_timer.c: In function `timer_task_func':
comedi_rt_timer.c:360,361,362,368: parse error before `)'
comedi_rt_timer.c:371: warning: implicit declaration of function
`rt_task_make_periodic'
comedi_rt_timer.c:371,372,373,381,383: parse error before `)'
comedi_rt_timer.c: In function `timer_insn':
comedi_rt_timer.c:393,395: parse error before `)'
comedi_rt_timer.c: In function `timer_cmd':
comedi_rt_timer.c:509,512,520,523,532,535: parse error before `)'
comedi_rt_timer.c: In function `timer_start_cmd':
comedi_rt_timer.c:565: `RTIME' undeclared (first use in this function)
comedi_rt_timer.c:565: parse error before `now'
comedi_rt_timer.c:568: parse error before `)'
comedi_rt_timer.c:573: `delay' undeclared (first use in this function)
comedi_rt_timer.c:577: `now' undeclared (first use in this function)
comedi_rt_timer.c:582: `period' undeclared (first use in this function)
comedi_rt_timer.c:582,582: parse error before `)'
comedi_rt_timer.c: In function `timer_attach':
comedi_rt_timer.c:613,614,616,619,637,643,650,659,661: parse error before
`)'
comedi_rt_timer.c:661: `RT_TASK' undeclared (first use in this function)
comedi_rt_timer.c:662: parse error before `)'
comedi_rt_timer.c:665: warning: implicit declaration of function
`rt_task_init'
comedi_rt_timer.c:665,669,670,674,675,677,681,682: parse error before `)'
comedi_rt_timer.c:596: warning: `emul_s' might be used uninitialized in
this function
comedi_rt_timer.c: In function `timer_detach':
comedi_rt_timer.c:694,695: parse error before `)'
comedi_rt_timer.c:696: warning: implicit declaration of function
`rt_task_delete'
comedi_rt_timer.c:696,697,699,700,701,703: parse error before `)'
make[3]: *** [comedi_rt_timer.o] Error 1
make[3]: Leaving directory `/home/comedi/comedi-0.7.69/comedi/drivers'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/comedi/comedi-0.7.69/comedi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/comedi/comedi-0.7.69'
make: *** [all] Error 2
[root_at_IvanII /home/comedi/comedi-0.7.69]#
[root_at_IvanII /home/comedi/comedi-0.7.69]#
[root_at_IvanII /home/comedi/comedi-0.7.69]# uname -r
2.4.22-rtl3.2-pre3
[root_at_IvanII /home/comedi/comedi-0.7.69]# uname -m
i686
[root_at_IvanII /home/comedi/comedi-0.7.69]#
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Received on 2005-01-03Z18:48:33