|
From: Nathan A. S. <na...@co...> - 2007-05-19 21:00:44
|
On Fri, 2007-05-18 at 11:27 -0700, Siddhartha Jain wrote: > I tried this and it did compile but I never got to use it because I > don't have the mceusb2 device. > http://ubuntuforums.org/showthread.php?t=404577 > ------------------------ > Change > #include <linux/usb_input.h> > to > /* #include <linux/usb/input.h> */ > > > and change > input_regs(dev, regs); > to > /* input_regs(dev, regs); */ > > finally, change > SLAB_ATOMIC > to > GFP_ATOMIC > ------------------------ > > - Siddhartha > Thanks for the reply Siddhartha, Unfortuntely, I couldn't find the file that need that changed. I do indeed need mceusb2. I did a 'grep -r "usb_input.h" *" in the top level of the source directory but didn't find anything. I did the same with "input_regs" with the same results. I am using lirc_8.1 from the lirc website (ie: a tarball.) Thanks again for looking at my post. Nasa > > On 5/17/07, Nathan A. Smith <na...@co...> wrote: > > Hi, > > > > I have been trying to compile lirc 8.1 with a machine running > > 2.6.22-rc1. The kernel is compiled straight from source. The output > > I am getting follows: > > > > [root@localhost lirc-0.8.1]# make > > make all-recursive > > make[1]: Entering directory `/root/temp/lirc-0.8.1' > > Making all in drivers > > make[2]: Entering directory `/root/temp/lirc-0.8.1/drivers' > > Making all in lirc_dev > > make[3]: Entering directory `/root/temp/lirc-0.8.1/drivers/lirc_dev' > > make[3]: Nothing to be done for `all'. > > make[3]: Leaving directory `/root/temp/lirc-0.8.1/drivers/lirc_dev' > > Making all in lirc_mceusb2 > > make[3]: Entering directory `/root/temp/lirc-0.8.1/drivers/lirc_mceusb2' > > Makefile:8: ************************************************** > > Makefile:8: *** Makefile trick not undone, trying to recover * > > Makefile:8: ************************************************** > > mv Makefile.automake Makefile > > make all > > make[4]: Entering directory `/root/temp/lirc-0.8.1/drivers/lirc_mceusb2' > > mv Makefile Makefile.automake > > cp ../Makefile.kernel Makefile > > make -C /lib/modules/2.6.21/build/ > > SUBDIRS=/root/temp/lirc-0.8.1/drivers/lirc_mceusb2 modules \ > > KBUILD_VERBOSE=1 > > make[5]: Entering directory `/usr/src/linux-2.6.21' > > 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 /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/.tmp_versions > > rm -f /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/.tmp_versions/* > > make -f scripts/Makefile.build > > obj=/root/temp/lirc-0.8.1/drivers/lirc_mceusb2 > > gcc -m32 > > -Wp,-MD,/root/temp/lirc-0.8.1/drivers/lirc_mceusb2/.lirc_mceusb2.o.d > > -nostdinc -isystem /usr/lib/gcc/i586-mandriva-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 > > -pipe -msoft-float -mregparm=3 -freg-struct-return > > -mpreferred-stack-boundary=4 -march=i586 -mtune=generic -ffreestanding > > -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 > > -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-i386/mach-default > > -fno-omit-frame-pointer -fno-optimize-sibling-calls > > -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign > > -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. > > -I/root/temp/lirc-0.8.1/drivers/lirc_mceusb2/../.. > > -I/lib/modules/2.6.21/build//include/ > > -I/lib/modules/2.6.21/build//drivers/media/video/ -DMODULE > > -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_mceusb2)" > > -D"KBUILD_MODNAME=KBUILD_STR(lirc_mceusb2)" -c > > -o /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.o /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c: In function > > ‘request_packet_async’: > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:237: warning: > > passing argument 6 of ‘usb_fill_int_urb’ from incompatible pointer > > type > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:245: warning: > > passing argument 6 of ‘usb_fill_int_urb’ from incompatible pointer > > type > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:266: error: > > ‘SLAB_ATOMIC’ undeclared (first use in this function) > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:266: error: > > (Each undeclared identifier is reported only once > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:266: error: > > for each function it appears in.) > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c: In function > > ‘usb_remote_recv’: > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:469: error: > > ‘SLAB_ATOMIC’ undeclared (first use in this function) > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c: In function > > ‘usb_remote_probe’: > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:705: error: > > ‘SLAB_ATOMIC’ undeclared (first use in this function) > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:783: warning: > > passing argument 6 of ‘usb_fill_int_urb’ from incompatible pointer > > type > > make[6]: *** [/root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.o] > > Error 1 > > make[5]: *** [_module_/root/temp/lirc-0.8.1/drivers/lirc_mceusb2] Error > > 2 > > make[5]: Leaving directory `/usr/src/linux-2.6.21' > > make[4]: *** [lirc_mceusb2.o] Error 2 > > make[4]: Leaving directory `/root/temp/lirc-0.8.1/drivers/lirc_mceusb2' > > make[3]: *** [all] Error 2 > > make[3]: Leaving directory `/root/temp/lirc-0.8.1/drivers/lirc_mceusb2' > > make[2]: *** [all-recursive] Error 1 > > make[2]: Leaving directory `/root/temp/lirc-0.8.1/drivers' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/root/temp/lirc-0.8.1' > > make: *** [all] Error 2 > > > > > > Could anyone tell me what I am missing? > > > > Thanks > > > > Nasa > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ |