Skip to contentSkip to conversation

2.5.42: unresolved symbols ext2

DISCUSSION Stig Brautaset 2 participants 2 messages Oct 12, 2002 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 9 lines · Stig

/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

Signature · 1 line
brautaset.org
#2 lore raw
Quoted 2 lines · Stig Brautaset

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

mm/filemap.c +4 -0
diff -urN v2.5.42/mm/filemap.c v2.5.42-syms/mm/filemap.c
@@ -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)
 {