Re: comedi 7.69 make errors

Thanks Dale.  However, I've been root whenever I do any comedi stuff.  
Here is the output from configure and make (note that there is a make 
flags error):

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 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.4.21-4.EL as the uname -r value
configure: Using i686 as the uname -m value
checking for rpm... yes
checking for Linux in /lib/modules/2.4.21-4.EL/build... yes
checking /lib/modules/2.4.21-4.EL/build/.config... not found
checking 
/lib/modules/2.4.21-4.EL/build/configs/kernel-2.4.21-i686.config... yes
checking Pre-FC2 Red Hat/Fedora kernel... found
checking Linux config option CONFIG_M386... no
checking Linux config option CONFIG_M586... no
checking Linux config option CONFIG_M686... yes
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.4.21-4.EL
configure: Putting kernel module development files under 
/lib/modules/2.4.21-4.EL/build
checking Linux major/minor version... 2.4
checking for Linux 2.4 make flags... make: *** [modules] Error 1
ok
checking for Linux 2.4 CFLAGS...   -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
checking for Linux 2.4 LDFLAGS...
checking for strip... (cached) /usr/bin/strip
./configure
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/kcomedilib/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

make
make  all-recursive
make[1]: Entering directory `/usr/local/comedi/comedi-0.7.69'
Making all in comedi
make[2]: Entering directory `/usr/local/comedi/comedi-0.7.69/comedi'
Making all in .
make[3]: Entering directory `/usr/local/comedi/comedi-0.7.69/comedi'
if  -DHAVE_CONFIG_H -I. -I. -I..    -I../include/ 
-DKBUILD_MODNAME=comedi -DKBUILD_BASENAME=comedi_fops 
-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   -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
/bin/sh: line 1: -DHAVE_CONFIG_H: command not found
make[3]: *** [comedi_ko-comedi_fops.o] Error 1
make[3]: Leaving directory `/usr/local/comedi/comedi-0.7.69/comedi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/comedi/comedi-0.7.69/comedi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/comedi/comedi-0.7.69'
make: *** [all] Error 2


Dale Stein wrote:

>
> This might be trite, but
> su root
> then run configure and make and make install  from the comedi directory
>
>>> The configure script failed to get the compile flags from your kernel
>>> directory, due to your kernel source being unable to successfully 'make
>>> modules'.  configure may work if you have write permission to the 
>>> kernel
>>> source directory when you run it.  I've fixed it now so configure exits
>>> with an error when this happens.
>>>
>>> - --
>>> Frank
>>>
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.2.4 (GNU/Linux)
>>>
>>> iD8DBQFB2C+a5vihyNWuA4URApKJAKDohXzPeEgFv6o8hhOWYs3IcuTkiACfVNio
>>> z3rjgZI3UKGj/YTSVjBDeA4=
>>> =aL+0
>>> -----END PGP SIGNATURE-----
>>>
>>> _______________________________________________
>>> comedi mailing list
>>> comedi_at_comedi.org
>>> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
>>>
>>>
>
>
>

Received on 2005-01-06Z18:11:26