Compile problem with ov511.c (Kernel 2.4.5)
gcc -D__KERNEL__ -I/home/greear/kernel/2.4/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include /home/greear/kernel/2.4/linux/include/linux/modversions.h -c -o ov511.o ov511.cov511.c: In function `ov511_read_proc':
ov511.c:340: `version' undeclared (first use in this function)
ov511.c:340: (Each undeclared identifier is reported only once
ov511.c:340: for each function it appears in.)
make[2]: *** [ov511.o] Error 1
make[2]: Leaving directory `/home/greear/kernel/2.4/linux/drivers/usb'
make[1]: *** [_modsubdir_usb] Error 2
make[1]: Leaving directory `/home/greear/kernel/2.4/linux/drivers'
make: *** [_mod_drivers] Error 2
Signature · 3 lines
Ben Greear <[email protected]> <[email protected]> President of Candela Technologies Inc http://www.candelatech.com ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
Quoted 11 lines · Ben Greear
gcc -D__KERNEL__ -I/home/greear/kernel/2.4/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include/home/greear/kernel/2.4/linux/include/linux/modversions.h-c -o ov511.oov511.cov511.c: In function `ov511_read_proc':
ov511.c:340: `version' undeclared (first use in this function)
ov511.c:340: (Each undeclared identifier is reported only once
ov511.c:340: for each function it appears in.)
make[2]: *** [ov511.o] Error 1
make[2]: Leaving directory `/home/greear/kernel/2.4/linux/drivers/usb'
make[1]: *** [_modsubdir_usb] Error 2
make[1]: Leaving directory `/home/greear/kernel/2.4/linux/drivers'
make: *** [_mod_drivers] Error 2
Try this patch:
http://boudicca.tux.org/hypermail/linux-kernel/2001week21/1010.html
Or use 2.4.5-ac*.
Erik
Signature · 5 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: [email protected] WWW: http://www-ict.its.tudelft.nl/~erik/