Issue Details (XML | Word | Printable)

Key: AXISCPP-265
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Adrian Dick
Reporter: Adrian Dick
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Axis-C++

SimpleAxisServer failing to build on Linux and AIX using ANT

Created: 15/Nov/04 02:06 PM   Updated: 01/Feb/05 10:48 PM
Return to search
Component/s: Build - ANT
Affects Version/s: current (nightly)
Fix Version/s: current (nightly)

Time Tracking:
Not Specified

Environment: ANT Build on Linux and AIX

Resolution Date: 16/Nov/04 01:18 PM


 Description  « Hide
The SimpleAxisServer is failing to build.

On Linux, the link is failing:
       [cc] /build/nw00_PA/obj/bin/libaxis_server.so: undefined reference to `dlerror'
       [cc] /build/nw00_PA/obj/bin/libaxis_server.so: undefined reference to `dlclose'
       [cc] /build/nw00_PA/obj/bin/libaxis_server.so: undefined reference to `dlopen'
       [cc] /build/nw00_PA/obj/bin/libaxis_server.so: undefined reference to `dlsym'


While on AIX, the compilation is failing:
       [cc] /usr/vacpp/exe/xlCentry -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX50 -D_AIX51 -D_IBMR2 -D_POWER -DENABLE_AXIS_EXCEPTION -DHAVE_CONFIG_H -DAIX -I/build/nw00_PA/src/ws-axis/c/include -q32 -qansialias -qnolm -qstaticinline -oSimpleAxisServer.o /build/nw00_PA/obj/src/server/simple_axis_server/SimpleAxisServer.cpp /tmp/xlcW0RHs.qa /tmp/xlcW1RHs.qb /dev/null SimpleAxisServer.lst /dev/null /tmp/xlcW2RHs.qc
       [cc] "/build/nw00_PA/obj/src/server/simple_axis_server/SimpleAxisServer.cpp", line 129.29: 1540-0256 (S) A parameter of type "unsigned long *" cannot be initialized with an expression of type "unsigned int *".
       [cc] "/build/nw00_PA/obj/src/server/simple_axis_server/SimpleAxisServer.cpp", line 129.29: 1540-1205 (I) The error occurred while converting to parameter 3 of "accept(int, sockaddr *, socklen_t *)".

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Adrian Dick added a comment - 15/Nov/04 02:08 PM
Linux fails, because libdl.so isn't automatically linked by the cc linker tasks when producing executables.
I shall add this to the syslibset for Linux

Adrian Dick added a comment - 16/Nov/04 01:14 PM
AIX is failing due to the "accept" method have different types than those of Linux. Using unsigned long rather than unsigned int.

I shall add an additional #if defined entry for the AIX platform.

Adrian Dick added a comment - 16/Nov/04 01:18 PM
Updates made to ANT scripts for Linux build failures.
Updates made to SimpleAxisServer.cpp for AIX compilation problem.

Fixes tested on Windows, Linux and AIX.

John Hawkins added a comment - 01/Feb/05 10:48 PM
Fixed.