[linux-cifs-client] cifs 1.44 for older kernels
Steve French
smfrench at austin.rr.com
Fri Jun 16 16:59:57 GMT 2006
Juan José Villaplana Querol wrote:
>On Thu, Jun 15, 2006 at 06:00:23PM -0500, Steve French wrote:
>
>
>>Version 1.44 of the Linux cifs client (most current) has now been
>>backported for older kernels (although it has not been extensively
>>tested - I have done simple tests of it on recent SuSE Workstation and
>>RHEL4 and tested that it builds on a recent FC)
>>
>>Testing feedback etc. welcome
>>
>>
>
>Hi Steve,
>
>
>I tried to compile 1.44 on RHEL4 U3 (kernel 2.6.9-34.0.1.EL) and got
>the same error as with 1.42b (*):
>
>------------------------------------------------------------------------
>$ make M=/tmp/cifs/cifs-for-older-kernels/fs/cifs/
> LD /tmp/cifs/cifs-for-older-kernels/fs/cifs/built-in.o
> CC [M] /tmp/cifs/cifs-for-older-kernels/fs/cifs/cifsfs.o
>In file included from /tmp/cifs/cifs-for-older-kernels/fs/cifs/cifsfs.c:40:
>/tmp/cifs/cifs-for-older-kernels/fs/cifs/cifsproto.h:359: error: conflicting types for 'kzalloc'
>include/linux/slab.h:101: error: previous declaration of 'kzalloc' was here
>/tmp/cifs/cifs-for-older-kernels/fs/cifs/cifsproto.h:359: error: conflicting types for 'kzalloc'
>include/linux/slab.h:101: error: previous declaration of 'kzalloc' was here
>make[1]: *** [/tmp/cifs/cifs-for-older-kernels/fs/cifs/cifsfs.o] Error 1
>make: *** [_module_/tmp/cifs/cifs-for-older-kernels/fs/cifs] Error 2
>------------------------------------------------------------------------
>
>Applying the proposed patch for 1.42b solves this problem.
>
>
>Regards,
> Juanjo
>
>(*) http://lists.samba.org/archive/linux-cifs-client/2006-May/001345.html
>
>
>
Thanks - Yesterday I had been looking for the previous posts about build
problems to make sure I had addressed them - and had missed yours.
This build problem is tricky to fix because RHEL4 did not define kzalloc
in slab.h in 2.6.9-5 and 2.6.9-6 (which I was testing on) so we need to
find another way to tell if kzalloc is defined (I don't know which
refresh of the RHEL 4 headers added the #define). I would like to make
sure this builds cleanly (no warnings) on all the RHEL4s because it is a
fairly important upgrade.
More information about the linux-cifs-client
mailing list