Problems compiling linux-2.6.15, rtai3.3 and comedi0.7.70

Hi,

i've compiled a 2.6.15 kernel patched with the patch
"hal-linux-2.6.15-i386-1.2-00.patch", which comes with rtai-3.3.
After that I compiled and installed rtai-3.3, and everything has worked
fine until this step.
The problem comes now. I have tried to compile and install the comedi
drivers and it doesn't work. I've tried with several versions, namely
0.7.68, 0.7.69, 0.7.70, and the last one you can get from the cvs
repository. For instance, the error output I get when I run ./autogen.sh
with the version 0.7.70 is the following:

"
RTAI:/usr/src/comedi# ./autogen.sh
configure.ac: 4: `automake requires `AM_CONFIG_HEADER', not
`AC_CONFIG_HEADER'
comedi/Makefile.am:9: CONFIG_COMEDI_RT does not appear in AM_CONDITIONAL
comedi/Makefile.am:12: invalid unused variable name: `RT_SOURCES'
comedi/drivers/Makefile.am:14: bad macro name `8255_ko_LINK'
comedi/drivers/Makefile.am:27: bad macro name `8255_ko_CFLAGS'
comedi/drivers/Makefile.am:55: CONFIG_COMEDI_RT does not appear in
AM_CONDITIONAL
comedi/drivers/Makefile.am:73: CONFIG_USB does not appear in
AM_CONDITIONAL
comedi/drivers/Makefile.am:155: bad macro name `8255_ko_SOURCES'
autoreconf: automake failed with exit status: 1
"

I've tried as well to run ./configure manually, and then I get the
following output:

"
RTAI:/usr/src/comedi# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles...
no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for strip... /usr/bin/strip
checking for depmod... /sbin/depmod
configure: Using 2.6.15-ipipe as the uname -r value
configure: Using i686 as the uname -m value
checking for rpm... yes
checking if rpm can be used to query packages... no
checking for Linux in /lib/modules/2.6.15-ipipe/build... yes
checking /lib/modules/2.6.15-ipipe/build/.config... yes
checking Pre-FC2 Red Hat/Fedora kernel... not found
checking Linux config option CONFIG_M386... no
checking Linux config option CONFIG_M586... no
checking Linux config option CONFIG_M686... no
checking Linux config option CONFIG_MPENTIUMIII... no
checking Linux config option CONFIG_MK7... no
checking Linux config option CONFIG_SMP... no
checking Linux config option CONFIG_HIGHMEM64G... no
configure: Putting kernel modules under /lib/modules/2.6.15-ipipe
configure: Putting kernel module development files
under /lib/modules/2.6.15-ipipe/build
checking Linux major/minor version... 2.6
checking for Linux CFLAGS... -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2
-fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2
-march=i686 -mcpu=pentium4
-I/lib/modules/2.6.15-ipipe/build/include/asm-i386/mach-default
-D__KERNEL__ -I/lib/modules/2.6.15-ipipe/build/include -include
include/linux/autoconf.h -DMODULE
checking for
modpost... /lib/modules/2.6.15-ipipe/build/scripts/mod/modpost
checking for strip... (cached) /usr/bin/strip
checking for depmod... (cached) /sbin/depmod
configure: creating modtool
checking Linux config option CONFIG_RTHAL... no
checking Linux config option CONFIG_ADEOS... yes
checking RTAI directory /usr/realtime... found
checking Linux config option CONFIG_RTLINUX... no
checking Linux config option CONFIG_PCMCIA... no
checking Linux config option CONFIG_ISA... no
checking Linux config option CONFIG_PCI... yes
checking Linux config option CONFIG_USB... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating comedi/Makefile
config.status: creating comedi/drivers/Makefile
config.status: creating comedi/kcomedilib/Makefile
config.status: creating config.h
config.status: config.h is unchanged
"

Note that I have put the flag "CONFIG_ADEOS=y" in the .config file of
the kernel sources before compiling the latter.
After running ./configure manually, which doesn't result in any error, I
run ./make and then I get the following error output:


"RTAI:/usr/src/comedi# make
make  all-recursive
make[1]: Entering directory `/usr/src/comedi-0.7.70'
Making all in comedi
make[2]: Entering directory `/usr/src/comedi-0.7.70/comedi'
Making all in .
make[3]: Entering directory `/usr/src/comedi-0.7.70/comedi'
gcc -m32 -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c comedi_fops.c
In file included from /usr/include/linux/sched.h:12,
                 from /usr/include/linux/module.h:10,
                 from comedi_fops.c:27:
/usr/include/linux/jiffies.h:16: error: error sint�tico before
"jiffies_64"
/usr/include/linux/jiffies.h:20: error: error sint�tico before
"get_jiffies_64"
In file included from /usr/include/linux/cpumask.h:8,
                 from /usr/include/linux/sched.h:15,
                 from /usr/include/linux/module.h:10,
                 from comedi_fops.c:27:
/usr/include/linux/bitmap.h: En la funci� `bitmap_empty':
/usr/include/linux/bitmap.h:15: error: `BITS_PER_LONG' undeclared (first
use in this function)
/usr/include/linux/bitmap.h:15: error: (Each undeclared identifier is
reported only once
/usr/include/linux/bitmap.h:15: error: for each function it appears in.)
/usr/include/linux/bitmap.h: En la funci� `bitmap_full':
/usr/include/linux/bitmap.h:29: error: `BITS_PER_LONG' undeclared (first
use in this function)
/usr/include/linux/bitmap.h: En la funci� `bitmap_equal':
/usr/include/linux/bitmap.h:44: error: `BITS_PER_LONG' undeclared (first
use in this function)
/usr/include/linux/bitmap.h: En la funci� `bitmap_shift_right':
/usr/include/linux/bitmap.h:85: error: `__shr_tmp' undeclared (first use
in this function)
/usr/include/linux/bitmap.h: En la funci� `bitmap_shift_left':
/usr/include/linux/bitmap.h:98: error: `__shl_tmp' undeclared (first use
in this function)
/usr/include/linux/bitmap.h: En la funci� `bitmap_weight':
/usr/include/linux/bitmap.h:144: error: `BITS_PER_LONG' undeclared
(first use in this function)
In file included from /usr/include/linux/sched.h:15,
                 from /usr/include/linux/module.h:10,
                 from comedi_fops.c:27:
/usr/include/linux/cpumask.h: En el nivel principal:
/usr/include/linux/cpumask.h:15: error: variable-size type declared
outside of any function
In file included from /usr/include/linux/sched.h:15,
                 from /usr/include/linux/module.h:10,
                 from comedi_fops.c:27:
/usr/include/linux/cpumask.h: En la funci� `next_online_cpu':
/usr/include/linux/cpumask.h:56: error: structure has no member named
`val'
In file included from /usr/include/linux/sched.h:21,
                 from /usr/include/linux/module.h:10,
                 from comedi_fops.c:27:
/usr/include/asm/mmu.h: En el nivel principal:
/usr/include/asm/mmu.h:13: error: field `sem' has incomplete type
In file included from /usr/include/asm/smp.h:16,
                 from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from comedi_fops.c:27:
/usr/include/asm/fixmap.h:72: error: `FIX_ACPI_PAGES' undeclared here
(not in a function)
/usr/include/asm/fixmap.h:72: error: enumerator value for `FIX_ACPI_END'
not integer constant
/usr/include/asm/fixmap.h:84: error: error sint�tico before "pgprot_t"
En el fichero inclu�o de /usr/include/asm/smp.h:18,
                 de /usr/include/linux/smp.h:17,
                 de /usr/include/linux/sched.h:23,
                 de /usr/include/linux/module.h:10,
                 de comedi_fops.c:27:
/usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No existe el fichero o el
directorio
In file included from /usr/include/asm/smp.h:18,
                 from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from comedi_fops.c:27:
/usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not
in a function)
/usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not
in a function)
/usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here
(not in a function)
/usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here
(not in a function)
/usr/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in
a function)
/usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here
(not in a function)
/usr/include/asm/mpspec.h:20: error: conflicting types for
`mp_bus_id_to_type'
/usr/include/asm/mpspec.h:8: error: previous declaration of
`mp_bus_id_to_type'
/usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here
(not in a function)
/usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here
(not in a function)
/usr/include/asm/mpspec.h:24: error: conflicting types for
`mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:12: error: previous declaration of
`mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:35: error: error sint�tico before "id"
/usr/include/asm/mpspec.h:36: error: error sint�tico before "address"
/usr/include/asm/mpspec.h:37: error: error sint�tico before "id"
/usr/include/asm/mpspec.h:38: error: error sint�tico before "bus_irq"
/usr/include/asm/mpspec.h:54: error: `MAX_APICS' undeclared here (not in
a function)
/usr/include/asm/mpspec.h:54: error: variable-size type declared outside
of any function
In file included from /usr/include/asm/smp.h:20,
                 from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from comedi_fops.c:27:
