From: Thomas E. <th...@es...> - 2007-10-09 21:20:21
|
Hello Lirc List, I have tried to compile lirc 0.7.2, 0.8.0 and 0.8.2pre3 on my machine - but all to no avail. I am getting the following output from the 'make' command: --------------------------------------------------- make all-recursive make[1]: Entering directory `/usr/src/lirc-0.8.2pre3' Making all in drivers make[2]: Entering directory `/usr/src/lirc-0.8.2pre3/drivers' Making all in lirc_dev make[3]: Entering directory `/usr/src/lirc-0.8.2pre3/drivers/lirc_dev' mv Makefile Makefile.automake cp ../Makefile.kernel Makefile make -C /lib/modules/2.6.23-rc8-mm2/build/ SUBDIRS=/usr/src/lirc-0.8.2pre3/drivers/lirc_dev modules \ KBUILD_VERBOSE=1 make[4]: Entering directory `/usr/src/linux-2.6.23-rc8' test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \ echo; \ echo " ERROR: Kernel configuration is invalid."; \ echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \ echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo; \ /bin/false) mkdir -p /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/.tmp_versions rm -f /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/.tmp_versions/* make -f scripts/Makefile.build obj=/usr/src/lirc-0.8.2pre3/drivers/lirc_dev gcc -m32 -Wp,-MD,/usr/src/lirc-0.8.2pre3/drivers/lirc_dev/.lirc_dev.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 -Werror-implicit-function-declaration -Os -pipe -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=i686 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-i386/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/lirc-0.8.2pre3/drivers/lirc_dev/../.. -I/lib/modules/2.6.23-rc8-mm2/build//include/ -I/lib/modules/2.6.23-rc8-mm2/build//drivers/media/video/ -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_dev)" -D"KBUILD_MODNAME=KBUILD_STR(lirc_dev)" -c -o /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/.tmp_lirc_dev.o /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c: In function ‘lirc_register_plugin’: /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:245: error: implicit declaration of function ‘DECLARE_MUTEX_LOCKED’ /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:245: error: ‘tn’ undeclared (first use in this function) /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:245: error: (Each undeclared identifier is reported only once /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:245: error: for each function it appears in.) /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c: In function ‘lirc_unregister_plugin’: /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:434: error: ‘tn’ undeclared (first use in this function) /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:435: error: ‘tn2’ undeclared (first use in this function) /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c: In function ‘lirc_dev_init’: /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:883: error: void value not ignored as it ought to be /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c: In function ‘cleanup_module’: /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:910: error: void value not ignored as it ought to be make[5]: *** [/usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.o] Error 1 make[4]: *** [_module_/usr/src/lirc-0.8.2pre3/drivers/lirc_dev] Error 2 make[4]: Leaving directory `/usr/src/linux-2.6.23-rc8' make[3]: *** [lirc_dev.o] Error 2 make[3]: Leaving directory `/usr/src/lirc-0.8.2pre3/drivers/lirc_dev' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/lirc-0.8.2pre3/drivers' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/lirc-0.8.2pre3' make: *** [all] Error 2 --------------------------------------------------- As I was wondering why the configure script thinks my kernel source is in '/lib/modules/2.6.23-rc8-mm2/', I tried to run './configure --with-kerneldir=/usr/src/linux --with-driver=hauppauge' (as /usr/src/linux is where the configured source for my running kernel resides). Doing this and calling make results in the following output: --------------------------------------------------- make all-recursive make[1]: Entering directory `/usr/src/lirc-0.8.2pre3' Making all in drivers make[2]: Entering directory `/usr/src/lirc-0.8.2pre3/drivers' Making all in lirc_dev make[3]: Entering directory `/usr/src/lirc-0.8.2pre3/drivers/lirc_dev' mv Makefile Makefile.automake cp ../Makefile.kernel Makefile make -C /usr/src/linux/ SUBDIRS=/usr/src/lirc-0.8.2pre3/drivers/lirc_dev modules \ KBUILD_VERBOSE=1 make[4]: Entering directory `/usr/src/linux-2.6.23-rc8' test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \ echo; \ echo " ERROR: Kernel configuration is invalid."; \ echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \ echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo; \ /bin/false) mkdir -p /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/.tmp_versions rm -f /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/.tmp_versions/* make -f scripts/Makefile.build obj=/usr/src/lirc-0.8.2pre3/drivers/lirc_dev gcc -m32 -Wp,-MD,/usr/src/lirc-0.8.2pre3/drivers/lirc_dev/.lirc_dev.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 -Werror-implicit-function-declaration -Os -pipe -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=i686 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-i386/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/lirc-0.8.2pre3/drivers/lirc_dev/../.. -I/usr/src/linux//include/ -I/usr/src/linux//drivers/media/video/ -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_dev)" -D"KBUILD_MODNAME=KBUILD_STR(lirc_dev)" -c -o /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/.tmp_lirc_dev.o /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c: In function ‘lirc_register_plugin’: /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:245: error: implicit declaration of function ‘DECLARE_MUTEX_LOCKED’ /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:245: error: ‘tn’ undeclared (first use in this function) /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:245: error: (Each undeclared identifier is reported only once /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:245: error: for each function it appears in.) /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c: In function ‘lirc_unregister_plugin’: /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:434: error: ‘tn’ undeclared (first use in this function) /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:435: error: ‘tn2’ undeclared (first use in this function) /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c: In function ‘lirc_dev_init’: /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:883: error: void value not ignored as it ought to be /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c: In function ‘cleanup_module’: /usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.c:910: error: void value not ignored as it ought to be make[5]: *** [/usr/src/lirc-0.8.2pre3/drivers/lirc_dev/lirc_dev.o] Error 1 make[4]: *** [_module_/usr/src/lirc-0.8.2pre3/drivers/lirc_dev] Error 2 make[4]: Leaving directory `/usr/src/linux-2.6.23-rc8' make[3]: *** [lirc_dev.o] Error 2 make[3]: Leaving directory `/usr/src/lirc-0.8.2pre3/drivers/lirc_dev' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/lirc-0.8.2pre3/drivers' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/lirc-0.8.2pre3' make: *** [all] Error 2 --------------------------------------------------- These same two things seem to happen for all the versions of Lirc I have tried. Unfortunately, I have no clue about what to do next or how to fix any of these problems, so I really hope you can help me out. Thank you very much in advance, Thomas Thomas Eskebaek |