Re: comedi + suse compile error: irq_vectors.h: No such file or directory

On Mon, 30 Jan 2006, Stephen Roderick wrote:

> We've recently had a similar problem with a vanilla kernel patched for
> real-time. We actually had quite a few files missing, but they were all
> the same kind of machine-dependant ones you had problems with. We
> didn't get ours to compile in the end, and gave up.

Don't blame you. I almost did!

> Have you tired your fix with a board yet? We'd be interested to know if
> it works ...

Just tried a card, and it does work. Works as expected, no dodgy messages
in the kernel log.

Still very much interested in a "proper" fix... adding a
(machine-specific) path to a header file manually seems a bit wrong. I
also had an email (off list) from Panagiotis Artemiadis who said:

   I had the same problem.
   These header files are included in your Suse, but they are in different
   directories. Just locate them (locate iqr_vectors.h (and some other
   "irq-related" header files it does not found too)) and copy then in
   /usr/include. That solved the same problem in my case.

It seems I'm not the only one who's had to resort to dirty tricks to get
this to work!

Cheers,

   Steve.

> > 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:
> >
> > -----------------------------------------------------------------------
> > 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.


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-31Z09:48:29