[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#648996: linux-2.6: FTBFS [m68k] in modpost: "strlen" [iscsi_target_mod.ko] undefined! (and others)

On Wed, Nov 16, 2011 at 02:20:19PM -0600, Jonathan Nieder wrote:
> Thorsten Glaser wrote:
> > ERROR: "strlen" [drivers/target/iscsi/iscsi_target_mod.ko] undefined!
> > ERROR: "strcpy" [drivers/target/iscsi/iscsi_target_mod.ko] undefined!
> Hm, see also [1].  I guess there might be a useless use of strncat
> here.  I wonder if there's a way to ask GCC not to do this kind of
> magic when the functions that would entail calling are not available.
> [1] http://thread.gmane.org/gmane.linux.kernel/680193/focus=680351
> I don't see linux/string.h doing anything that could help us, but if
> it did, I guess something like the following might be needed, too.

<linux/string.h> includes <asm/string.h> which has the the inline
functions for m68k.

But there are no warnings in the log for use of these functions
without declarations.  So if <linux/string.h> is not included
already (indirectly), where are they declared?  I don't believe
the built-in string functions are automatically declared.


Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
                                                              - Albert Camus

Reply to: