[prev in list] [next in list] [prev in thread] [next in thread] 

List:       moblin-dev
Subject:    Re: [Moblin Dev] issues in compiling kernel module
From:       sandip sitapara <s13884neo () gmail ! com>
Date:       2010-07-16 19:55:31
Message-ID: AANLkTimZTJjt2S1GARLcuE_mbHlrVMHfTBGtIfqm74Bz () mail ! gmail ! com
[Download RAW message or body]

Hello,

I think, it's just a header problem. May be it's unable to find the header
file properly. check your include path is defined properly.

-S
On Sat, Jul 17, 2010 at 12:11 AM, Rathi, Somya <somya.rathi@intel.com>wrote:

> Hi,
>
>
>
> I am trying to compile the driver for the CAN104 and getting the following
> errors. I am using kernel-ivi-2.6.31.6-44.1.moblin2.i586.rpm and
> kernel-ivi-devel-2.6.31.6-4.1.moblin2.i586.rpm available on this website -
> http://repo.moblin.org/moblin/development/72ffd2357b99aadec1b4e7e8b358e45c/core/ia32/os/i586/
>
>
>
> Error:
>
>
>
> compile with KDIR=/lib/modules/2.6.31.6-44.1.moblin2-ivi/build/
>
> make    -C /lib/modules/2.6.31.6-44.1.moblin2-ivi/build/
> M=/home/moblin/xyz/can104-102/can4linux-3.5.2 TARGET=CAN104 modules
>
> make[1]: Entering directory `/usr/src/kernels/2.6.31.6-44.1.moblin2-ivi'
>
>  CC [M]  /home/moblin/xyz/can104-102/can4linux-3.5.2/core.o
>
> In file included from include/linux/init.h:4,
>
>                 from /home/moblin/ xyz
> /can104-102/can4linux-3.5.2/core.c:231:
>
> include/linux/compiler.h:58: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'struct'
>
> /home/moblin/ xyz /can104-102/can4linux-3.5.2/core.c: In function
> 'can_init':
>
> /home/moblin/xyz/can104-102/can4linux-3.5.2/core.c:486: warning: label
> 'out_class' defined but not used
>
> make[2]: *** [/home/moblin/xyz/can104-102/can4linux-3.5.2/core.o] Error 1
>
> make[1]: *** [_module_/home/moblin/xyz/can104-102/can4linux-3.5.2] Error 2
>
> make[1]: Leaving directory `/usr/src/kernels/2.6.31.6-44.1.moblin2-ivi'
>
> make: *** [all] Error 2
>
>
>
>
>
> I am using gcc version 4.3.2 [gcc-4_3-branch revision 141291] (Moblin
> Linux).  Kernel version is :  ivi-2.6.31.6-17.1. Is there a bug in kernel
> src?
>
>
>
> Thanks,
>
>
>
> -Somya
>
> _______________________________________________
> Moblin dev Mailing List
> dev@moblin.org
>
> To manage or unsubscribe from this mailing list visit:
> http://lists.moblin.org/listinfo/dev or your user account on
> http://moblin.org once logged in.
>
> For more information on the Moblin Developer Mailing lists visit:
> http://moblin.org/community/mailing-lists
>
_______________________________________________
Moblin dev Mailing List
dev@moblin.org

To manage or unsubscribe from this mailing list visit:
http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic