Hi.

When I build 2.4.16 kernel with jfs-1.0.11, I've got the following error.
Please let me know how to solve this.

fs/fs.o(.text.lock+0xb2a): undefined reference to `local symbols in 
discarded section .text.exit'
fs/fs.o(.text.lock+0xb34): undefined reference to `local symbols in 
discarded section .text.exit'
fs/fs.o(.text.lock+0xb3e): undefined reference to `local symbols in 
discarded section .text.exit'
fs/fs.o: In function `init_jfs_fs':
fs/fs.o(.text.init+0x10d4): undefined reference to `txExit'
fs/fs.o(.text.init+0x10d9): undefined reference to `metapage_exit'
make: *** [vmlinux] Error 1

The missing function are declared as

        void __exit txExit(void)
        void __exit metapage_exit(void)

For example jfs_metapage.c compilation command is

        gcc -D__KERNEL__ -I/usr/src/linux-2.4.16/include -Wall 
-Wstrict-prototypes
        -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing 
-fno-common
        -pipe -mpreferred-stack-boundary=2 -march=i686  -D_JFS_4K  -c
        -o jfs_metapage.o jfs_metapage.c

When I inspect jfs_metapage.o, I've got following

        % nm jfs_metapage.o | fgrep metapage_exit
        00000000 T metapage_exit

The linux distribution is Debian woody and gcc version is 2.95.4.


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Toshinao Ishii  mailto: [EMAIL PROTECTED]
Advanced Technology R&D Center, Mitsubishi Electric Corp.

_______________________________________________
Jfs-discussion mailing list
[EMAIL PROTECTED]
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jfs-discussion

Reply via email to