- From: Steven Hartmann <shartmann_at_militho.com>
- Date: Mon, 28 Nov 2005 19:32:26 -0600
Hello,
I'm new to comedi and am trying to get it to compile and install on a box with
a fairly fresh SuSe 10 install. Below, you will see that it is having
trouble finding mach_mpspec.h. Now I can see that the file is out there, the
LINUX_CFLAGS is just set up to look in the wrong place. It appears that the
path of /lib/modules/2.6.13-15-smp/build/include/asm-i386/mach-generic is
used when it should look
in: /lib/modules/2.6.13-15-smp/build/include2/asm/mach-generic
I am not real familiar of the inner workings of autobuild/autoconf, so I can't
figure out where it is picking up that path.
I have tried this with 0.7.70 as well as the CVS snapshot downloaded today.
Here is the configure and make output:
shartmann_at_breve:~/comedi> ./configure
checking build system type... i686-suse-linux
checking host system type... i686-suse-linux
checking target system type... i686-suse-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for strip... /usr/bin/strip
checking for depmod... /sbin/depmod
configure: Using 2.6.13-15-smp 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... yes
checking for Linux in /lib/modules/2.6.13-15-smp/build... yes
checking /lib/modules/2.6.13-15-smp/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... yes
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... yes
checking Linux config option CONFIG_HIGHMEM64G... no
configure: Putting kernel modules under /lib/modules/2.6.13-15-smp
configure: Putting kernel module development files
under /lib/modules/2.6.13-15-smp/build
checking Linux major/minor version... 2.6
checking for Linux CFLAGS... -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
-mtune=i686 -I/lib/modules/2.6.13-15-smp/build/include/asm-i386/mach-generic
-I/lib/modules/2.6.13-15-smp/build/include/asm-i386/mach-default
-Wdeclaration-after-statement -Wno-pointer-sign -D__KERNEL__
-I/lib/modules/2.6.13-15-smp/build/include
-I/lib/modules/2.6.13-15-smp/build/include2
-I/usr/src/linux-2.6.13-15/include -DMODULE
checking for modpost... /lib/modules/2.6.13-15-smp/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... no
checking Linux config option CONFIG_RTLINUX... no
checking Linux config option CONFIG_PCMCIA... module
checking Linux config option CONFIG_ISA... yes
checking Linux config option CONFIG_PCI... yes
checking Linux config option CONFIG_USB... module
configure: creating ./config.status
config.status: creating Makefile
config.status: creating comedi/Makefile
config.status: creating comedi/drivers/Makefile
config.status: creating comedi/drivers/addi-data/Makefile
config.status: creating comedi/kcomedilib/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
shartmann_at_breve:~/comedi> make
make all-recursive
make[1]: Entering directory `/home2/shartmann/comedi'
Making all in comedi
make[2]: Entering directory `/home2/shartmann/comedi/comedi'
Making all in .
make[3]: Entering directory `/home2/shartmann/comedi/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 -mtune=i686
-I/lib/modules/2.6.13-15-smp/build/include/asm-i386/mach-generic
-I/lib/modules/2.6.13-15-smp/build/include/asm-i386/mach-default
-Wdeclaration-after-statement -Wno-pointer-sign -D__KERNEL__
-I/lib/modules/2.6.13-15-smp/build/include
-I/lib/modules/2.6.13-15-smp/build/include2
-I/usr/src/linux-2.6.13-15/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 /lib/modules/2.6.13-15-smp/build/include2/asm/smp.h:18,
from /usr/src/linux-2.6.13-15/include/linux/smp.h:19,
from /usr/src/linux-2.6.13-15/include/linux/sched.h:26,
from ../include/linux/sched.h:10,
from /usr/src/linux-2.6.13-15/include/linux/module.h:10,
from ../include/linux/module.h:19,
from comedi_fops.c:27:
/lib/modules/2.6.13-15-smp/build/include2/asm/mpspec.h:6:25: error:
mach_mpspec.h: No such file or directory
In file included from /lib/modules/2.6.13-15-smp/build/include2/asm/smp.h:18,
from /usr/src/linux-2.6.13-15/include/linux/smp.h:19,
from /usr/src/linux-2.6.13-15/include/linux/sched.h:26,
from ../include/linux/sched.h:10,
from /usr/src/linux-2.6.13-15/include/linux/module.h:10,
from ../include/linux/module.h:19,
from comedi_fops.c:27:
/lib/modules/2.6.13-15-smp/build/include2/asm/mpspec.h:8: error:
'MAX_MP_BUSSES' undeclared here (not in a function)
/lib/modules/2.6.13-15-smp/build/include2/asm/mpspec.h:22: error:
'MAX_IRQ_SOURCES' undeclared here (not in a function)
In file included from /usr/src/linux-2.6.13-15/include/linux/smp.h:19,
from /usr/src/linux-2.6.13-15/include/linux/sched.h:26,
from ../include/linux/sched.h:10,
from /usr/src/linux-2.6.13-15/include/linux/module.h:10,
from ../include/linux/module.h:19,
from comedi_fops.c:27:
/lib/modules/2.6.13-15-smp/build/include2/asm/smp.h:75:26: error:
mach_apicdef.h: No such file or directory
In file included from /usr/src/linux-2.6.13-15/include/linux/smp.h:19,
from /usr/src/linux-2.6.13-15/include/linux/sched.h:26,
from ../include/linux/sched.h:10,
from /usr/src/linux-2.6.13-15/include/linux/module.h:10,
from ../include/linux/module.h:19,
from comedi_fops.c:27:
/lib/modules/2.6.13-15-smp/build/include2/asm/smp.h: In function
'hard_smp_processor_id':
/lib/modules/2.6.13-15-smp/build/include2/asm/smp.h:79: error: implicit
declaration of function 'GET_APIC_ID'
In file included from /usr/src/linux-2.6.13-15/include/linux/irq.h:21,
from /lib/modules/2.6.13-15-smp/build/include2/asm/hardirq.h:6,
from /usr/src/linux-2.6.13-15/include/linux/hardirq.h:7,
from /usr/src/linux-2.6.13-15/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-smp/build/include2/asm/irq.h:16:25: error:
irq_vectors.h: No such file or directory
In file included
from /lib/modules/2.6.13-15-smp/build/include2/asm/hardirq.h:6,
from /usr/src/linux-2.6.13-15/include/linux/hardirq.h:7,
from /usr/src/linux-2.6.13-15/include/linux/interrupt.h:11,
from ../include/linux/interrupt.h:31,
from ../include/linux/comedidev.h:40,
from comedi_fops.c:44:
/usr/src/linux-2.6.13-15/include/linux/irq.h: At top level:
/usr/src/linux-2.6.13-15/include/linux/irq.h:76: error: 'NR_IRQS' undeclared
here (not in a function)
In file included from /usr/src/linux-2.6.13-15/include/linux/irq.h:78,
from /lib/modules/2.6.13-15-smp/build/include2/asm/hardirq.h:6,
from /usr/src/linux-2.6.13-15/include/linux/hardirq.h:7,
from /usr/src/linux-2.6.13-15/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-smp/build/include2/asm/hw_irq.h:28: error:
'NR_IRQ_VECTORS' undeclared here (not in a function)
In file included from /usr/src/linux-2.6.13-15/include/linux/interrupt.h:11,
from ../include/linux/interrupt.h:31,
from ../include/linux/comedidev.h:40,
from comedi_fops.c:44:
/usr/src/linux-2.6.13-15/include/linux/hardirq.h:35:27: warning: "NR_IRQS" is
not defined
make[3]: *** [comedi_ko-comedi_fops.o] Error 1
make[3]: Leaving directory `/home2/shartmann/comedi/comedi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home2/shartmann/comedi/comedi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home2/shartmann/comedi'
make: *** [all] Error 2
--
Best regards,
Steve Hartmann
Received on 2005-11-29Z01:32:26