- From: <steve.sharples_at_nottingham.ac.uk>
- Date: Mon, 30 Jan 2006 17:12:34 +0000 (GMT)
Hi,
I've got a Suse 10.0 installation pretty much fresh out of the box (plus
updates), and the CVS version of comedi
# uname -a
Linux beanbag 2.6.13-15.7-default #1 Tue Nov 29 14:32:29 UTC 2005 i686
i686 i386 GNU/Linux
After ./autogen.sh and ./configure and su to root, make gives me the
following errors:
------------------------------------------------------------------------
Making all in .
make[3]: Entering directory
`/usr/local/src/comedi/comedi_cvs_30-01-06/comedi'
if gcc -m32 -DHAVE_CONFIG_H -I. -I. -I.. -I../include/
-DKBUILD_MODNAME=comedi -DKBUILD_BASENAME=comedi_fops -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration
-fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer
-pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time
-march=i586 -mregparm=3
-I/lib/modules/2.6.13-15.7-default/build/include/asm-i386/mach-default
-Wdeclaration-after-statement -Wno-pointer-sign -D__KERNEL__
-I/lib/modules/2.6.13-15.7-default/build/include
-I/lib/modules/2.6.13-15.7-default/build/include2
-I/usr/src/linux-2.6.13-15.7/include -DMODULE -g -O2 -MT
comedi_ko-comedi_fops.o -MD -MP -MF ".deps/comedi_ko-comedi_fops.Tpo" -c
-o comedi_ko-comedi_fops.o `test -f 'comedi_fops.c' || echo
'./'`comedi_fops.c; \
then mv -f ".deps/comedi_ko-comedi_fops.Tpo"
".deps/comedi_ko-comedi_fops.Po"; else rm -f
".deps/comedi_ko-comedi_fops.Tpo"; exit 1; fi
In file included from /usr/src/linux-2.6.13-15.7/include/linux/irq.h:21,
from
/lib/modules/2.6.13-15.7-default/build/include2/asm/hardirq.h:6,
from
/usr/src/linux-2.6.13-15.7/include/linux/hardirq.h:7,
from
/usr/src/linux-2.6.13-15.7/include/linux/interrupt.h:11,
from ../include/linux/interrupt.h:31,
from ../include/linux/comedidev.h:40,
from comedi_fops.c:44:
/lib/modules/2.6.13-15.7-default/build/include2/asm/irq.h:16:25: error:
irq_vectors.h: No such file or directory
------------------------------------------------------------------------
There are some more errors, but they all stem from this missing header
file.
I can get comedi to compile ok by adding an appropriate -I line in the
Makefile. Actually what I do is edit a line in ./configure: change:
LINUX_CFLAGS="$LINUX_CFLAGS $LINUX_CFLAGS_MODULE"
to
LINUX_CFLAGS="$LINUX_CFLAGS -I/usr/src/linux/include/asm-i386/mach-default/ $LINUX_CFLAGS_MODULE"
(...then run ./configure again to re-make all my Makesfiles)
This is a very dirty hack, and I haven't tried a card yet, but the comedi
kernel module loads without complaint.
I've got virtually zero experience with Suse, I don't know how different
their kernels are from vanilla but I don't think there is too much
difference. All I did by way of preparation is install the "kernel-source"
package. If I do the additional steps as described in the comedi INSTALL
file (btw, I had to grab this off the most recent release version of
comedi, as autogen.sh seems to create some sort of default INSTALL file
that has nothing to do with comedi) like putting the current kernel
configuration file into /usr/src/linux/.config, checking Makefile for
EXTRAVERSION, run 'make oldconfig' and run 'make modules_prepare'... well,
there seems to be absolutely no difference.
Is the machine-specific directory for irq_vectors.h meant to be something
that's defined in the kernel configuration, the compiler, or by comedi?
I can provide any extra debug info you like, but you'll have to guide me
because I'm a little ignorant of these things. Just wondered if anyone
else had experience anything else like it, or had a "proper" fix (that
doesn't involve compiling my own kernel).
Thanks a lot.
Cheers,
Steve.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
Received on 2006-01-30Z17:12:34