Hello,

I have followed the procedure Ramesh described below.
Everything worked fine with Sun Studio 11 (except you need to use option -xarch=generic64 for 64-bit platform, instead of -m64).

For building with Sun Studio 12 compiler, I had to make a few changes.

1) Added  -m64  option to CFLAGS before -g in configure scripts. 
     Also, added the following to LDFLAGS definition in configure scripts:

LDFLAGS="$LDFLAGS -L/usr/lib/64 -L/usr/ucblib/sparcv9 -L${OPENSSL}/lib/64 -lpthread"

2) Compilation worked, but I got link errors about multiple definitions of some symbols.
ld: fatal: symbol 'guththila_namespace_list_free' is multiply-defined: (file  ../../../../../src/core/transport/http/common/.libs/libaxis2_http_common.a(guththila_namespace.o) type=FUNC; file ../../../../../src ...

To fix the above errors, I had to make another change in configure script in the main AXIS2C source direcotry.
I removed option -z allextract everywhere in this script.
For example,
old --->    whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
new --->    whole_archive_flag_spec='${wl}-z ${wl}defaultextract'
---
old --->    whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
new --->    whole_archive_flag_spec='-z defaultextract'

3) There was one more problem: src/core/transport/http/server/simple_axis2_server  didn't build, there were "undefined symbols" errors, so I had to remove  simple_axis2_server  from src/core/transport/http/server/Makefile.in.

After that, 'make' and 'make install'  completed without errors.

Thanks for your help.
Nadine


Inactive hide details for Nadine Shifman---04/29/2013 10:28:37 AM---Hi Ramesh, Alex, Thanks for your replies.Nadine Shifman---04/29/2013 10:28:37 AM---Hi Ramesh, Alex, Thanks for your replies.


    From:

Nadine Shifman/Person/World Bank

    To:

ramesh Gopal <fatuzorin2...@yahoo.com>, Alex Mantaut <alex.mant...@intraway.com>

    Cc:

"Apache AXIS C User List" <c-user@axis.apache.org>

    Date:

04/29/2013 10:28 AM

    Subject:

Re: Building Axis2C on Solaris 64-bit


458-8812   IMTTR   





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 <fatuzorin2...@yahoo.com>

    To:

Apache AXIS C User List <c-user@axis.apache.org>

    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 <alex.mant...@intraway.com>
To:
 Apache AXIS C User List <c-user@axis.apache.org>
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, <nshif...@worldbank.org> 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: c-user-unsubscr...@axis.apache.org For additional commands, e-mail: c-user-h...@axis.apache.org 



--

--

Mantaut Alex
Intraway Corp.

+54 (11) 6040-4000  
MSN:
 alex.mant...@intraway.com

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