2002-04-16 13:50:29

by James Bourne

[permalink] [raw]
Subject: linux-2.4.19-pre7: undefined reference to `page_cache_release'

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
http://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.
******************************************************************************


Attachments:
2.4.19-ldm.patch (293.00 B)
Patch
dell-4600-2.4.19-config (16.74 kB)
.config file
Download all attachments

2002-04-16 13:59:07

by Anton Altaparmakov

[permalink] [raw]
Subject: Re: linux-2.4.19-pre7: undefined reference to `page_cache_release'

Hi James,

I have already submitted a patch to fix this earlier today... and in fact
it is identical to yours. (-:

Cheers,

Anton

At 14:50 16/04/02, James Bourne wrote:
>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

--
"I've not lost my mind. It's backed up on tape somewhere." - Unknown
--
Anton Altaparmakov <aia21 at cantab.net> (replace at with @)
Linux NTFS Maintainer / IRC: #ntfs on irc.openprojects.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/