On Feb 19, 2008 5:56 AM, Jirka Matela <[EMAIL PROTECTED]> wrote: > Hi, > > I can't get compiled 1.4.6 against linux-2.6.24.2. It always crashes when > it > gets to: > > src/libafs/MODLOAD-2.6.24.2-SP/osi_vnodeops.c: In function > 'afs_linux_read': > src/libafs/MODLOAD-2.6.24.2-SP/osi_vnodeops.c:81: > error: implicit declaration of function 'generic_file_read' > > Really, there is no such function in 2.6.24.2. The do_sync_read should be > used > instead but it is not, since the configure script says: > > checking for linux do_sync_read()... no > > The checking routine in configure script fails because of wrong use of > CFLAGS, see: > > > http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.24.y.git;a=commit;h=0c53c8e6eb456cde30f2305421c605713856abc8 > > It should use EXTRA_CFLAGS instead of CFLAGS. With disabled checking for > CFLAGS misuse (commented out in scripts/Makefile.build) is checking for > do_sync_read() > positive and afs gets compiled. > > Jirka >
Hi, This is already fixed in the current source (post 1.4.6) as part of the fixes for 2.6.24. There's a new configure test to check if CFLAGS can be used, and if not, all subsequent kbuild tests use EXTRA_CFLAGS instead. Marc
