Hi Ramesh, Alex,
Thanks for your replies.

Ramesh,
I have compiled the same source successfully in 32-bit, with Sun Studio 11 before.
Then, before attempting the build on 64-bit with Studio 12, I had added -m64 to CFLAGS (your step #4) in configure script, but after  -g flag, and some directories compiled fine.
With others, I had a few errors.  I have a feeling the errors may be related to differences in Studio 11 and Studio 12 compilers.
Also, I have not ran configure script with LIBS="-lsocket".  Why do we need to do this?

I will try to change configure and run it the way you did, and see if it makes a difference.

Thanks again.

Inactive hide details for ramesh Gopal ---04/26/2013 03:12:53 AM---I had done this sometime back, I created a document for myseramesh Gopal ---04/26/2013 03:12:53 AM---I had done this sometime back, I created a document for myself, hope you find it useful. COMPILING A


    From:

ramesh Gopal <[email protected]>

    To:

Apache AXIS C User List <[email protected]>

    Date:

04/26/2013 03:12 AM

    Subject:

Re: Building Axis2C on Solaris 64-bit


      







I had done this sometime back, I created a document for myself, hope you find it useful.

COMPILING AXIS2C ON Solaris 5.10 - 64 bit
----------------------------------------------------------

1) Copy the tar file to your directory

   For example:
       cp axis2c-src-1.5.0.tar /work/myfolder

2) Go to your directory and extract the tar file (axis2c-src-1.5.0.tar)  which has the axis2c source
   cd /path_to_your_directory
   tar -xvf axis2c-src-1.5.0.tar

   This will extract the source inside axis2c-src-1.5.0 (in the current directory,i.e,myfolder)

3) Create a directory and set this directory as AXIS2C_HOME

   For example:
       mkdir /work/myfolder/AXIS2C
       setenv AXIS2C_HOME /work/myfolder/AXIS2C

4) Go to the source directory(axis2c-src-1.5.0).
   cd /your_path_to_axis2c_source

   Add -m64 to CFLAGS before -g in the configure script in the axis2/c source.

   Make the same changes to the configure script in the following directories:
       a) axis2c-src-1.5.0/axiom
       b) axis2c-src-1.5.0/guththila
       c) axis2c-src-1.5.0/neethi
       d) axis2c-src-1.5.0/samples
       e) axis2c-src-1.5.0/util

5) Run configure as follows
       ./configure  LIBS="-lsocket"  --prefix=${AXIS2C_HOME}


6) Run 'make' from the source directory (axis2c-src-1.5.0)

7) To install the binaries, run 'make install' from the source directory (axis2c-src-1.5.0)

    For example:
       make install

      This step installs the axis2c binaries in ${AXIS2C_HOME}


COMPILING THE SAMPLES
--------------------------------------

1) Go to the samples directory inside the source directory (axis2c-src-1.5.0)

   cd samples


    set LD_LIBRARY_PATH as follows:
        setenv LD_LIBRARY_PATH /usr/local/lib/sparcv9:${AXIS2C_HOME}/lib

2) Run the configure script inside the samples directory as follows
       ./configure --prefix=${AXIS2C_HOME} --with-axis2=${AXIS2C_HOME}/include/
axis2-1.5.0

3) Run make (inside the samples directory). This will compile the samples


    For example:

       make


4) Run make install which installs the samples inside $AXIS2C_HOME/bin/samples/ directory.

   For example:
       make install



RUNNING THE AXIS2C SERVER
--------------------------------------------


1) Set the LD_LIBRARY_PATH as follows
       Set LD_LIBRARY_PATH to /usr/local/lib:${AXIS2C_HOME}/lib

2) Go to ${AXIS2C_HOME}/bin

    cd ${AXIS2C_HOME}/bin

   Start the server as follows

       ./axis2_http_server


    You should see the message

              Started Simple Axis2 HTTP Server...

3) Running the samples(to be run in a new shell)

       Set the LD_LIBRARY_PATH as follows

       Set LD_LIBRARY_PATH to /usr/local/lib:${AXIS2C_HOME}/lib

       Go to ${AXIS2C_HOME}/bin/samples

       cd ${AXIS2C_HOME}/bin/samples

       When the server is up and running, run the sample clients in a new shell as follows


         ./echo

        This will invoke echo service.


        ./math

        This will invoke math service.



Hope this helps ....

Ramesh.


From: Alex Mantaut <[email protected]>
To:
 Apache AXIS C User List <[email protected]>
Sent:
 Thursday, 25 April 2013 12:42 AM
Subject:
 Re: Building Axis2C on Solaris 64-bit

Hi Nadine,
                I never compiled Axis2C on Solaris 10 64 bit, but in 32 bit I managed to compile it without problems... Can you show which error message you've got?

Regards


On Tue, Apr 23, 2013 at 2:00 AM, <[email protected]> wrote:
    Hello,

    What needs to be modified in configure scripts to get Axis2C to build on Solaris 10,  64-bit?


    Thanks,
    Nadine

    --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] 



--

--

Mantaut Alex
Intraway Corp.

+54 (11) 6040-4000  
MSN:
 [email protected]

Visit our website at http://www.intraway.com
Proud to be an ISO 9001:2008 certified company




<<inline: graycol.gif>>

<<inline: ecblank.gif>>

Reply via email to