Ubuntu

Comment 133 for bug 530277

Nigel Pallett (nigelp) wrote :

I get the following error message when trying to build the module on Ubuntu 10.10 64bit with kernel 2.6.35-27-generic:

------------------------------------------------------------------------------------------------------------------------------------------------------------
dkms build -m keucr -v 0.0.1

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=2.6.35-27-generic -C /lib/modules/2.6.35-27-generic/build M=/var/lib/dkms/keucr/0.0.1/build....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.35-27-generic (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/keucr/0.0.1/build/ for more information.
0
0
ERROR: binary package for keucr: 0.0.1 not found

------------------------------------------------------------------------------------------------------------------------------------------------------------

The make.log contains the following:

DKMS make.log for keucr-0.0.1 for kernel 2.6.35-27-generic (x86_64)
Thu Feb 17 09:22:17 GMT 2011
make: Entering directory `/usr/src/linux-headers-2.6.35-27-generic'
  LD /var/lib/dkms/keucr/0.0.1/build/built-in.o
  CC [M] /var/lib/dkms/keucr/0.0.1/build/usb.o
/var/lib/dkms/keucr/0.0.1/build/usb.c: In function ‘associate_dev’:
/var/lib/dkms/keucr/0.0.1/build/usb.c:211: error: implicit declaration of function ‘usb_buffer_alloc’
/var/lib/dkms/keucr/0.0.1/build/usb.c:211: warning: assignment makes pointer from integer without a cast
/var/lib/dkms/keucr/0.0.1/build/usb.c:218: warning: assignment makes pointer from integer without a cast
/var/lib/dkms/keucr/0.0.1/build/usb.c: In function ‘dissociate_dev’:
/var/lib/dkms/keucr/0.0.1/build/usb.c:414: error: implicit declaration of function ‘usb_buffer_free’
make[1]: *** [/var/lib/dkms/keucr/0.0.1/build/usb.o] Error 1
make: *** [_module_/var/lib/dkms/keucr/0.0.1/build] Error 2
make: Leaving directory `/usr/src/linux-headers-2.6.35-27-generic'

------------------------------------------------------------------------------------------------------------------------------------------------------------

I have attached a copy of the make.log