[Pkg-lirc-maint] Bug#390945: lirc-modules-source: Does not compile with Linux 2.6.17

Shaun Jackman sjackman at gmail.com
Tue Oct 3 22:16:14 UTC 2006


Package: lirc-modules-source
Version: 0.8.0-7
Severity: important
Tags: upstream

In Linux 2.6.17, the structure i2c_driver is missing the fields `name'
and `flags'. Also, the constants I2C_DRIVERID_EXP3 and I2C_DF_NOTIFY
are not defined.

Cheers,
Shaun

$ uname -a
Linux quince 2.6.17-2-k7 #1 SMP Wed Sep 13 17:18:46 UTC 2006 i686 GNU/Linux
$ dpkg -l linux-headers-2.6.17-2-k7 linux-image-2.6.17-2-k7
...
ii  linux-headers- 2.6.17-9       Header files for Linux 2.6.17 on AMD K7
ii  linux-image-2. 2.6.17-9       Linux 2.6.17 image on AMD K7
$ make -C drivers SUBDIRS=lirc_i2c
make: Entering directory `/home/sjackman/src/debian/lirc-0.8.0/drivers'
Making all in lirc_i2c
make[1]: Entering directory
`/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c'
mv Makefile Makefile.automake
cp ../Makefile.kernel Makefile
make -C /lib/modules/2.6.17-2-k7/build/
SUBDIRS=/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c modules
\
                KBUILD_VERBOSE=1
make[2]: Entering directory `/usr/src/linux-headers-2.6.17-2-k7'
mkdir -p /home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c/.tmp_versions
rm -f /home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c/.tmp_versions/*
make -f scripts/Makefile.build
obj=/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c
   gcc-4.1 -m32
-Wp,-MD,/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c/.lirc_i2c.o.d
 -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include
-D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall
-Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -Os -fomit-frame-pointer -pipe -msoft-float
-mpreferred-stack-boundary=2  -march=athlon -mregparm=3 -ffreestanding
-Iinclude/asm-i386/mach-default -Wdeclaration-after-statement
-Wno-pointer-sign -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H
-I. -I. -I../..
-I/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c/../..
-I/lib/modules/2.6.17-2-k7/build//include/  -DMODULE
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_i2c)"
-D"KBUILD_MODNAME=KBUILD_STR(lirc_i2c)" -c -o
/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c/.tmp_lirc_i2c.o
/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c
/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:363:
error: unknown field 'name' specified in initializer
/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:363:
warning: initialization makes integer from pointer without a cast
/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:364:
error: 'I2C_DRIVERID_EXP3' undeclared here (not in a function)
/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:365:
error: unknown field 'flags' specified in initializer
/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:365:
error: 'I2C_DF_NOTIFY' undeclared here (not in a function)
make[3]: *** [/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.o]
Error 1
make[2]: *** [_module_/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c]
Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.17-2-k7'
make[1]: *** [lirc_i2c.o] Error 2
make[1]: Leaving directory
`/home/sjackman/src/debian/lirc-0.8.0/drivers/lirc_i2c'
make: *** [all-recursive] Error 1
make: Leaving directory `/home/sjackman/src/debian/lirc-0.8.0/drivers'




More information about the Pkg-lirc-maint mailing list