Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.4.0
-
None
-
None
-
Linux
Description
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.)