linux-2.4.19-pre7: undefined reference to `page_cache_release'

From: James Bourne (jbourne@MtRoyal.AB.CA)
Date: Tue Apr 16 2002 - 08:50:09 EST


Hi all,
When compiling 2.4.19-pre7 I am getting undefined reference to
`page_cache_release' errors on linking vmlinux:

make CFLAGS="-D__KERNEL__
-I/usr/src/linux/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-pipe -mpreferred-stack-boundary=2 -march=i686 " -C arch/i386/lib
make[1]: Entering directory /usr/src/linux/arch/i386/lib'
make all_targets
make[2]: Entering directory /usr/src/linux/arch/i386/lib'
make[2]: Nothing to be done for `all_targets'.
make[2]: Leaving directory /usr/src/linux/arch/i386/lib'
make[1]: Leaving directory /usr/src/linux/arch/i386/lib'
ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds
-e stext arch/i386/kernel/head.o
arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \
        --start-group \
 
 arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o
ipc/ipc.o \
         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o drivers/scsi/scsidrv.o
drivers/cdrom/driver.o
drivers/pci/driver.o drivers/video/video.o drivers/md/mddev.o \
        net/network.o \
        /usr/src/linux/arch/i386/lib/lib.a
/usr/src/linux/lib/lib.a /usr/src/linux/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
fs/fs.o: In function `create_data_partitions':
fs/fs.o(.text+0x2594d): undefined reference to `page_cache_release'
fs/fs.o(.text+0x25a05): undefined reference to `page_cache_release'
fs/fs.o: In function `get_disk_objid':
fs/fs.o(.text+0x25d63): undefined reference to `page_cache_release'
fs/fs.o(.text+0x25ddd): undefined reference to `page_cache_release'
fs/fs.o(.text+0x25e18): undefined reference to `page_cache_release'
fs/fs.o(.text+0x25ef6): more undefined references to `page_cache_release'
follow
make: *** [vmlinux] Error 1

The attached patch fixes this problem. Also included is my .config.

Regards,
James Bourne

-- 
James Bourne, Supervisor Data Centre Operations
Mount Royal College, Calgary, AB, CA
www.mtroyal.ab.ca

****************************************************************************** This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal, and or privileged information. Please contact the sender immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. ******************************************************************************



- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 23 2002 - 22:00:15 EST