Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 44985

Summary: Patch: ntfs.o contains unresolved symbols
Product: Gentoo Linux Reporter: Daniel Choong <hunky>
Component: [OLD] Core systemAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: RESOLVED TEST-REQUEST    
Severity: major CC: x86-kernel
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel Choong 2004-03-17 16:48:30 UTC
I recently emerged linux-2.4.22-gentoo-r7.
I compiled ntfs as a modules. At the end of make modules_install where it runs depmod -ae ....,
I get an unresolved symbols message with ntfs.o , the function was __mark_dirty

Reproducible: Always
Steps to Reproduce:
1. compile ntfs as a module, include debug and write functions
2. at the end of make modules_install you will see it
3. or just run depmod -a

Actual Results:  
Unresolved symbols with ntfs.o . I cannot reproduce the bug now because I think
I've found out what was missing.

Expected Results:  
nothing.

I saw from the following patch that

EXPORT_SYMBOL(__mark_dirty);

was missing from kernel/ksyms.c
I put it in and now it works.

At first I tried putting in

EXPORT_SYMBOL(end_buffer_io_sync);

but I got errors with that. I think it was exported somewhere else.

--- linux-2.4.25/kernel/ksyms.c	2004-02-18 14:36:32.000000000 +0100
+++ linux-2.4.25-ntfs/kernel/ksyms.c	2004-03-09 23:26:10.000000000 +0100
@@ -177,6 +177,8 @@
 EXPORT_SYMBOL(mark_buffer_dirty);
 EXPORT_SYMBOL(set_buffer_async_io); /* for reiserfs_writepage */
 EXPORT_SYMBOL(end_buffer_io_async);
+EXPORT_SYMBOL(end_buffer_io_sync);
+EXPORT_SYMBOL(__mark_dirty);
 EXPORT_SYMBOL(__mark_buffer_dirty);
 EXPORT_SYMBOL(__mark_inode_dirty);
 EXPORT_SYMBOL(fd_install);
Comment 1 Bob Johnson (RETIRED) gentoo-dev 2004-03-26 19:45:20 UTC
Can you try latest gentoo-sources please