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.ra...@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