[Pkg-lirc-maint] Bug#471301: Bug#471301: workaround for bug 471301
Stefan Lippers-Hollmann
s.L-H at gmx.de
Mon Mar 17 12:40:56 UTC 2008
retitle 471301 lirc-modules-source: requires full kernel sources to build lirc_gpio
unmerge 436166
reopen 436166
severity 436166 important
merge 471301 375006 436166
thanks
On Montag, 17. März 2008, rUrek wrote:
> gcc-4.1 -m32 -Wp,-MD,/usr/src/modules/lirc/drivers/lirc_gpio/.lirc_gpio.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -D__KERNEL__ -Iinclude -include
> include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -pipe -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-x86/mach-default -fomit-frame-pointer -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/src/modules/lirc/drivers/lirc_gpio/../.. -I/lib/modules/2.6.24-1-686/build/include/ -I/lib/modules/2.6.24-1-686/build/drivers/media/video/ -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_gpio)" -D"KBUILD_MODNAME=KBUILD_STR(lirc_gpio)" -c -o /usr/src/modules/lirc/drivers/lirc_gpio/.tmp_lirc_gpio.o /usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c
> /usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:82:1: warning: "dprintk"
> redefined
> In file included from /usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:56:
> include/../drivers/media/video/bt8xx/bttvp.h:283:1: warning: this is the
> location of the previous definition
> /usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c: In function 'get_queue':
> /usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:371: error: implicit
> declaration of function 'bttv_get_gpio_queue'
> /usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:371: warning: return makes
> pointer from integer without a cast
> /usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c: In
> function 'init_module':
> /usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:484: error: implicit
> declaration of function 'bttv_get_cardinfo'
The lirc_gpio module requires bt848.h, btcx-risc.h, bttv.h and bttvp.h to
build, unfortunately all but bt848.h are private kernel headers and are to
to be exported to userspace (the reasoning for this is best described in
http://bugs.debian.org/436166). This means they're not part of
linux-headers-$KVER and therefore not available to module-assistant/
make-kpkg, unless you point them to use full kernel sources.
While this is an important bug in lirc_gpio, it will most likely require
more extensive upstream changes to the module structure and is unlikely to
happen anytime soon, for the time being you will have to use the full
kernel sources (e.g. provided by linux-source-<kernel version>) to build
lirc_gpio instead of the mere headers.
Previous versions of lirc-modules-source shipped private copies of these
files for each upstream kernel version they claimed to support, which
doesn't help for new kernels and would be a bug waiting to be reported
anyways (these are private headers, neither guaranteed to be stable nor in
sync with whatever kernel that identifies itselfs as a given upstream
version),
On Montag, 17. März 2008, rUrek wrote:
> I noticed, that this is problem rather with kernel, then lirc-modules-source.
>
> 2 ways:
> 1) You don't need lirc_gpio - but maybe you have to patch kernel:
> http://www.sthoughts.com/?p=332
> (this is not working with my card id = 37 - I probably have to patch
> bttv-input.c)
> 2) You play with lirc_gpio, but you have to patch kernel:
> discussion:
> http://sourceforge.net/mailarchive/message.php?msg_id=20080203211219.d5060925.ldarby%40tuffmail.com
> and patch for 2.6.24
> http://lirc.sourceforge.net/software/snapshots/lirc-bttv-linux-2.6.24.patch
>
> pzdr
While these workarounds have nothing to do with the reported build failure,
I am confident that the issues described there are already fixed in
Debian's lirc-modules-source package, please file a separate bug if they
still remain after building against full kernel sources.
Regards
Stefan Lippers-Hollmann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-lirc-maint/attachments/20080317/0492ab09/attachment.pgp
More information about the Pkg-lirc-maint
mailing list