2009-05-05 02:52:19 compilation problem for a custom driver in uclinux kernel
svs k (INDIA)
I am using trunk distribution and toolchain. I am trying to compile a custom driver in uClinux kernel in which i have a c file crypt_md5.c. When this file is compiled, i get the following errors.
In file included from drivers/NEW_DRIVER/rtmp_def.h:43,
drivers/NEW_DRIVER/oid.h:821: error: expected identifier or â(â before numeric constant
drivers/NEW_DRIVER/oid.h:822: warning: no semicolon at end of struct or union
drivers/NEW_DRIVER/oid.h:880: error: expected identifier or â(â before numeric constant
drivers/NEW_DRIVER/oid.h:881: warning: no semicolon at end of struct or union
In file included from drivers/NEW_DRIVER/rt_config.h:52,
when i traced using the line numbers, i could find the errors are coming from various structures that has a member MODE (highlighted one). May i know why this member alone is creating errors? Because, i tried by renaming this member. That file is compiling. But i dont want to do so since i have many files that have many structures in which one member will be MODE. How to solve this without renaming?
USHORT MCS:7; // MCS
USHORT BW:1; //channel bandwidth 20MHz or 40 MHz
USHORT STBC:2; //SPACE
// USHORT rsv:3;
USHORT MODE:2; // -------------------------- line number 821
2009-05-05 02:56:02 Re: compilation problem for a custom driver in uclinux kernel
Mike Frysinger (UNITED STATES)
you already asked this question once. do not post the same question multiple times. if you have more information to add, follow up to your previous post.