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

From: Thorsten Glaser
Date: Sun Dec 18 2011 - 14:48:15 EST


Dixi quodâ

>I suspect gcc emitting a call to strFOO for __builtin_strFOO.

And indeed, it does; waldi just pointed me to the fact that the
Linux kernel, despite being a kernel and not a hosted environment,
does not use -ffreestanding in its CFLAGS. No surprise it does
that, then.

When I first upgraded from gcc 2.x to gcc 3.x in MirBSD, the kernel
inherited from OpenBSD had similar issues, and adding -ffreestanding
as should be fixed that.

So, please, compile the Linux kernel with -ffreestanding, too.

bye,
//mirabilos
--
In traditional syntax ' is ignored, but in c99 everything between two ' is
handled as character constant. Therefore you cannot use ' in a preproces-
sing file in c99 mode. -- Ragge
No faith left in ISO C99, undefined behaviour, etc.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/