On Wed, 2010-09-08 at 08:57 +0000, swissz wrote:
> Hi!
>
> I tried to compile it on Ubuntu 9.10 x86_64 (gcc version 4.1.3), but the compiler complains:
> ---------------------
> user@localhost:~/Downloads/ricoh_driver/ricoh-kernel/memstick$ make
> make -C /lib/modules/2.6.31-22-generic/build M=/home/user/Downloads/ricoh_driver/ricoh-kernel/memstick
> make[1]: Entering directory `/usr/src/linux-headers-2.6.31-22-generic'
> /usr/src/linux-headers-2.6.31-22-generic/arch/x86/Makefile:80: stack protector enabled but no compiler support
> CC [M] /home/user/Downloads/ricoh_driver/ricoh-kernel/memstick/host/r592.o
> In file included from /home/user/Downloads/ricoh_driver/ricoh-kernel/memstick/host/r592.c:23:
> /home/user/Downloads/ricoh_driver/ricoh-kernel/memstick/host/r592.h:177:7: warning: no newline at end of file
> /home/user/Downloads/ricoh_driver/ricoh-kernel/memstick/host/r592.c:858: warning: data definition has no type or storage class
> /home/user/Downloads/ricoh_driver/ricoh-kernel/memstick/host/r592.c:858: warning: type defaults to ‘int’ in declaration of ‘SIMPLE_DEV_PM_OPS’
> /home/user/Downloads/ricoh_driver/ricoh-kernel/memstick/host/r592.c:858: warning: parameter names (without types) in function declaration
> /home/user/Downloads/ricoh_driver/ricoh-kernel/memstick/host/r592.c:869: error: ‘r592_pm_ops’ undeclared here (not in a function)
> make[3]: *** [/home/user/Downloads/ricoh_driver/ricoh-kernel/memstick/host/r592.o] Error 1
> make[2]: *** [/home/user/Downloads/ricoh_driver/ricoh-kernel/memstick/host] Error 2
> make[1]: *** [_module_/home/user/Downloads/ricoh_driver/ricoh-kernel/memstick] Error 2
> make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-22-generic'
> make: *** [build] Error 2
> ---------------------
Too old kernel (this supports 2.6.32+)
However I will add a compat code there.
The xD part I think should compile on 2.6.31.
On Wed, 2010-09-08 at 08:57 +0000, swissz wrote: ------- ------- ~/Downloads/ ricoh_driver/ ricoh-kernel/ memstick$ make 2.6.31- 22-generic/ build M=/home/ user/Downloads/ ricoh_driver/ ricoh-kernel/ memstick linux-headers- 2.6.31- 22-generic' linux-headers- 2.6.31- 22-generic/ arch/x86/ Makefile: 80: stack protector enabled but no compiler support Downloads/ ricoh_driver/ ricoh-kernel/ memstick/ host/r592. o Downloads/ ricoh_driver/ ricoh-kernel/ memstick/ host/r592. c:23: Downloads/ ricoh_driver/ ricoh-kernel/ memstick/ host/r592. h:177:7: warning: no newline at end of file Downloads/ ricoh_driver/ ricoh-kernel/ memstick/ host/r592. c:858: warning: data definition has no type or storage class Downloads/ ricoh_driver/ ricoh-kernel/ memstick/ host/r592. c:858: warning: type defaults to ‘int’ in declaration of ‘SIMPLE_DEV_PM_OPS’ Downloads/ ricoh_driver/ ricoh-kernel/ memstick/ host/r592. c:858: warning: parameter names (without types) in function declaration Downloads/ ricoh_driver/ ricoh-kernel/ memstick/ host/r592. c:869: error: ‘r592_pm_ops’ undeclared here (not in a function) user/Downloads/ ricoh_driver/ ricoh-kernel/ memstick/ host/r592. o] Error 1 user/Downloads/ ricoh_driver/ ricoh-kernel/ memstick/ host] Error 2 /home/user/ Downloads/ ricoh_driver/ ricoh-kernel/ memstick] Error 2 linux-headers- 2.6.31- 22-generic' ------- -------
> Hi!
>
> I tried to compile it on Ubuntu 9.10 x86_64 (gcc version 4.1.3), but the compiler complains:
> -------
> user@localhost:
> make -C /lib/modules/
> make[1]: Entering directory `/usr/src/
> /usr/src/
> CC [M] /home/user/
> In file included from /home/user/
> /home/user/
> /home/user/
> /home/user/
> /home/user/
> /home/user/
> make[3]: *** [/home/
> make[2]: *** [/home/
> make[1]: *** [_module_
> make[1]: Leaving directory `/usr/src/
> make: *** [build] Error 2
> -------
Too old kernel (this supports 2.6.32+)
However I will add a compat code there.
The xD part I think should compile on 2.6.31.
Best regards,
Maxim Levitsky