[Galaxy S 4 General] Mnt-XDA:
Hi Sachin,

I am currently getting the following error during cm10.2 build with latest intervigilium's tree

Error is related to to irda.c -- I already used your header irda.h ,

Also added a new "struct " in irda.c file to fix undefined struct ...

still getting this error ....

=================================

struct irda_device_t {

struct hw_device_t common;

/*

* (*sendIrCode)() Send IR code

*

* [MENTION=955119]param[/MENTION] ircode is the code to send

* [MENTION=955119]param[/MENTION] length is the length of the code string

*

*/

void (*send_ircode)(char* ircode, int length);

};

=================================

BUILD ERROR LOG

=============================================================

target thumb C: irda.universal5410 <= device/samsung/i9500/irda/irda.c

device/samsung/i9500/irda/irda.c:31:15: error: variable 'irda_module_methods' has initializer but incomplete type

device/samsung/i9500/irda/irda.c:32:5: error: unknown field 'open' specified in initializer

device/samsung/i9500/irda/irda.c:32:13: error: 'open_irda' undeclared here (not in a function)

device/samsung/i9500/irda/irda.c:33:1: warning: excess elements in struct initializer [enabled by default]

device/samsung/i9500/irda/irda.c:33:1: warning: (near initialization for 'irda_module_methods') [enabled by default]

device/samsung/i9500/irda/irda.c:36:8: error: variable 'HAL_MODULE_INFO_SYM' has initializer but incomplete type

device/samsung/i9500/irda/irda.c:37:5: error: unknown field 'tag' specified in initializer

device/samsung/i9500/irda/irda.c:37:12: error: 'HARDWARE_MODULE_TAG' undeclared here (not in a function)

device/samsung/i9500/irda/irda.c:37:5: warning: excess elements in struct initializer [enabled by default]

device/samsung/i9500/irda/irda.c:37:5: warning: (near initialization for 'HAL_MODULE_INFO_SYM') [enabled by default]

device/samsung/i9500/irda/irda.c:38:5: error: unknown field 'module_api_version' specified in initializer

device/samsung/i9500/irda/irda.c:38:5: warning: excess elements in struct initializer [enabled by default]

device/samsung/i9500/irda/irda.c:38:5: warning: (near initialization for 'HAL_MODULE_INFO_SYM') [enabled by default]

device/samsung/i9500/irda/irda.c:39:5: error: unknown field 'hal_api_version' specified in initializer

device/samsung/i9500/irda/irda.c:39:5: warning: excess elements in struct initializer [enabled by default]

device/samsung/i9500/irda/irda.c:39:5: warning: (near initialization for 'HAL_MODULE_INFO_SYM') [enabled by default]

device/samsung/i9500/irda/irda.c:40:5: error: unknown field 'id' specified in initializer

device/samsung/i9500/irda/irda.c:40:11: error: 'IRDA_HARDWARE_MODULE_ID' undeclared here (not in a function)

device/samsung/i9500/irda/irda.c:40:5: warning: excess elements in struct initializer [enabled by default]

device/samsung/i9500/irda/irda.c:40:5: warning: (near initialization for 'HAL_MODULE_INFO_SYM') [enabled by default]

device/samsung/i9500/irda/irda.c:41:5: error: unknown field 'name' specified in initializer

device/samsung/i9500/irda/irda.c:41:5: warning: excess elements in struct initializer [enabled by default]

device/samsung/i9500/irda/irda.c:41:5: warning: (near initialization for 'HAL_MODULE_INFO_SYM') [enabled by default]

device/samsung/i9500/irda/irda.c:42:5: error: unknown field 'author' specified in initializer

device/samsung/i9500/irda/irda.c:42:5: warning: excess elements in struct initializer [enabled by default]

device/samsung/i9500/irda/irda.c:42:5: warning: (near initialization for 'HAL_MODULE_INFO_SYM') [enabled by default]

device/samsung/i9500/irda/irda.c:43:5: error: unknown field 'methods' specified in initializer

device/samsung/i9500/irda/irda.c:43:5: warning: excess elements in struct initializer [enabled by default]

device/samsung/i9500/irda/irda.c:43:5: warning: (near initialization for 'HAL_MODULE_INFO_SYM') [enabled by default]

device/samsung/i9500/irda/irda.c:47:24: error: field 'common' has incomplete type

device/samsung/i9500/irda/irda.c: In function 'open_irda':

device/samsung/i9500/irda/irda.c:75:23: error: 'HARDWARE_DEVICE_TAG' undeclared (first use in this function)

device/samsung/i9500/irda/irda.c:75:23: note: each undeclared identifier is reported only once for each function it appears in

make: *** [/google/output/cm10.2/target/product/i9500/obj/SHARED_LIBRARIES/irda.universal5410_intermediates/irda.o] Error 1

make: *** Waiting for unfinished jobs....

======================================================================

Can you please have a look ?