/usr/include/asm/io_apic.h:26: error: error sint�tico before "u32"
/usr/include/asm/io_apic.h:28: error: error sint�tico before "u32"
/usr/include/asm/io_apic.h:34: error: error sint�tico before '}' token
/usr/include/asm/io_apic.h:37: error: error sint�tico before "u32"
/usr/include/asm/io_apic.h:39: error: error sint�tico before "u32"
/usr/include/asm/io_apic.h:45: error: error sint�tico before '}' token
/usr/include/asm/io_apic.h:48: error: error sint�tico before "u32"
/usr/include/asm/io_apic.h:50: error: error sint�tico before "u32"
/usr/include/asm/io_apic.h:54: error: error sint�tico before '}' token
.
.
.
.
.
comedi_fops.c:1815: error: request for member `spinlock' in something
not a structure or union
comedi_fops.c:1824: error: `DEVFS_FL_DEFAULT' undeclared (first use in
this function)
comedi_fops.c:1825: error: `S_IFCHR' undeclared (first use in this
function)
comedi_fops.c: En la funci� `comedi_cleanup':
comedi_fops.c:1838: error: `MOD_IN_USE' undeclared (first use in this
function)
comedi_fops.c:1841: error: `COMEDI_NDEVICES' undeclared (first use in
this function)
comedi_fops.c:1843: error: `COMEDI_MAJOR' undeclared (first use in this
function)
comedi_fops.c:1846: error: `DEVFS_SPECIAL_CHR' undeclared (first use in
this function)
comedi_fops.c:1854: error: `comedi_device' undeclared (first use in this
function)
comedi_fops.c:1856: error: `dev' has an incomplete type
comedi_fops.c:1857: error: invalid type argument of `->'
comedi_fops.c:1858: error: `dev' has an incomplete type
comedi_fops.c: En el nivel principal:
comedi_fops.c:1868: error: error sint�tico before '*' token
comedi_fops.c: En la funci� `comedi_error':
comedi_fops.c:1870: error: invalid type argument of `->'
comedi_fops.c:1870: error: invalid type argument of `->'
comedi_fops.c:1870: error: `s' undeclared (first use in this function)
comedi_fops.c: En el nivel principal:
comedi_fops.c:1873: error: error sint�tico before '*' token
comedi_fops.c: En la funci� `comedi_event':
comedi_fops.c:1875: error: `comedi_async' undeclared (first use in this
function)
comedi_fops.c:1875: error: `async' undeclared (first use in this
function)
comedi_fops.c:1875: error: `s' undeclared (first use in this function)
comedi_fops.c:1877: error: `mask' undeclared (first use in this
function)
comedi_fops.c:1882: error: `SDF_RUNNING' undeclared (first use in this
function)
comedi_fops.c:1885: error: `COMEDI_CB_EOA' undeclared (first use in this
function)
comedi_fops.c:1885: error: `COMEDI_CB_ERROR' undeclared (first use in
this function)
comedi_fops.c:1885: error: `COMEDI_CB_OVERFLOW' undeclared (first use in
this function)
comedi_fops.c:1892: error: `SRF_ERROR' undeclared (first use in this
function)
comedi_fops.c:1895: error: `SRF_USER' undeclared (first use in this
function)
comedi_fops.c:1897: error: invalid type argument of `->'
comedi_fops.c:1908: error: invalid type argument of `->'
comedi_fops.c:1909: error: invalid type argument of `->'
comedi_fops.c:1910: error: invalid type argument of `->'
comedi_fops.c:1912: error: invalid type argument of `->'
comedi_fops.c:1913: error: invalid type argument of `->'
comedi_fops.c:1914: error: invalid type argument of `->'
comedi_fops.c: En el nivel principal:
comedi_fops.c:1928: error: error sint�tico before '*' token
comedi_fops.c: En la funci� `init_async_buf':
comedi_fops.c:1930: error: `async' undeclared (first use in this
function)
comedi_fops.c: En el nivel principal:
/usr/include/linux/device.h:364: error: storage size of `dev' isn't
known
comedi_fops.c:1755: error: storage size of `comedi_fops' isn't known
make[3]: *** [comedi_fops.o] Error 1
make[3]: Leaving directory `/usr/src/comedi-0.7.70/comedi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/comedi-0.7.70/comedi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/comedi-0.7.70'
make: *** [all-recursive-am] Error 2
"


To sum up, if i run ./autogen.sh, it doesn't work, and if I
run ./configure it works but then it fails during ./make.
Does anybody have any idea of what the problem is?

Thanks in advance!, and please forgive my bad english :-P.

Received on 2006-05-08Z15:08:37