Re: undefined references

From: Valdis . Kletnieks
Date: Mon Jan 24 2005 - 21:09:41 EST


On Mon, 24 Jan 2005 19:04:53 EST, John Richard Moser said:

> fs/built-in.o(.text+0xe413): In function `link_path_walk':
> : undefined reference to `gr_inode_follow_link'
> fs/built-in.o(.text+0xe933): In function `link_path_walk':
> : undefined reference to `gr_inode_follow_link'
> fs/built-in.o(.text+0x10c28): In function `sys_link':
> : undefined reference to `gr_inode_hardlink'
> fs/built-in.o(.text+0x10c52): In function `sys_link':
> : undefined reference to `gr_inode_handle_create'
> make: *** [.tmp_vmlinux1] Error 1
>
> What would cause this kind of error?

link_path_walk() still has a reference to gr_inode_follow_link (the code
you probably want to move to an LSM exit), and sys_ling() still calls
gr_inode_hardlink() and gr_inode_handle_create() - but the actual functions
you're calling either don't exist anymore, or they didn't get compiled and linked
in. If those functions are supposed to exist, you need to get them into a .o.
If those are (as I suspect) becoming LSM exit hooks, then you need to clean up
the direct calls in link_path_walk() and sys_link().

Attachment: pgp00000.pgp
Description: PGP signature