I am having a problem I do not understand. I have linux 184.108.40.206 as the
guest and gcc 4.2.1.
If I compile a kernel driver inside the UML tree using memcpy and including
<linux/string.h> I have no problem. It works.
But I have an SDK which is outside the UML tree and If I try to build a
library that is going to be linked to a kernel module
I got this error.
error: 'memcpy' undeclared here (not in a function)
So I had to get the CFLAGS and includes manually and put them into the
The funny part is that in the .d file I see the dependency correctly but
somehow it is not picking memcpy or even memset:
So what could I have wrong. My includes as a reference are:
and my flags are:
-D__KERNEL__ -Iinclude -Os -D__arch_um__ -DSUBARCH=\"i386\"
-fsigned-char -msoft-float -pipe \
-mpreferred-stack-boundary=2 -ffreestanding -D_LARGEFILE64_SOURCE \
-fno-omit-frame-pointer -fno-optimize-sibling-calls -g \
-include $(SW)/kernel/kobjs/include/linux/autoconf.h -DMODULE
thanks for any input.