Re: Small issue building LKM in latest 3.7 kernel

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

 



On 02/19/13 20:21, Ajith Adapa wrote:
> Hi,
> 
> I am not sure if this is the right place to ask the doubt or not but
> since I got this issue building LKM i am dropping a maile down here
> sorry for inconvenience caused.
> 
> I am trying to build private LKM on latest 3.7 kernel using GCC 4.7.2.
> 
> /usr/bin/gcc -M -g -O2 -DMODULE -D__KERNEL__ -DLINUX
> -fno-strict-aliasing -fno-common -ffreestanding -O2 -m32
> -fomit-frame-pointer -g -pipe -msoft-float
> -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686
> -mtune=pentium4 -mregparm=3 -I/lib/modules/3.7.6.1.i686/source/include
> -I/lib/modules/3.7.6.1.i686/source/arch/x86/include
> -I/lib/modules/3.7.6.1.i686/source/include
> -I/lib/modules/3.7.6.1.i686/source/include2
> -I/lib/modules/3.7.6.1.i686/source/include/asm/mach-default
> -I/lib/modules/3.7.6.1.i686/source/include2/asm/mach-default
> -I/lib/modules/3.7.6.1.i686/source/include/uapi
> -I/lib/modules/3.7.6.1.i686/source/include/linux/kconfig.h
> -I/lib/modules/3.7.6.1.i686/source/include/generated/uapi
> -I/lib/modules/3.7.6.1.i686/source/arch/x86/include/generated/uapi
> -m32 tmp/l2.c
> 
> I get the following error as shown below
> 
> In file included from /home/linux-26/include/net/net_namespace.h:13:0,
>                  from /home/linux-26/include/linux/netdevice.h:43,
>                  from tmp/l2.c:26:
> /home/linux-26/include/net/netns/mib.h:15:15: error: missing binary
> operator before token "("
> In file included from /home/linux-26/include/net/net_namespace.h:17:0,
>                  from /home/linux-26/include/linux/netdevice.h:43,
>                  from tmp/l2.c:26:
> /home/linux-26/include/net/netns/ipv6.h:75:15: error: missing binary
> operator before token "("
> 
> Any idea about the issue ?? Even I include uapi directory properly in
> the command.

Does your module source file
#include <linux/kconfig.h>
?
It probably needs to #include that file.



-- 
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux