2002-10-12 10:38:06

by Stig Brautaset

[permalink] [raw]
Subject: 2.5.42: unresolved symbols ext2

/usr/bin/make -f arch/i386/lib/Makefile modules_install
if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b /usr/src/linux/debian/tmp-image -r 2.5.42; fi
depmod: *** Unresolved symbols in /usr/src/linux/debian/tmp-image/lib/modules/2.5.42/kernel/fs/ext2/ext2.o
depmod: generic_file_aio_read
depmod: generic_file_aio_write
make[2]: *** [_modinst_post] Error 1
make[2]: Leaving directory `/usr/src/linux-2.5.x'
make[1]: *** [real_stamp_image] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.x'


Stig
--
brautaset.org


2002-10-12 10:44:12

by Stig Brautaset

[permalink] [raw]
Subject: Re: 2.5.42: unresolved symbols ext2

On Oct 12 2002, Stig wrote:
> /usr/bin/make -f arch/i386/lib/Makefile modules_install
> if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b /usr/src/linux/debian/tmp-image -r 2.5.42; fi
> depmod: *** Unresolved symbols in /usr/src/linux/debian/tmp-image/lib/modules/2.5.42/kernel/fs/ext2/ext2.o
> depmod: generic_file_aio_read
> depmod: generic_file_aio_write
> make[2]: *** [_modinst_post] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.5.x'
> make[1]: *** [real_stamp_image] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.5.x'

Oops, that was compiled with the debian make-kpkg tool. Here's the
output from vanilla make modules_install:

make -f arch/i386/lib/Makefile modules_install
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.5.42; fi
depmod: *** Unresolved symbols in /lib/modules/2.5.42/kernel/fs/ext2/ext2.o
depmod: generic_file_aio_read
depmod: generic_file_aio_write
make: *** [_modinst_post] Error 1

Sorry about that.


Stig
--
brautaset.org

2002-10-12 13:44:32

by Benjamin LaHaise

[permalink] [raw]
Subject: [PATCH] Re: 2.5.42: unresolved symbols ext2

On Sat, Oct 12, 2002 at 11:45:04AM +0100, Stig Brautaset wrote:
> Oops, that was compiled with the debian make-kpkg tool. Here's the
> output from vanilla make modules_install:

Whoops, looks like I missed a couple of exports. Please apply the patch
below that adds exports for generic_file_aio_{read,write}.

-ben

diff -urN v2.5.42/mm/filemap.c v2.5.42-syms/mm/filemap.c
--- v2.5.42/mm/filemap.c Sat Oct 12 09:42:35 2002
+++ v2.5.42-syms/mm/filemap.c Sat Oct 12 09:44:23 2002
@@ -893,6 +893,8 @@
return __generic_file_aio_read(iocb, &local_iov, 1, &iocb->ki_pos);
}

+EXPORT_SYMBOL(generic_file_aio_read);
+
ssize_t
generic_file_read(struct file *filp, char *buf, size_t count, loff_t *ppos)
{
@@ -1652,6 +1654,8 @@
return generic_file_write(iocb->ki_filp, buf, count, &iocb->ki_pos);
}

+EXPORT_SYMBOL(generic_file_aio_write);
+
ssize_t generic_file_write(struct file *file, const char *buf,
size_t count, loff_t *ppos)
{