You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Dimuthu Gamage (JIRA)" <ji...@apache.org> on 2008/07/05 07:52:49 UTC

[jira] Commented: (AXIS2C-1207) Compile errors: 'AXIS2_HASH_STRING' and 'i' are undeclared in WSDL2C generated code

    [ https://issues.apache.org/jira/browse/AXIS2C-1207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610678#action_12610678 ] 

Dimuthu Gamage commented on AXIS2C-1207:
----------------------------------------

That was a bug in handling Qname inside simple content extension which may not have tested before. Anyway the type AttributedQNameType which cause this problem is never used by your wsdl. So you are safety continue the work declaring them manually. 
I fixed the bug in the SVN, so you may try the svn or the nightly build -http://people.apache.org/dist/axis2/nightly/- (when it is available)

Thanks
Dimuthu

> Compile errors: 'AXIS2_HASH_STRING' and 'i' are undeclared in WSDL2C generated code
> -----------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1207
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1207
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>    Affects Versions: 1.4.0
>         Environment: Linux
>            Reporter: Karolina Sarnowska
>            Assignee: Milinda Lakmal Pathirage
>            Priority: Minor
>         Attachments: wsdlFiles.tar
>
>
> In using the build script to compile WSDL2C generated code, there are errors because of undeclared variables in the code:
>   'i' and 'AXIS2_HASH_STRING'
>   
> I resolved the first declaration issue by adding 'int i' declarations as needed.
> I resolved the second declaration issue by examining the code and realizing that the variable should be called AXIS2_HASH_KEY_STRING instead of AXIS2_HASH_STRING.
> After making these changes, the WSDL2C generated code compiles without errors using the build script.
> I used the WSDL2C tool with the following parameters:
> ./WSDL2C.sh -uri RNS.wsdl -u -ss -sd -o RNS_Service_Code -d adb
> The compilation errors:
> > ./build.src
> src/adb_AttributedQNameType.c: In function `adb_AttributedQNameType_serialize_to_string': src/adb_AttributedQNameType.c:326: error: `AXIS2_HASH_STRING' undeclared (first use in this function) src/adb_AttributedQNameType.c:326: error: (Each undeclared identifier is reported only once src/adb_AttributedQNameType.c:326: error: for each function it appears in.)
> src/adb_AttributedQNameType.c: In function `adb_AttributedQNameType_serialize': src/adb_AttributedQNameType.c:390: error: `i' undeclared (first use in this function)
> src/adb_AttributedUnsignedLongType.c: In function `adb_AttributedUnsignedLongType_serialize': src/adb_AttributedUnsignedLongType.c:307: error: `i' undeclared (first use in this function) src/adb_AttributedUnsignedLongType.c:307: error: (Each undeclared identifier is reported only once src/adb_AttributedUnsignedLongType.c:307: error: for each function it appears in.)
> src/adb_AttributedURIType.c: In function `adb_AttributedURIType_serialize': src/adb_AttributedURIType.c:305: error: `i' undeclared (first use in this function) src/adb_AttributedURIType.c:305: error: (Each undeclared identifier is reported only once src/adb_AttributedURIType.c:305: error: for each function it appears in.)
> src/adb_RelatesToType.c: In function `adb_RelatesToType_serialize': src/adb_RelatesToType.c:382: error: `i' undeclared (first use in this function) src/adb_RelatesToType.c:382: error: (Each undeclared identifier is reported only once src/adb_RelatesToType.c:382: error: for each function it appears in.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org