Can't compile ntfs modules with 2.4.9
Hello,
compiling linux-2.4.9 I get:
gcc -D__KERNEL__ -I/usr/src_mousehomenet/linux-2.4.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -DMODULE -DMODVERSIONS -include /usr/src_mousehomenet/linux-2.4.9/include/linux/modversions.h -DNTFS_VERSION=\"1.1.16\" -c -o unistr.o unistr.cunistr.c: In function `ntfs_collate_names':
unistr.c:99: warning: implicit declaration of function min' unistr.c:99: parse error before unsigned'
unistr.c:99: parse error before `)'
unistr.c:97: warning: `c1' might be used uninitialized in this function unistr.c: At top level:
unistr.c:118: parse error before `if'
unistr.c:123: warning: type defaults to int' in declaration of c1' unistr.c:123: name1' undeclared here (not in a function) unistr.c:123: warning: data definition has no type or storage class unistr.c:124: parse error before if'
make[2]: *** [unistr.o] Error 1
Is there any help?
With best regards
Juergen
Quoted 2 lines
unistr.c: In function `ntfs_collate_names':
unistr.c:99: warning: implicit declaration of function `min'
edit unistr.c, go to line 98. insert the following lines:
#undef min
#define min(a,b) (a<b?a:b)
The correct solution is to edit fs/ntfs/unistr.c and to add:
#include <linux/kernel.h>
to the other includes at the top of the file.
Anton
Signature · 5 lines
"Nothing succeeds like success." - Alexandre Dumas -- Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @) Linux NTFS Maintainer / WWW: http://linux-ntfs.sf.net/ ICQ: 8561279 / WWW: http://www-stu.christs.cam.ac.uk/~aia21/