You are not logged in.

#1 2010-01-26 00:04:38

damis648
Member
Registered: 2010-01-25
Posts: 18

Can't compile HID Module

This is my first post here at the Arch forums, and I am glad to be here.
First though, my problem. I am no expert on compiling things, but I need to compile the HID kernel module When I try to do this, however, I get the following result (ran from [kernel source]/drivers/hid):

[damian@damian-desktop-arch hid]$ make -C ../.. SUBDIRS=`pwd` modules                           
make: Entering directory `/home/damian/Downloads/kernelbuild/linux-2.6.32.6'                                                                                                                                                                 
                                                                                                                                                                                                                                             
  WARNING: Symbol version dump /home/damian/Downloads/kernelbuild/linux-2.6.32.6/Module.symvers                                                                                                                                              
           is missing; modules will have no dependencies and modversions.                                                                                                                                                                    
                                                                                                                                                                                                                                             
  CC [M]  /home/damian/Downloads/kernelbuild/linux-2.6.32.6/drivers/hid/hid-lg.o                                                                                                                                                             
In file included from include/linux/gfp.h:4,                                                                                                                                                                                                 
                 from include/linux/kmod.h:22,                                                                                                                                                                                               
                 from include/linux/module.h:13,                                                                                                                                                                                             
                 from include/linux/device.h:23,                                                                                                                                                                                             
                 from /home/damian/Downloads/kernelbuild/linux-2.6.32.6/drivers/hid/hid-lg.c:19:                                                                                                                                             
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory                                                                                                                                                               
include/linux/mmzone.h:258:5: warning: "MAX_NR_ZONES" is not defined                                                                                                                                                                         
include/linux/mmzone.h:260:7: warning: "MAX_NR_ZONES" is not defined                                                                                                                                                                         
include/linux/mmzone.h:262:7: warning: "MAX_NR_ZONES" is not defined                                                                                                                                                                         
In file included from include/linux/gfp.h:4,                                                                                                                                                                                                 
                 from include/linux/kmod.h:22,                                                                                                                                                                                               
                 from include/linux/module.h:13,                                                                                                                                                                                             
                 from include/linux/device.h:23,                                                                                                                                                                                             
                 from /home/damian/Downloads/kernelbuild/linux-2.6.32.6/drivers/hid/hid-lg.c:19:                                                                                                                                             
include/linux/mmzone.h:300: error: 'MAX_NR_ZONES' undeclared here (not in a function)                                                                                                                                                        
make[1]: *** [/home/damian/Downloads/kernelbuild/linux-2.6.32.6/drivers/hid/hid-lg.o] Error 1                                                                                                                                                
make: *** [_module_/home/damian/Downloads/kernelbuild/linux-2.6.32.6/drivers/hid] Error 2                                                                                                                                                    
make: Leaving directory `/home/damian/Downloads/kernelbuild/linux-2.6.32.6'

Can someone please explain why this is happening and how to fix it? Thanks in advance.

Offline

#2 2010-01-26 17:39:06

Bregol
Member
Registered: 2008-08-15
Posts: 175

Re: Can't compile HID Module

Looks like it is looking for linux/bounds.h.  Does bounds.h exist in the kernel source directory?  If not, try running "make prepare" in the kernel source directory.  I think that might generate bounds.h for you.


Nai haryuvalyë melwa rë

Offline

Board footer

Powered by FluxBB