From: Thomas A. <tan...@gr...> - 2009-06-10 08:10:39
|
Hi, I'm trying to build the lirc modules on debian for a specific kernel for which I have full sources compiled and tested: m-a -u . -t -i -f -l "2.6.17.7-esp" build lirc But it can't compile - I get the following error: /usr/src/lirc/usr_src/modules/lirc-modules/lirc_dev.c:146: error: `DEV_LIRC' undeclared (first use in this function) I see that DEV_LIRC is indeed defined in config.h, but as far as I can see, config.h is not included because of HAVE_CONFIG_H: #ifdef HAVE_CONFIG_H # include <config.h> #endif Why would HAVE_CONFIG_H not be defined ? Other Info: ---------- lirc-modules-source: version is 0.8.3-3 debian version is 'testing' m-a works perfectly building other (non-lirc) modules (I've just tested it) Here's the full output from m-a: ------------------------------- --------------8<--------------8<--------------8<--------------8<-------------- Extracting the package tarball, /usr/src/lirc-modules.tar.bz2, please wait... for templ in ; do \ cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.17.7-esp/g'` ; \ done for templ in `ls debian/*.modules.in` ; do \ test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \ sed -e 's/##KVERS##/2.6.17.7-esp/g ;s/#KVERS#/2.6.17.7-esp/g ; s/_KVERS_/2.6.17.7-esp/g ; s/##KDREV##/2.6.17.7-esp-10.00.Custom/g ; s/#KDREV#/2.6.17.7-esp-10.00.Custom/g ; s/_KDREV_/2.6.17.7-esp-10.00.Custom/g ' < $templ > ${templ%.modules.in}; \ done dh_clean /usr/bin/make clean make[1]: Entering directory `/usr/src/lirc/usr_src/modules/lirc-modules' rm -rf *.ko *.mod.* *.o .*.o.d .*.cmd .tmp_versions Module.symvers *.order make[1]: Leaving directory `/usr/src/lirc/usr_src/modules/lirc-modules' /usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules make[1]: Entering directory `/usr/src/lirc/usr_src/modules/lirc-modules' for templ in ; do \ cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.17.7-esp/g'` ; \ done for templ in `ls debian/*.modules.in` ; do \ test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \ sed -e 's/##KVERS##/2.6.17.7-esp/g ;s/#KVERS#/2.6.17.7-esp/g ; s/_KVERS_/2.6.17.7-esp/g ; s/##KDREV##/2.6.17.7-esp-10.00.Custom/g ; s/#KDREV#/2.6.17.7-esp-10.00.Custom/g ; s/_KDREV_/2.6.17.7-esp-10.00.Custom/g ' < $templ > ${templ%.modules.in}; \ done dh_clean /usr/bin/make clean make[2]: Entering directory `/usr/src/lirc/usr_src/modules/lirc-modules' rm -rf *.ko *.mod.* *.o .*.o.d .*.cmd .tmp_versions Module.symvers *.order make[2]: Leaving directory `/usr/src/lirc/usr_src/modules/lirc-modules' make[1]: Nothing to be done for `kdist_config'. dh_testdir dh_testroot dh_clean -k dh_installdirs lib/modules/2.6.17.7-esp/misc # build module /usr/bin/make -C /usr/src/lirc/usr_src/modules/lirc-modules KSRC=/lib/modules/2.6.17.7-esp/source make[2]: Entering directory `/usr/src/lirc/usr_src/modules/lirc-modules' /usr/bin/make -C /lib/modules/2.6.17.7-esp/source SUBDIRS=/usr/src/lirc/usr_src/modules/lirc-modules modules make[3]: Entering directory `/usr/src/linux-2.6.17.7-esp' CC [M] /usr/src/lirc/usr_src/modules/lirc-modules/lirc_dev.o /usr/src/lirc/usr_src/modules/lirc-modules/lirc_dev.c: In function `cleanup': /usr/src/lirc/usr_src/modules/lirc-modules/lirc_dev.c:146: error: `DEV_LIRC' undeclared (first use in this function) /usr/src/lirc/usr_src/modules/lirc-modules/lirc_dev.c:146: error: (Each undeclared identifier is reported only once /usr/src/lirc/usr_src/modules/lirc-modules/lirc_dev.c:146: error: for each function it appears in.) /usr/src/lirc/usr_src/modules/lirc-modules/lirc_dev.c:146: error: syntax error before string constant /usr/src/lirc/usr_src/modules/lirc-modules/lirc_dev.c: In function `lirc_register_plugin': /usr/src/lirc/usr_src/modules/lirc-modules/lirc_dev.c:402: error: `DEV_LIRC' undeclared (first use in this function) /usr/src/lirc/usr_src/modules/lirc-modules/lirc_dev.c:402: error: syntax error before string constant /usr/src/lirc/usr_src/modules/lirc-modules/lirc_dev.c:451: error: syntax error before string constant make[4]: *** [/usr/src/lirc/usr_src/modules/lirc-modules/lirc_dev.o] Error 1 make[3]: *** [_module_/usr/src/lirc/usr_src/modules/lirc-modules] Error 2 make[3]: Leaving directory `/usr/src/linux-2.6.17.7-esp' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/lirc/usr_src/modules/lirc-modules' make[1]: *** [binary-modules] Error 2 make[1]: Leaving directory `/usr/src/lirc/usr_src/modules/lirc-modules' make: *** [kdist_build] Error 2 BUILD FAILED! See /usr/src/lirc/var_cache_modass/lirc-modules-source.buildlog.2.6.17.7-esp.1244619893 for details. --------------8<--------------8<--------------8<--------------8<-------------- |
From: Thomas A. <tan...@gr...> - 2009-06-10 08:55:25
|
Thomas Andrews wrote: > #ifdef HAVE_CONFIG_H > # include <config.h> > #endif > > Why would HAVE_CONFIG_H not be defined ? I changed the above code as follows and now it builds the module fine. // #ifdef HAVE_CONFIG_H # include <config.h> // #endif Where is this supposed to have been defined ? |
From: <li...@ba...> - 2009-06-14 14:17:59
|
Hi! Thomas Andrews "tan...@gr..." wrote: > Thomas Andrews wrote: >> #ifdef HAVE_CONFIG_H >> # include <config.h> >> #endif >> >> Why would HAVE_CONFIG_H not be defined ? > I changed the above code as follows and now it builds the module fine. > > // #ifdef HAVE_CONFIG_H > # include <config.h> > // #endif > > Where is this supposed to have been defined ? In drivers/Makefile.common by the DEFS variable. Christoph |
From: Thomas A. <tan...@gr...> - 2009-06-15 07:34:04
|
Christoph Bartelmus wrote: > Thomas Andrews "tan...@gr..." wrote: >> Thomas Andrews wrote: >>> #ifdef HAVE_CONFIG_H >>> # include <config.h> >>> #endif >>> >>> Why would HAVE_CONFIG_H not be defined ? > >> I changed the above code as follows and now it builds the module fine. >> >> // #ifdef HAVE_CONFIG_H >> # include <config.h> >> // #endif >> >> Where is this supposed to have been defined ? > > In drivers/Makefile.common by the DEFS variable. Hi Christoph, I don't have a file called Makefile.common, and none of my files contain the DEFS variable. Are you talking about the kernel or the driver? In any event I've looked in both... Many thanks, Thomas |
From: <li...@ba...> - 2009-06-15 16:58:36
|
Hi! Thomas Andrews "tan...@gr..." wrote: [...] >>>> Why would HAVE_CONFIG_H not be defined ? [...] >>> Where is this supposed to have been defined ? >> >> In drivers/Makefile.common by the DEFS variable. [...] > I don't have a file called Makefile.common, and none of my files contain > the DEFS variable. Are you talking about the kernel or the driver? I am talking about the lirc-0.8.5 release. If you're not using official LIRC sources, then this might not be the right place to ask. Christoph |
From: Thomas A. <tan...@gr...> - 2009-06-15 20:48:30
|
Christoph Bartelmus wrote: > Thomas Andrews "tan...@gr..." wrote: > [...] >>>>> Why would HAVE_CONFIG_H not be defined ? > [...] >>>> Where is this supposed to have been defined ? >>> In drivers/Makefile.common by the DEFS variable. > [...] >> I don't have a file called Makefile.common, and none of my files contain >> the DEFS variable. Are you talking about the kernel or the driver? > > I am talking about the lirc-0.8.5 release. If you're not using official > LIRC sources, then this might not be the right place to ask. Hi Christoph, I am referring to version 0.8.3-3. I don't believe it is non-standard in any way - it is part of the lirc-modules-source deb. (Debian testing). Thomas |