You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Chinmoy Bhattacharjee <ch...@gmail.com> on 2006/09/26 16:46:38 UTC

Re: Axis C on Solaris 9 - Compilation Problems

>
> Hi,
>
> We are facing problems building Axis on Solaris. We tried with the ant
> version - and both CC and g++ compilers.
>
> This is the error we are getting :-
>
>        [cc] "/data/axis/axis-c-1.6b-Linux-trace-src/src/soap/SoapSerializer.cpp",
> line 535: Warning: String literal converted to char* in formal argument
> pcKey in call to axiscpp::SOAPTransport::deleteTransportProperty(char*,
> unsigned).
>        [cc] 1 Warning(s) detected.
>        [cc] "/data/axis/axis-c-1.6b-Linux-trace-src/src/soap/SoapDeSerializer.cpp",
> line 5426: Error: Cannot use const char* to initialize char*.
>        [cc] "/data/axis/axis- c-1.6b-Linux-trace-src/src/soap/SoapDeSerializer.cpp",
> line 5427: Error: Cannot use const char* to initialize char*.
>        [cc] "/data/axis/axis-c-1.6b-Linux-trace-src/src/soap/SoapDeSerializer.cpp",
> line 5434: Error: Cannot use const char* to initialize char*.
>        [cc] "/data/axis/axis-c-1.6b-Linux-trace-src/src/soap/SoapDeSerializer.cpp",
> line 5435: Error: Cannot use const char* to initialize char*.
>        [cc] 4 Error(s) detected.
>
> Modifying the code helps go by this issue. But it fails to compile the
> Apache2Transport.cpp file.
>
> compileApache20Module:
>
> buildVersionResource:
>        [cc] 3 total files to be compiled.
>        [cc] "/data/axis/axis-c-1.6b-Linux-trace-src/src/server/apache2/Apache2Transport.cpp",
> line 181: Error: The function "ap_table_set" must have a prototype.
>        [cc] "/data/axis/axis-c-1.6b-Linux-trace-src/src/server/apache2/Apache2Transport.cpp",
> line 478: Error: The function "ap_table_elts" must have a prototype.
>        [cc] "/data/axis/axis- c-1.6b-Linux-trace-src/src/server/apache2/Apache2Transport.cpp",
> line 478: Error: The function "ap_table_elts" must have a prototype.
>        [cc] "/data/axis/axis-c-1.6b-Linux-trace-src/src/server/apache2/Apache2Transport.cpp",
> line 486: Error: The function "ap_table_elts" must have a prototype.
>        [cc] 4 Error(s) detected.
>        [cc] /data/axis/axis-c-1.6b-Linux-trace-src
> /src/server/apache2/AttachmentHelper.cpp:
>        [cc] /data/axis/axis-c-1.6b-Linux-trace-src/src/server/apache2/Apache2Transport.cpp:
>
>        [cc] /data/axis/axis-c-1.6b-Linux-trace-src
> /src/server/apache2/mod_axis2.cpp:
>
>     BUILD FAILED
>     /data/axis/axis-c-1.6b-Linux-trace-src/build.xml:226: The following
> error occurred while executing this line:
>     /data/axis/axis- c-1.6b-Linux-trace-src/build.xml:218: The following
> error occurred while executing this line:
>     /data/axis/axis-c-1.6b-Linux-trace-src/build.xml:121: The following
> error occurred while executing this line:
>     /data/axis/axis- c-1.6b-Linux-trace-src/build/buildApache20Module.xml:27:
> CC failed with return code 4
>
>
>
>
> Appreciate any help in this regard.
>
> Thanks,
> Chinmoy
>
>
>