Re: [comedi] comedi instalation from git

14 views
Skip to first unread message

Ian Abbott

unread,
Mar 3, 2011, 9:20:46 AM3/3/11
to comed...@googlegroups.com
On 03/03/11 13:58, Narigas wrote:
> Sorry, iu have been out of the loop for a while, but i tried to
> install comedi modules from the source (git) and there is nothing
> inside lib/modules/2.6.37/comedi
>
> i have disabled all comedi refs in the kernel conf file, so there is
> nothing at staging/comedi
>
> but also, make install does not produce any comedi modules, just an
> empty lib/modules/2.6.37/comedi directory.
>
> Am I missing something? Many thanks!

It's supposed to work. Is there any error output from 'make'?

--
-=( Ian Abbott @ MEV Ltd. E-mail: <abb...@mev.co.uk> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-

Narigas

unread,
Mar 3, 2011, 8:58:54 AM3/3/11
to Comedi: Linux Control and Measurement Device Interface
Sorry, iu have been out of the loop for a while, but i tried to
install comedi modules from the source (git) and there is nothing
inside lib/modules/2.6.37/comedi

i have disabled all comedi refs in the kernel conf file, so there is
nothing at staging/comedi

but also, make install does not produce any comedi modules, just an
empty lib/modules/2.6.37/comedi directory.

Am I missing something? Many thanks!

Richardson

Narigas

unread,
Mar 3, 2011, 9:50:11 AM3/3/11
to Comedi: Linux Control and Measurement Device Interface
Hey Ian,

the only thing I can see is this:

/home/richardson/src/comedi/include/asm/uaccess.h:5: warning:
"LINUX_VERSION_CODE" is not defined
/home/richardson/src/comedi/include/asm/uaccess.h:5: warning:
"KERNEL_VERSION" is not defined
/home/richardson/src/comedi/include/asm/uaccess.h:5: error: missing
binary operator before token "("
make[5]: *** [/home/richardson/src/comedi/comedi/comedi_compat32.o]
Error 1
make[4]: *** [_module_/home/richardson/src/comedi/comedi] Error 2
make[4]: Leaving directory `/home/richardson/src/linux-2.6.37'
make[3]: [all-local] Error 2 (ignored)


cheers

Narigas

unread,
Mar 3, 2011, 10:08:25 AM3/3/11
to Comedi: Linux Control and Measurement Device Interface
Hi Ian,

that's my whole make output. It appears to me that it runs rather fast
and the modules do not seem to be compiled (do I have to write
anything special in the configure:

richardson@richardson-Precision-T1500:~/src/comedi$ make
make all-recursive
make[1]: Entering directory `/home/richardson/src/comedi'
Making all in comedi
make[2]: Entering directory `/home/richardson/src/comedi/comedi'
Making all in .
make[3]: Entering directory `/home/richardson/src/comedi/comedi'
if test "." != "."; then \
for dir in . drivers kcomedilib drivers/addi-data; do \
for file in `ls /home/richardson/src/comedi/comedi/$dir/*\.[ch] /
home/richardson/src/comedi/comedi/$dir/Kbuild | /bin/grep -E -v \.mod
\.c`; do \
LINK_NAME=$dir/`basename "$file"`; \
if test ! -e $LINK_NAME; then ln -vs $file $LINK_NAME; fi; \
done; \
done; \
fi
make -I/home/richardson/src/comedi/comedi -C /usr/src/linux M=/home/
richardson/src/comedi/comedi CC="gcc -I/home/richardson/src/comedi/ \
-I/home/richardson/src/comedi/include -I/usr/realtime//include "
modules
make[4]: Entering directory `/home/richardson/src/linux-2.6.37'
CC [M] /home/richardson/src/comedi/comedi/comedi_fops.o
CC [M] /home/richardson/src/comedi/comedi/proc.o
CC [M] /home/richardson/src/comedi/comedi/range.o
CC [M] /home/richardson/src/comedi/comedi/drivers.o
CC [M] /home/richardson/src/comedi/comedi/comedi_ksyms.o
CC [M] /home/richardson/src/comedi/comedi/rt_pend_tq.o
CC [M] /home/richardson/src/comedi/comedi/rt.o
CC [M] /home/richardson/src/comedi/comedi/comedi_compat32.o
In file included from /home/richardson/src/comedi/comedi/
comedi_compat32.c:30:
/home/richardson/src/comedi/include/asm/uaccess.h:5: warning:
"LINUX_VERSION_CODE" is not defined
/home/richardson/src/comedi/include/asm/uaccess.h:5: warning:
"KERNEL_VERSION" is not defined
/home/richardson/src/comedi/include/asm/uaccess.h:5: error: missing
binary operator before token "("
make[5]: *** [/home/richardson/src/comedi/comedi/comedi_compat32.o]
Error 1
make[4]: *** [_module_/home/richardson/src/comedi/comedi] Error 2
make[4]: Leaving directory `/home/richardson/src/linux-2.6.37'
make[3]: [all-local] Error 2 (ignored)
make[3]: Leaving directory `/home/richardson/src/comedi/comedi'
Making all in kcomedilib
make[3]: Entering directory `/home/richardson/src/comedi/comedi/
kcomedilib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/richardson/src/comedi/comedi/
kcomedilib'
Making all in drivers
make[3]: Entering directory `/home/richardson/src/comedi/comedi/
drivers'
Making all in addi-data
make[4]: Entering directory `/home/richardson/src/comedi/comedi/
drivers/addi-data'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/richardson/src/comedi/comedi/drivers/
addi-data'
make[4]: Entering directory `/home/richardson/src/comedi/comedi/
drivers'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/richardson/src/comedi/comedi/
drivers'
make[3]: Leaving directory `/home/richardson/src/comedi/comedi/
drivers'
make[2]: Leaving directory `/home/richardson/src/comedi/comedi'
Making all in include
make[2]: Entering directory `/home/richardson/src/comedi/include'
Making all in asm
make[3]: Entering directory `/home/richardson/src/comedi/include/asm'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/richardson/src/comedi/include/asm'
Making all in linux
make[3]: Entering directory `/home/richardson/src/comedi/include/
linux'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/richardson/src/comedi/include/linux'
Making all in pcmcia
make[3]: Entering directory `/home/richardson/src/comedi/include/
pcmcia'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/richardson/src/comedi/include/
pcmcia'
make[3]: Entering directory `/home/richardson/src/comedi/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/richardson/src/comedi/include'
make[2]: Leaving directory `/home/richardson/src/comedi/include'
make[2]: Entering directory `/home/richardson/src/comedi'
make[2]: Leaving directory `/home/richardson/src/comedi'
make[1]: Leaving directory `/home/richardson/src/comedi'


And this is the configure:

richardson@richardson-Precision-T1500:~/src/comedi$ ./configure --with-
rtaidir=/usr/realtime/ --with-linuxdir=/usr/src/linux
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of
Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for strip... /usr/bin/strip
checking for depmod... /sbin/depmod
configure: Using 2.6.37 as the uname -r value
configure: Using x86_64 as the uname -m value
checking for rpm... no
checking for Linux build in /usr/src/linux... yes
checking for separate Linux source and build directory... no
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... no
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.37
configure: Putting kernel module development files under /usr/src/
linux
checking Linux major/minor version... 2.6
checking for Linux CFLAGS...
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... yes
checking RTAI directory /usr/realtime/... found
checking Linux config option CONFIG_RTLINUX... no
checking Linux config option CONFIG_PCI... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking /usr/src/linux for probe in pcmcia_driver struct... yes
checking Linux config option CONFIG_PCMCIA... module
checking /usr/src/linux for name in pcmcia_driver struct... yes
checking /usr/src/linux for pcmcia_loop_tuple function... yes
checking /usr/src/linux for dev_node_t in pcmcia/ds.h (removed in
2.6.35)... no
checking /usr/src/linux for irq_req_t in pcmcia/cs.h (removed in
2.6.35)... no
checking /usr/src/linux for io_req_t in pcmcia/cs.h (removed in
2.6.36)... no
checking /usr/src/linux for memreq_t in pcmcia/cs.h (removed in
2.6.36)... no
checking /usr/src/linux for include/pcmcia/cs_types.h (removed in
2.6.36)... no
checking /usr/src/linux for include/pcmcia/cs.h (removed in 2.6.37)...
no
checking Linux config option CONFIG_USB... yes
checking for Kbuild support in /usr/src/linux... yes
checking /usr/src/linux for include/linux/mutex.h... yes
checking /usr/src/linux for include/linux/semaphore.h... yes
checking Linux config option CONFIG_ISA... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating comedi/Makefile
config.status: creating comedi/comedi_kbuild.inc
config.status: creating comedi/drivers/Makefile
config.status: creating comedi/drivers/addi-data/Makefile
config.status: creating comedi/kcomedilib/Makefile
config.status: creating include/Makefile
config.status: creating include/asm/Makefile
config.status: creating include/linux/Makefile
config.status: creating include/pcmcia/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands


thanks!

Ian Abbott

unread,
Mar 3, 2011, 10:41:42 AM3/3/11
to comed...@googlegroups.com

It looks like there's a bug in the comedi/include/asm/uaccess.h file as
it doesn't include <linux/version.h> before using the LINUX_VERSION_CODE
and KERNEL_VERSION macros.

The simplest option is to remove the file, as it's only a kernel
compatibility header for really ancient kernels that we don't support
any more! Alternatively, you could add the following line just before
the bit that checks LINUX_VERSION_CODE:

#include <linux/version.h>

The thing that's confusing me now is why it builds fine on my system!

Narigas

unread,
Mar 4, 2011, 3:17:02 AM3/4/11
to Comedi: Linux Control and Measurement Device Interface
awesome! the drivers are there! thanks heaps!
> -=( Ian Abbott @ MEV Ltd.    E-mail: <abbo...@mev.co.uk>        )=-
Reply all
Reply to author
Forward
0 new messages