Package: at76c503a-source Version: 0.15~dev0.20070427-1 Depends: atmel-firmware, debhelper (>= 5)
When I try to compile the sources for the at76c503a driver, I get some errors and I can't compile: C-8:~# cd /usr/src C-8:/usr/src# tar -xvzf at76c503a.tar.gz modules/ modules/at76c503a/ modules/at76c503a/debian/ modules/at76c503a/debian/rules modules/at76c503a/debian/control.template modules/at76c503a/debian/compat modules/at76c503a/debian/changelog.template modules/at76c503a/debian/control modules/at76c503a/at76_usb.c modules/at76c503a/at76_usb_ids.h modules/at76c503a/at76_usb.h modules/at76c503a/README modules/at76c503a/COPYING modules/at76c503a/CHANGELOG modules/at76c503a/Makefile C-8:/usr/src# cd modules/at76c503a/ C-8:/usr/src/modules/at76c503a# make make -C /lib/modules/2.6.18-4-686/build M=/usr/src/modules/at76c503a KERNELRELEASE= 2.6.18-4-686 modules make[1]: Entering directory `/usr/src/linux-headers-2.6.18-4-686' CC [M] /usr/src/modules/at76c503a/at76_usb.o /usr/src/modules/at76c503a/at76_usb.c: In function 'at76_dump_bss_table': /usr/src/modules/at76c503a/at76_usb.c:2638: warning: unused variable 'obuf_s' /usr/src/modules/at76c503a/at76_usb.c:5861:55: error: macro "INIT_WORK" requires 3 arguments, but only 2 given /usr/src/modules/at76c503a/at76_usb.c: In function 'alloc_new_device': /usr/src/modules/at76c503a/at76_usb.c:5861: error: 'INIT_WORK' undeclared (first use in this function) /usr/src/modules/at76c503a/at76_usb.c:5861: error: (Each undeclared identifier is reported only once /usr/src/modules/at76c503a/at76_usb.c:5861: error: for each function it appears in.) /usr/src/modules/at76c503a/at76_usb.c:5862:57: error: macro "INIT_WORK" requires 3 arguments, but only 2 given /usr/src/modules/at76c503a/at76_usb.c:5863:57: error: macro "INIT_WORK" requires 3 arguments, but only 2 given /usr/src/modules/at76c503a/at76_usb.c:5864:43: error: macro "INIT_WORK" requires 3 arguments, but only 2 given /usr/src/modules/at76c503a/at76_usb.c:5865:59: error: macro "INIT_WORK" requires 3 arguments, but only 2 given /usr/src/modules/at76c503a/at76_usb.c:5866:49: error: macro "INIT_WORK" requires 3 arguments, but only 2 given /usr/src/modules/at76c503a/at76_usb.c:5867:59: error: macro "INIT_WORK" requires 3 arguments, but only 2 given /usr/src/modules/at76c503a/at76_usb.c:5868:49: error: macro "INIT_WORK" requires 3 arguments, but only 2 given /usr/src/modules/at76c503a/at76_usb.c:5869:43: error: macro "INIT_WORK" requires 3 arguments, but only 2 given /usr/src/modules/at76c503a/at76_usb.c:5870:57: error: macro "INIT_WORK" requires 3 arguments, but only 2 given /usr/src/modules/at76c503a/at76_usb.c:5871:55: error: macro "INIT_WORK" requires 3 arguments, but only 2 given /usr/src/modules/at76c503a/at76_usb.c:5872:53: error: macro "INIT_WORK" requires 3 arguments, but only 2 given make[2]: *** [/usr/src/modules/at76c503a/at76_usb.o] Error 1 make[1]: *** [_module_/usr/src/modules/at76c503a] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-4-686' make: *** [modules] Error 2 C-8:/usr/src/modules/at76c503a# make clean rm -f core *.o *~ a.out *.d rm -f *.ko *.mod.c .*.cmd rm -f *.s *.i rm -rf .tmp_versions C-8:/usr/src/modules/at76c503a# make check make -C /lib/modules/2.6.18-4-686/build M=/usr/src/modules/at76c503a KERNELRELEASE=2.6.18-4-686 C=2 CF="-Wbitwise -Wcast-to-as -Wcontext -Wdefault-bitfield-sign -Wtransparent-union -Wptr-subtraction-blows -Wundef -Wdecl -Wone-bit-signed-bitfield -Wtypesign -D__CHECK_ENDIAN__" make[1]: Entering directory `/usr/src/linux-headers-2.6.18-4-686' LD /usr/src/modules/at76c503a/built-in.o CHECK /usr/src/modules/at76c503a/at76_usb.c /bin/sh: sparse: command not found make[2]: *** [/usr/src/modules/at76c503a/at76_usb.o] Error 127 make[1]: *** [_module_/usr/src/modules/at76c503a] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-4-686' make: *** [check] Error 2 C-8:/usr/src/modules/at76c503a# To note that I have successefully compiled the original sources from http://at76c503a.berlios.de (using version 0.14beta1). I'm using libc6 version 2.5-9+b1, gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21), GNU Make 3.81 on a Linux C-8 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 GNU/Linux. Best regards, Luís Picciochi