[linux-cifs-client] CIFS / Linux 2.4 and arm

Jean-Luc - OEL jaufranc at outline.com.hk
Fri Apr 13 05:05:23 GMT 2007


I have been trying to install CIFS client to linux 2.4.22 compile with 
arm-elf-gcc.

I have first tried with cifs-1.20c.tar.bz2 + cifs24.patch. It didn't 
work because of the pragma pack directive, so I update the header files 
with __attribute__(packed), but it complained about illegal size at the 
seconds message.

Finally, I decided to try the svn branch 
linux-converged-for-old-kernels, copied Makefile-24 to Makefile. But 
when it compiles it will returns a couple of errors:

arm-elf-gcc -D__KERNEL__ 
-I/home/jaufranc/edev/NMP/os/sigmadesigns/armutils_2.5.113.0/build_arm/linux-2.4.22-em86xx/include 
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing 
-fno-common -fno-common -pipe -fno-builtin -D__linux__ -DNO_MM -mapcs-32 
-march=armv4 -mtune=arm7tdmi -mshort-load-bytes -msoft-float   -nostdinc 
-iwithprefix include -DKBUILD_BASENAME=inode  -c -o inode.o inode.c
inode.c: In function `cifs_get_inode_info_unix':
inode.c:97: `S_NOCMTIME' undeclared (first use in this function)
inode.c:97: (Each undeclared identifier is reported only once
inode.c:97: for each function it appears in.)
inode.c:149: structure has no member named `i_lock'
inode.c:181: warning: assignment discards qualifiers from pointer target 
type
inode.c:183: warning: assignment discards qualifiers from pointer target 
type
inode.c:185: warning: assignment discards qualifiers from pointer target 
type
inode.c:187: warning: assignment discards qualifiers from pointer target 
type
inode.c:189: warning: assignment discards qualifiers from pointer target 
type
inode.c:199: warning: assignment discards qualifiers from pointer target 
type
inode.c: In function `cifs_get_inode_info':
inode.c:433: `S_NOCMTIME' undeclared (first use in this function)
inode.c:460: request for member `tv_sec' in something not a structure or 
union
inode.c:461: request for member `tv_sec' in something not a structure or 
union
inode.c:505: structure has no member named `i_lock'
inode.c:539: warning: assignment discards qualifiers from pointer target 
type
inode.c:541: warning: assignment discards qualifiers from pointer target 
type
inode.c:543: warning: assignment discards qualifiers from pointer target 
type
inode.c:545: warning: assignment discards qualifiers from pointer target 
type
inode.c:547: warning: assignment discards qualifiers from pointer target 
type
inode.c:556: warning: assignment discards qualifiers from pointer target 
type
inode.c: In function `cifs_rmdir':
inode.c:846: structure has no member named `i_lock'
inode.c: In function `cifs_vmtruncate':
inode.c:1157: structure has no member named `i_lock'
inode.c:1164: warning: implicit declaration of function `IS_SWAPFILE'
inode.c:1170: warning: implicit declaration of function 
`unmap_mapping_range'
inode.c:1175: structure has no member named `signal'
inode.c:1155: warning: `limit' might be used uninitialized in this function
etc...


I have also tried to apply the following patch 
http://lists.samba.org/archive/linux-cifs-client/2006-July/001427.html 
but I do not seem to find the correct source tree.

What would be the best way to proceed to have CIFS for kernel 2.4 
compiled for arm-elf.

Best Regards,
Jean-Luc



More information about the linux-cifs-client mailing list