I am trying to compile the complete OpenWSN firmware as a Python extension module. I got the below errors

Description

In file included from build/python_gcc/drivers/common/openserial_obj_obj.c:34:0:
build/python_gcc/bsp/boards/uart_obj.h:52:9: note: declared here
uint8_t uart_readByte(OpenMote* self);
^
build/python_gcc/drivers/common/openserial_obj_obj.c:581:24: error: expected identifier before ‘(’ token
inputBufFill=(self->(self->openserial_vars)).inputBufFill;
^
build/python_gcc/drivers/common/openserial_obj_obj.c:584:24: error: expected identifier before ‘(’ token
(self->(self->openserial_vars)).busyReceiving==FALSE &&
^
build/python_gcc/drivers/common/openserial_obj_obj.c:585:24: error: expected identifier before ‘(’ token
(self->(self->openserial_vars)).lastRxByte==HDLC_FLAG &&
^
build/python_gcc/drivers/common/openserial_obj_obj.c:591:14: error: expected identifier before ‘(’ token
(self->(self->openserial_vars)).busyReceiving = TRUE;
^
build/python_gcc/drivers/common/openserial_obj_obj.c:599:24: error: expected identifier before ‘(’ token
(self->(self->openserial_vars)).busyReceiving==TRUE &&
^
build/python_gcc/drivers/common/openserial_obj_obj.c:606:18: error: expected identifier before ‘(’ token
if ((self->(self->openserial_vars)).inputBufFill+1>SERIAL_INPUT_BUFFER_SIZE){
^
build/python_gcc/drivers/common/openserial_obj_obj.c:611:17: error: expected identifier before ‘(’ token
(self->(self->openserial_vars)).inputBufFill = 0;
^
build/python_gcc/drivers/common/openserial_obj_obj.c:612:17: error: expected identifier before ‘(’ token
(self->(self->openserial_vars)).busyReceiving = FALSE;
^
build/python_gcc/drivers/common/openserial_obj_obj.c:616:24: error: expected identifier before ‘(’ token
(self->(self->openserial_vars)).busyReceiving==TRUE &&
^
build/python_gcc/drivers/common/openserial_obj_obj.c:624:21: error: expected identifier before ‘(’ token
if ((self->(self->openserial_vars)).inputBufFill==0){
^
build/python_gcc/drivers/common/openserial_obj_obj.c:632:17: error: expected identifier before ‘(’ token
(self->(self->openserial_vars)).busyReceiving = FALSE;
^
build/python_gcc/drivers/common/openserial_obj_obj.c:636:11: error: expected identifier before ‘(’ token
(self->(self->openserial_vars)).lastRxByte = rxbyte;
^
build/python_gcc/drivers/common/openserial_obj_obj.c: At top level:
build/python_gcc/drivers/common/openserial_obj_obj.c:641:48: error: redefinition of parameter ‘self’
void openserial_echo(OpenMote* self, OpenMote* self, uint8_t* buf, uint8_t bufLen){
^
build/python_gcc/drivers/common/openserial_obj_obj.c:641:32: note: previous definition of ‘self’ was here
void openserial_echo(OpenMote* self, OpenMote* self, uint8_t* buf, uint8_t bufLen){
^
build/python_gcc/drivers/common/openserial_obj_obj.c:641:6: error: conflicting types for ‘openserial_echo’
void openserial_echo(OpenMote* self, OpenMote* self, uint8_t* buf, uint8_t bufLen){
^
In file included from bsp/boards/python/openwsnmodule_obj.h:14:0,
from build/python_gcc/inc/opendefs_obj.h:312,
from build/python_gcc/drivers/common/openserial_obj_obj.c:23:
build/python_gcc/drivers/common/openserial_obj.h:113:6: note: previous declaration of ‘openserial_echo’ was here
void openserial_echo(OpenMote* self, uint8_t* but, uint8_t bufLen);
^
build/python_gcc/drivers/common/openserial_obj_obj.c: In function ‘openserial_echo’:
build/python_gcc/drivers/common/openserial_obj_obj.c:650:12: error: expected identifier before ‘(’ token
(self->(self->openserial_vars)).inputBufFill = 0;
^
scons: *** [build/python_gcc/drivers/common/openserial_obj_obj.o] Error 1
scons: building terminated because of errors.

Environment

UBUNTU 13.10

Assignee

Unassigned

Reporter

Adarsh BU

Labels

None

Story Points

None

Priority

Critical
Configure