- From: Maz The Northener <mazziesaccount_at_gmail.com>
- Date: Mon, 15 May 2006 10:05:26 +0300
Hi dee Ho list!
I had comedi drivers && comedilib provided in a tarball at
comedi.orginstalled on SuSe
9.1. However I had problems with comedi_calibrate with PCI-DAS 6014 DAQ
card. I noticed that comedi_calibrate was changed to CVS version, and
decided to see if it affects on calibrating my card. Anyways, since I'm
generally quite displeased with SuSe, I decided to give FC 5 a try. Now I am
not able to compile comedi with FC 5 kernel (2.6.15-1.2054_FC5). I did try
it in a following way:
1. I downloaded the correct kernel.scr.rpm, and installed it. Then I
selected the correct .config for my kernel, and copied it into .config file
at the sources top directory. Next I created symbolic link /usr/src/linux
pointing in the sources directory.
I did full make for kernel sources.
2. I get the CVS version of both comedi and comedilib, and placed them in
/usr/src/linux. (where the sumbolic link pointed.)
Then I ran ./autogen.sh without any options (output of that below) (in
/usr/src/linux/comedi folder)
Next I tried make in same folder.
Output of ./autogen.sh
[matti_at_localhost comedi]$ ./autogen.sh
comedi/drivers/addi-data/Makefile.am:13: variable `addi_common_ko_SOURCES'
is defined but no program or
comedi/drivers/addi-data/Makefile.am:13: library has `addi_common_ko' as
canonic name (possible typo)
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... yes
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.15-1.2054_FC5 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.15-1.2054_FC5/build... not found
checking for Linux in ../linux... not found
checking for Linux in /usr/src/linux... yes
checking /usr/src/linux/.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... no
checking Linux config option CONFIG_HIGHMEM64G... no
configure: Putting kernel modules under /lib/modules/2.6.15-1.2054_FC5
configure: Putting kernel module development files under /usr/src/linux
checking Linux major/minor version... 2.6
checking for Linux CFLAGS... -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os
-fomit-frame-pointer -g -pipe -msoft-float -fno-builtin-sprintf
-fno-builtin-log2 -fno-builtin-puts -mpreferred-stack-boundary=2 -march=i586
-mregparm=3 -I/usr/src/linux/include/asm-i386/mach-default
-Wdeclaration-after-statement -Wno-pointer-sign -D__KERNEL__
-I/usr/src/linux/include -include /usr/src/linux/include/linux/autoconf.h
-DMODULE
checking for modpost... /usr/src/linux/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_IPIPE... no
checking Linux config option CONFIG_RTLINUX... no
checking Linux config option CONFIG_PCMCIA... yes
checking Linux config option CONFIG_ISA... yes
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/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
[matti_at_localhost comedi]$
Output of make:
[matti_at_localhost comedi]$ make
cd . && /bin/sh /usr/src/linux/comedi/missing --run autoheader
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory `/home/matti/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.i686/comedi'
Making all in comedi
make[2]: Entering directory `/home/matti/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.i686/comedi/comedi'
Making all in .
make[3]: Entering directory `/home/matti/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.i686/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 -fno-strict-aliasing -fno-common
-ffreestanding -Os -fomit-frame-pointer -g -pipe -msoft-float
-fno-builtin-sprintf -fno-builtin-log2 -fno-builtin-puts
-mpreferred-stack-boundary=2 -march=i586 -mregparm=3
-I/usr/src/linux/include/asm-i386/mach-default -Wdeclaration-after-statement
-Wno-pointer-sign -D__KERNEL__ -I/usr/src/linux/include -include
/usr/src/linux/include/linux/autoconf.h -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/include/linux/rwsem.h:27,
from /usr/src/linux/include/asm/semaphore.h:42,
from ../include/asm/semaphore.h:18,
from /usr/src/linux/include/linux/sched.h:20,
from ../include/linux/sched.h:10,
from /usr/src/linux/include/linux/module.h:10,
from ../include/linux/module.h:19,
from comedi_fops.c:27:
/usr/src/linux/include/asm/rwsem.h: In function '__down_read':
/usr/src/linux/include/asm/rwsem.h:106: error: expected ':' or ')' before
'comedi_fops'
/usr/src/linux/include/asm/rwsem.h: In function '__down_write':
/usr/src/linux/include/asm/rwsem.h:158: error: expected ':' or ')' before
'comedi_fops'
/usr/src/linux/include/asm/rwsem.h: In function '__up_read':
/usr/src/linux/include/asm/rwsem.h:195: error: expected ':' or ')' before
'comedi_fops'
/usr/src/linux/include/asm/rwsem.h:189: warning: unused variable 'tmp'
/usr/src/linux/include/asm/rwsem.h: In function '__up_write':
/usr/src/linux/include/asm/rwsem.h:221: error: expected ':' or ')' before
'comedi_fops'
/usr/src/linux/include/asm/rwsem.h: In function '__downgrade_write':
/usr/src/linux/include/asm/rwsem.h:246: error: expected ':' or ')' before
'comedi_fops'
In file included from ../include/asm/semaphore.h:18,
from /usr/src/linux/include/linux/sched.h:20,
from ../include/linux/sched.h:10,
from /usr/src/linux/include/linux/module.h:10,
from ../include/linux/module.h:19,
from comedi_fops.c:27:
/usr/src/linux/include/asm/semaphore.h: In function 'down':
/usr/src/linux/include/asm/semaphore.h:105: error: expected ':' or ')'
before 'comedi_fops'
/usr/src/linux/include/asm/semaphore.h: In function 'down_interruptible':
/usr/src/linux/include/asm/semaphore.h:130: error: expected ':' or ')'
before 'comedi_fops'
/usr/src/linux/include/asm/semaphore.h: In function 'down_trylock':
/usr/src/linux/include/asm/semaphore.h:155: error: expected ':' or ')'
before 'comedi_fops'
/usr/src/linux/include/asm/semaphore.h: In function 'up':
/usr/src/linux/include/asm/semaphore.h:179: error: expected ':' or ')'
before 'comedi_fops'
make[3]: *** [comedi_ko-comedi_fops.o] Error 1
make[3]: Leaving directory `/home/matti/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.i686/comedi/comedi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/matti/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.i686/comedi/comedi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/matti/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.i686/comedi'
make: *** [all] Error 2
[matti_at_localhost comedi]$
I also tried autogen.sh with parameters --enable-kbuild
-with-linuxconfig=/usr/src/linux/.config
(I admitt, using --enable-kbuild switch was just a wild guess :) ) Then I
received following outputs:
[matti_at_localhost comedi]$ ./autogen.sh --enable-kbuild
-with-linuxconfig=/usr/src/linux/.config
comedi/drivers/addi-data/Makefile.am:13: variable `addi_common_ko_SOURCES'
is defined but no program or
comedi/drivers/addi-data/Makefile.am:13: library has `addi_common_ko' as
canonic name (possible typo)
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... yes
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.15-1.2054_FC5 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.15-1.2054_FC5/build... not found
checking for Linux in ../linux... not found
checking for Linux in /usr/src/linux... yes
checking /usr/src/linux/.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... no
checking Linux config option CONFIG_HIGHMEM64G... no
configure: Putting kernel modules under /lib/modules/2.6.15-1.2054_FC5
configure: Putting kernel module development files under /usr/src/linux
checking Linux major/minor version... 2.6
checking for Linux CFLAGS... -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os
-fomit-frame-pointer -g -pipe -msoft-float -fno-builtin-sprintf
-fno-builtin-log2 -fno-builtin-puts -mpreferred-stack-boundary=2 -march=i586
-mregparm=3 -I/usr/src/linux/include/asm-i386/mach-default
-Wdeclaration-after-statement -Wno-pointer-sign -D__KERNEL__
-I/usr/src/linux/include -include /usr/src/linux/include/linux/autoconf.h
-DMODULE
checking for modpost... /usr/src/linux/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_IPIPE... no
checking Linux config option CONFIG_RTLINUX... no
checking Linux config option CONFIG_PCMCIA... yes
checking Linux config option CONFIG_ISA... yes
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/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
[matti_at_localhost comedi]$
[matti_at_localhost comedi]$ make
cd . && /bin/sh /usr/src/linux/comedi/missing --run autoheader
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory `/home/matti/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.i686/comedi'
Making all in comedi
make[2]: Entering directory `/home/matti/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.i686/comedi/comedi'
Making all in .
make[3]: Entering directory `/home/matti/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.i686/comedi/comedi'
echo > comedi_kbuild.inc
echo CONFIG_COMEDI_PCMCIA_MODULES=m >> comedi_kbuild.inc
echo CONFIG_COMEDI_USB_MODULES=m >> comedi_kbuild.inc
make -I/usr/src/linux/comedi/comedi -C /usr/src/linux
M=/usr/src/linux/comedi/comedi CC="gcc -m32
-I/usr/src/linux/comedi/comedi/../ \
-I/usr/src/linux/comedi/comedi/../include " V=1 modules
make[4]: Entering directory `/home/matti/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.i686'
mkdir -p /usr/src/linux/comedi/comedi/.tmp_versions
make -f scripts/Makefile.build obj=/usr/src/linux/comedi/comedi
make -f scripts/Makefile.build obj=/usr/src/linux/comedi/comedi/drivers
gcc -m32 -I/usr/src/linux/comedi/comedi/../
-I/usr/src/linux/comedi/comedi/../include
-Wp,-MD,/usr/src/linux/comedi/comedi/drivers/.cb_das16_cs.o.d -nostdinc
-isystem /usr/lib/gcc/i386-redhat-linux/4.1.0/include -D__KERNEL__
-Iinclude -include include/linux/autoconf.h -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-ffreestanding -Os -fomit-frame-pointer -g -pipe -msoft-float
-fno-builtin-sprintf -fno-builtin-log2 -fno-builtin-puts
-mpreferred-stack-boundary=2 -march=i586 -mregparm=3
-Iinclude/asm-i386/mach-default -Wdeclaration-after-statement
-Wno-pointer-sign -DMODULE -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(cb_das16_cs)"
-D"KBUILD_MODNAME=KBUILD_STR(cb_das16_cs)" -c -o
/usr/src/linux/comedi/comedi/drivers/.tmp_cb_das16_cs.o
/usr/src/linux/comedi/comedi/drivers/cb_das16_cs.c
/usr/src/linux/comedi/comedi/drivers/cb_das16_cs.c: In function
'das16cs_pcmcia_attach':
/usr/src/linux/comedi/comedi/drivers/cb_das16_cs.c:785: warning: implicit
declaration of function 'pcmcia_register_client'
/usr/src/linux/comedi/comedi/drivers/cb_das16_cs.c: In function
'das16cs_pcmcia_detach':
/usr/src/linux/comedi/comedi/drivers/cb_das16_cs.c:834: warning: implicit
declaration of function 'pcmcia_deregister_client'
/usr/src/linux/comedi/comedi/drivers/cb_das16_cs.c: At top level:
/usr/src/linux/comedi/comedi/drivers/cb_das16_cs.c:1147: error: unknown
field 'attach' specified in initializer
/usr/src/linux/comedi/comedi/drivers/cb_das16_cs.c:1147: warning:
initialization from incompatible pointer type
/usr/src/linux/comedi/comedi/drivers/cb_das16_cs.c:1148: error: unknown
field 'detach' specified in initializer
/usr/src/linux/comedi/comedi/drivers/cb_das16_cs.c:1148: warning:
initialization from incompatible pointer type
make[6]: *** [/usr/src/linux/comedi/comedi/drivers/cb_das16_cs.o] Error 1
make[5]: *** [/usr/src/linux/comedi/comedi/drivers] Error 2
make[4]: *** [_module_/usr/src/linux/comedi/comedi] Error 2
make[4]: Leaving directory `/home/matti/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.i686'
make[3]: *** [all-local] Error 2
make[3]: Leaving directory `/home/matti/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.i686/comedi/comedi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/matti/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.i686/comedi/comedi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/matti/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.i686/comedi'
make: *** [all] Error 2
[matti_at_localhost comedi]$
Does anybody have anyideas of
a) if I did something wrong? (highly possible since this is first time I try
to compile kernel/kernel modules all by my self)
b) if there's some other problem?
b.1) Can I fix the problem?
b.2) If I can't fix the problem and I should try somehing else but FC 5
Thanks in advance :)
--
BrakesAreForCowards!!!
When you feel blue, no one sees your tears... When your down, no one
understands your struggle...
When you feel happy, no one notices your smile...
But fart just once...
Being yourself - The only way to be more
Received on 2006-05-15Z06:05:26