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 "Milinda Lakmal Pathirage (JIRA)" <ji...@apache.org> on 2008/07/30 10:41:32 UTC

[jira] Resolved: (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:all-tabpanel ]

Milinda Lakmal Pathirage resolved AXIS2C-1207.
----------------------------------------------

       Resolution: Fixed
    Fix Version/s: Current (Nightly)

Bug was fixed in WSDL2C in Axis2/Java by 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
>             Fix For: Current (Nightly)
>
>         Attachments: skel_n_stub.tar, 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