Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 83446 invoked from network); 2 Mar 2009 09:44:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2009 09:44:32 -0000 Received: (qmail 37639 invoked by uid 500); 2 Mar 2009 09:44:31 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 37631 invoked by uid 500); 2 Mar 2009 09:44:31 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 37622 invoked by uid 99); 2 Mar 2009 09:44:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 01:44:31 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of patelpradeep@gmail.com designates 209.85.200.170 as permitted sender) Received: from [209.85.200.170] (HELO wf-out-1314.google.com) (209.85.200.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 09:44:20 +0000 Received: by wf-out-1314.google.com with SMTP id 23so2603273wfg.28 for ; Mon, 02 Mar 2009 01:43:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=W6fyFo7slLiSBvcyRsFsuQZ1jimeo219zuoL1mcpS2I=; b=cdoNpswrsuF7/Y6+WBrWA0BeyvPx6DFCVQueKYKt+YU6wrQuU8MTNrjzrmA17cSqYC tLBIYwkHeTK/ndUEt7q6h+ia3C2OYlMO+9iDi+Z+k9idtXApkxyT3NImDVf5CnF531DI 32WL59Iezd8F+EiZCY38T0KU5PU/5wTu6RQGw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=l9srJkQ+4DKW9iXxI5lxzst97b5b2EIeF+PfeDlCyhcP/XPPKdLXFJGnL5S5CnAajs bAQdoHsIpKGsx07R229BfuHWhYTAyb8xAZrm9NdRfyZpVcOziC6c/i8CZvLv7IDOFyWo wxwu+xwnGQ6C2NzC7UNQD1CFmQHUeFJNFDMj8= MIME-Version: 1.0 Received: by 10.142.68.2 with SMTP id q2mr2918511wfa.274.1235987038814; Mon, 02 Mar 2009 01:43:58 -0800 (PST) In-Reply-To: References: Date: Mon, 2 Mar 2009 15:13:58 +0530 Message-ID: Subject: Re: unable to start axis2_http_server on AIX 6.1 From: PP To: axis-c-user@ws.apache.org Content-Type: multipart/alternative; boundary=001636e0adeb65432904641fa844 X-Virus-Checked: Checked by ClamAV on apache.org --001636e0adeb65432904641fa844 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit hi, i am still getting the same error. [Mon Mar 2 13:26:20 2009] [error] class_loader.c(162) Loading shared library ..//lib/libaxis2_http_sender.a Failed. DLERROR IS 0509-022 Cannot load module ..//lib/libaxis2_http_sender.a. 0509-103 The module has an invalid magic number. the lib is present in the lib folder. I am using 64-bit AIX. does it make any diff? My env is: AIX-rpm-6.1.0.0-1 axis2c-src-1.5.0 gcc-cpp-4.2.3-1 gcc-4.2.3-1 libgcc-4.2.3-1 CPU Type: 64-bit Kernel Type: 64-bit System Model: IBM,9111-520 Processor Type: PowerPC_POWER5 Number Of Processors: 2 On Mon, Mar 2, 2009 at 11:41 AM, PP wrote: > Anyone please help me? > Why so many changes are required to compile Axis2c on AIX? The steps i > followed are: > > I saw some posts to this list and the user list from a couple of months > ago about issues building Axis2/C on AIX. I managed to get 1.4.0 to > > build (and run) on AIX 5.3 and thought I should post my experience. > > I had to make some minor code changes and I am not sure the way I got it > to build is the best (putting -D_ALL_SOURCE in CFLAGS seems like a bit > > of a hack). I tried putting define of _ALL_SOURCE in an aix specific > header file but I got into a recursive include mess and gave up ton > that. > > Also, I have never used autoconf nor automake and my boxes don't have > > versions that work with the distributed configure.ac and Makefile.am > files so I am not sure how the below "todo's" should be resolved. > > Versions: > Axis2/C 1.4.0 > > AIX 5.3 > gcc 4.2.0 > native ld > native make > > > Below are errors encountered and what I did to get around them. > ######################################################################## > #### > make: error: > > uuid_gen_unix.c:36:26: error: sys/sockio.h: No such file or directory > "fix": surrounded #include with #ifdef HAVE_SYS_SOCKIO_H > in ./util/src/platforms/unix/uuid_gen_unix.c: > > /opt/freeware/bin/diff -c > > ../axis2c-src-1.4.0.orig/util/src/platforms/unix/uuid_gen_unix.c > util/src/platforms/unix/> > *** ../axis2c-src-1.4.0.orig/util/src/platforms/unix/uuid_gen_unix.c > Wed Jan 9 21:39:33 2008 > --- util/src/platforms/unix/uuid_gen_unix.c Tue Oct 28 16:07:58 2008 > > *************** > *** 17,22 **** > --- 17,23 ---- > */ > > #include > + #include > > #include > #include > > *************** > *** 26,42 **** > #include > #include > #include > - #include > #include > > #ifdef HAVE_LINUX_IF_H > > # include > #else > # ifdef HAVE_NET_IF_H > - # include > # include > # include > # endif > # ifdef HAVE_NET_IF_TYPES_H > > # include > # endif > --- 27,45 ---- > #include > #include > #include > #include > > + /* these ifdefs would be better in a header file > > #ifdef HAVE_LINUX_IF_H > # include > #else > # ifdef HAVE_NET_IF_H > # include > # include > # endif > + # ifdef HAVE_SOCKIO_H > + # include > > + # endif > # ifdef HAVE_NET_IF_TYPES_H > # include > # endif > > todo: configure should check for existence of sys/sockio.h and set > HAVE_SYS_SOCKIO_H > ######################################################################## > > #### > make error: > In file included from uuid_gen_unix.c:37: > /usr/include/net/if_arp.h:68: error: expected specifier-qualifier-list > before 'u_short' > "fix": define _ALL_SOURCE before include of sys/types.h > > add "-D_ALL_SOURCE" to CFLAGS before running configure > ######################################################################## > #### > make error: > from uuid_gen_unix.c:50: > ../../../include/platforms/unix/axutil_unix.h:119:20: error: getopt.h: > > No such file or directory > make: The error code from the last command is 1. > "fix": surrounded #include with #ifdef HAVE_GETOPT_H in > ...util/include/platforms/unix/axutil_unix.h: > > clude/platforms/unix/axutil_unix.h > > util/include/platforms/unix/axutil_unix.h > < > *** ../axis2c-src-1.4.0.orig/util/include/platforms/unix/axutil_unix.h > Sun Mar 9 23:29:37 2008 > --- util/include/platforms/unix/axutil_unix.h Tue Oct 28 12:49:18 2008 > > *************** > *** 116,122 **** > --- 116,124 ---- > #include "axutil_uuid_gen_unix.h" /* uuid_gen unix implementation */ > #include /* TCP_NODELAY */ > #include > > + #ifdef HAVE_GETOPT_H > #include > + #endif > #include "axutil_date_time_util_unix.h" > > /* for file access handling */ > > todo: configure.ac: should check for existence of sys/sockio.h and set > > HAVE_GETOPT_H > > ######################################################################## > #### > make error: > gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include > -I../../../include/platforms -I../../../include/platforms/unix -g -O2 > > -D_ALL_SOURCE -D_LARGEFILE64_SOURCE -ansi -Wall -Werror > -Wno-implicit-function-declaration -MT thread_unix.lo -MD -MP -MF > .deps/thread_unix.Tpo -c thread_unix.c -DPIC -o .libs/thread_unix.o > cc1: warnings being treated as errors > > thread_unix.c: In function 'axutil_thread_once_init': > thread_unix.c:279: warning: missing braces around initializer > thread_unix.c:279: warning: (near initialization for > 'once_init.__on_word') > "fix": added -DAXIS2_AIX to CFLAGS AND changed > > util/src/platforms/unix/thread_unix.c as follows: > > c/platforms/unix/thread_unix.c util/src/platforms/unix/thread_unix.c > < > *** ../axis2c-src-1.4.0.orig/util/src/platforms/unix/thread_unix.c > Wed Jan 9 21:39:33 2008 > > --- util/src/platforms/unix/thread_unix.c Tue Oct 28 12:49:20 2008 > *************** > *** 17,22 **** > --- 17,23 ---- > */ > > #include > + #include "platforms/axutil_platform_auto_sense.h" > > #include "axutil_thread_unix.h" > > AXIS2_EXTERN axutil_threadattr_t *AXIS2_CALL > *************** > *** 273,279 **** > axutil_thread_once_init( > axutil_allocator_t * allocator) > { > ! #ifdef AXIS2_SOLARIS > > static const pthread_once_t once_init = { PTHREAD_ONCE_INIT }; > #else > static const pthread_once_t once_init = PTHREAD_ONCE_INIT; > --- 274,280 ---- > axutil_thread_once_init( > axutil_allocator_t * allocator) > > { > ! #if (defined(AXIS2_SOLARIS) || defined(AXIS2_AIX)) > static const pthread_once_t once_init = { PTHREAD_ONCE_INIT }; > #else > static const pthread_once_t once_init = PTHREAD_ONCE_INIT; > > ######################################################################## > > #### > make error: > ../include/platforms/unix/axutil_uuid_gen_unix.h:57: error: field > 'time_last' has incomplete type > plus a bunch more > "fix": this is also fixed if _ALL_SOURCE is defined before include of > > sys/types.h > added -D_ALL_SOURCE to CFLAGS before configure > ######################################################################## > #### > make error: > cc1: warnings being treated as errors > dir_handler.c: In function > > 'axutil_dir_handler_list_services_or_modules_in_dir': > dir_handler.c:72: warning: passing argument 3 of 'scandir' from > incompatible pointer type > dir_handler.c: In function > 'axutil_dir_handler_list_service_or_module_dirs': > > dir_handler.c:212: warning: passing argument 3 of 'scandir' from > incompatible pointer type > "fix": > * added -DAXIS2_AIX to CFLAGS > * changed dir_handler.c as follows: > > /opt/freeware/bin/diff -c > > ../axis2c-src-1.4.0.orig/./util/src/dir_handler.c > ./util/src/dir_handler.c > *** ../axis2c-src-1.4.0.orig/./util/src/dir_handler.c Tue Mar 18 > 23:31:08 2008 > --- ./util/src/dir_handler.c Tue Oct 28 12:49:19 2008 > > *************** > *** 31,37 **** > > extern int AXIS2_ALPHASORT( > ); > ! #ifdef IS_MACOSX > int dir_select( > struct dirent *entry); > #else > --- 31,37 ---- > > extern int AXIS2_ALPHASORT( > > ); > ! #if (defined IS_MACOSX || defined AXIS2_AIX ) > int dir_select( > struct dirent *entry); > #else > *************** > *** 39,47 **** > --- 39,53 ---- > const struct dirent *entry); > #endif > > + #ifdef AXIS2_AIX > + int > + file_select( > + struct dirent *entry); > + #else > int > file_select( > const struct dirent *entry); > + #endif > > /** > * List the dll files in the given service or module folder path > > *************** > *** 321,328 **** > } > > int > ! file_select( > ! const struct dirent *entry) > { > /** FIXME: > * This block of code has been sitting here doing nothing. > --- 327,337 ---- > > } > > int > ! #if (defined IS_MACOSX || defined AXIS2_AIX) > ! file_select( struct dirent *entry) > ! #else > ! file_select( const struct dirent *entry) > ! #endif > { > /** FIXME: > * This block of code has been sitting here doing nothing. > > *************** > *** 346,352 **** > return (AXIS2_FALSE); > } > > ! #ifdef IS_MACOSX > int > dir_select( > struct dirent *entry) > --- 355,361 ---- > return (AXIS2_FALSE); > } > > ! #if (defined IS_MACOSX || defined AXIS2_AIX) > int > dir_select( > struct dirent *entry) > ######################################################################## > #### > make error: > data_handler.c: In function 'axiom_data_handler_read_from': > > data_handler.c:156: error: storage size of 'stat_p' isn't known > cc1: warnings being treated as errors > data_handler.c:156: warning: unused variable 'stat_p' > file: ./axiom/src/attachments/data_handler.c > > "fix": define _ALL_SOURCE before include of sys/types.h (see above) > ######################################################################## > #### > make error: (plus many more) > In file included from > > ../../../util/include/platforms/unix/axutil_unix.h:116, > from ../../../util/include/platforms/axutil_platform_auto_sense.h:51, > from ../../../util/include/axutil_uuid_gen.h:24, > from om_output.c:26: > ../../../util/include/platforms/unix/axutil_uuid_gen_unix.h:57: error: > > field 'time_last' has incomplete type > file: .../axiom/src/om/om_output.c > "fix": > add -D_ALL_SOURCE to CFLAGS > > ######################################################################## > #### > > > make install > . > . > . > Target "install-data-am" is up to date. > Target "install" is up to date. > ######################################################################## > ####runtime linker errors: > > various errors including coredumps, libs not found, unable to load libs, > *.so missing from lib, etc. > try: > export LDFLAGS=-Wl,-brtl > ./configure ... > > axis2_http_server still coredumps > make is not passing LDFLAGS to linker > > "fix": add -Wl,-brtl to CFLAGS before configure > todo: makefile gen should pass LDFLAGS in Makefile's > todo: my build output has a bunch of warnings from gcc about -brtl: > gcc: -brtl: linker input file unused because linking not done > > gcc: unrecognized option '-brtl' > > ######################################################################## > #### > rebuild from scratch > > export AXIS2C_HOME=$HOME/axis2c > > cd > > gtar xzf axis2c-src-1.4.0.tar.gz > > > cd axis2c-src-1.4.0 > > patch -p1 <../axis2c-src-1.4.0-aix-patch > # patch contents is just above diff output > > export CFLAGS="-DAXIS2_AIX -D_ALL_SOURCE -Wl,-brtl" > > ./configure --prefix=${AXIS2C_HOME} > > > make install > . > . > . > Target "install" is up to date. > > ######################################################################## > #### > build of samples > > export AXIS2C_HOME=$HOME/axis2c > > > export LIBPATH=$LIBPATH:${AXIS2C_HOME}/lib/ > > cd $HOME/axis2c-src-1.4.0/samples > > export CFLAGS="-DAXIS2_AIX -D_ALL_SOURCE -Wl,-brtl" > > ./configure --prefix=$AXIS2C_HOME > -with-axis2=${AXIS2C_HOME}/include/axis2-1.4.0 > > > make install > . > . > . > Target "install" is up to date. > > > > On Fri, Feb 27, 2009 at 7:52 PM, PP wrote: > >> Hi, >> >> I followed these instructions to build axis2c on AIX. After little effort >> i was able to build the lib/server. >> >> >> http://mail-archives.apache.org/mod_mbox/ws-axis-c-dev/200810.mbox/%3C1C5078180E92E94595BBC384F5F3FC3B0206A8B6@USCOBRMFA-SE-70.northamerica.cexp.com%3E >> >> but when i start the server it just stops and when i see the error log. >> The error message is "cannot load /lib/axis2_http_sender.a ...invalid >> magic number.... >> >> can someone please help what could be the error? >> >> My env is: >> AIX-rpm-6.1.0.0-1 >> axis2c-src-1.5.0 >> >> gcc-cpp-4.2.3-1 >> gcc-4.2.3-1 >> libgcc-4.2.3-1 >> >> >> >> -- >> Thanks & Regards >> Pradeep Patel >> > > > > -- > Thanks & Regards > Pradeep Patel > -- Thanks & Regards Pradeep Patel --001636e0adeb65432904641fa844 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hi,

i am still getting the same error.

[Mon Mar=A0 2 13:26:20= 2009] [error] class_loader.c(162) Loading shared library ..//lib/libaxis2_= http_sender.a=A0 Failed. DLERROR IS=A0=A0=A0=A0=A0=A0=A0 0509-022 Cannot lo= ad module ..//lib/libaxis2_http_sender.a.
=A0=A0=A0=A0=A0=A0=A0 0509-103=A0=A0 The module has an invalid magic number= .

the lib is present in the lib folder.

I am using 64-bit AIX= . does it make any diff?

My env is:
AIX-rpm-6.1.0.0-1
axis2c-s= rc-1.5.0

gcc-cpp-4.2.3-1
gcc-4.2.3-1
libgcc-4.2.3-1

CPU Type: 64-bitKernel Type: 64-bit
System Model: IBM,9111-520
Processor Type: Power= PC_POWER5
Number Of Processors: 2


On Mon, Mar 2, 2009 at 11:41 AM, PP <patelpradeep@gmail.com> wrote:
Anyone please help me?
Why so many changes are required to compile Axis2= c on AIX? The steps i followed are:

I saw some posts to this li=
st and the user list from a couple of months
ago about issues building A= xis2/C on AIX. I managed to get 1.4.0 to
build (and run) on AIX 5.3 and thought I should post my experience.

= I had to make some minor code changes and I am not sure the way I got itto build is the best (putting -D_ALL_SOURCE in CFLAGS seems like a bit
of a hack). I tried putting define of _ALL_SOURCE in an aix specific
he= ader file but I got into a recursive include mess and gave up ton
that. =

Also, I have never used autoconf nor automake and my boxes don'= ;t have
versions that work with the distributed configure.ac and Makefile.am
files so I am not sure h= ow the below "todo's" should be resolved.

Versions: Axis2/C 1.4.0
AIX 5.3
gcc 4.2.0
native ld
native make


Below are error= s encountered and what I did to get around them.
#######################= #################################################
####
make: error: uuid_gen_unix.c:36:26: error: sys/sockio.h: No such file or directory
&q= uot;fix": surrounded #include <sys/sockio.h> with #ifdef HAVE_SY= S_SOCKIO_H
in ./util/src/platforms/unix/uuid_gen_unix.c:
> /opt/fr= eeware/bin/diff -c
../axis2c-src-1.4.0.orig/util/src/platforms/unix/uuid_gen_unix.c
util/sr= c/platforms/unix/>
*** ../axis2c-src-1.4.0.orig/util/src/platforms/un= ix/uuid_gen_unix.c
Wed Jan 9 21:39:33 2008
--- util/src/platforms/un= ix/uuid_gen_unix.c Tue Oct 28 16:07:58 2008
***************
*** 17,22 ****
--- 17,23 ----
*/

#incl= ude <config.h>
+ #include <platforms/axutil_platform_auto_sense= .h>

#include <sys/ioctl.h>
#include <string.h>=
***************
*** 26,42 ****
#include <fcntl.h>
#inclu= de <unistd.h>
#include <sys/types.h>
- #include <sys= /socket.h>
#include <sys/time.h>

#ifdef HAVE_LINUX_I= F_H
# include <linux/if.h>
#else
# ifdef HAVE_NET_IF_H
- #= include <sys/sockio.h>
# include <net/if.h>
# inc= lude <net/if_arp.h>
# endif
# ifdef HAVE_NET_IF_TYPES_H
# include <net/if_types.h>
# endif
--- 27,45 ----
#in= clude <fcntl.h>
#include <unistd.h>
#include <sys/= types.h>
#include <sys/time.h>

+ /* these ifdefs would= be better in a header file
#ifdef HAVE_LINUX_IF_H
# include <linux/if.h>
#else
= # ifdef HAVE_NET_IF_H
# include <net/if.h>
# include <= net/if_arp.h>
# endif
+ # ifdef HAVE_SOCKIO_H
+ # include &l= t;sys/sockio.h>
+ # endif
# ifdef HAVE_NET_IF_TYPES_H
# include <net/if_types= .h>
# endif

todo: configure should check for existence of sy= s/sockio.h and set
HAVE_SYS_SOCKIO_H
################################= ########################################
####
make error:
In file included from uuid_gen_unix.c:37:
/usr/in= clude/net/if_arp.h:68: error: expected specifier-qualifier-list
before &= #39;u_short'
"fix": define _ALL_SOURCE before include of s= ys/types.h
add "-D_ALL_SOURCE" to CFLAGS before running configure
#######= #################################################################
####make error:
from uuid_gen_unix.c:50:
../../../include/platforms/uni= x/axutil_unix.h:119:20: error: getopt.h:
No such file or directory
make: The error code from the last command is = 1.
"fix": surrounded #include <getopt.h> with #ifdef HAV= E_GETOPT_H in
...util/include/platforms/unix/axutil_unix.h:
> clud= e/platforms/unix/axutil_unix.h
util/include/platforms/unix/axutil_unix.h
<
*** ../axis2c-src-1.4.= 0.orig/util/include/platforms/unix/axutil_unix.h
Sun Mar 9 23:29:37 200= 8
--- util/include/platforms/unix/axutil_unix.h Tue Oct 28 12:49:18 20= 08
***************
*** 116,122 ****
--- 116,124 ----
#include "= ;axutil_uuid_gen_unix.h" /* uuid_gen unix implementation */
#in= clude <netinet/tcp.h> /* TCP_NODELAY */
#include <utim= e.h>
+ #ifdef HAVE_GETOPT_H
#include <getopt.h>
+ #endif
#inc= lude "axutil_date_time_util_unix.h"

/* for file acce= ss handling */

todo: configure.ac: should check for existence of sys/sockio.h and set
HAVE_GETOPT_H

######################################################= ##################
####
make error:
gcc -DHAVE_CONFIG_H -I. -I. -I= ../../.. -I../../../include
-I../../../include/platforms -I../../../incl= ude/platforms/unix -g -O2
-D_ALL_SOURCE -D_LARGEFILE64_SOURCE -ansi -Wall -Werror
-Wno-implicit-fu= nction-declaration -MT thread_unix.lo -MD -MP -MF
.deps/thread_unix.Tpo = -c thread_unix.c -DPIC -o .libs/thread_unix.o
cc1: warnings being treate= d as errors
thread_unix.c: In function 'axutil_thread_once_init':
thread_uni= x.c:279: warning: missing braces around initializer
thread_unix.c:279: w= arning: (near initialization for
'once_init.__on_word')
"fix": added -DAXIS2_AIX to CFLAGS AND changed
util/src/platforms/unix/thread_unix.c as follows:
> c/platforms/unix/= thread_unix.c util/src/platforms/unix/thread_unix.c
<
*** ../axis2= c-src-1.4.0.orig/util/src/platforms/unix/thread_unix.c
Wed Jan 9 21:39:= 33 2008
--- util/src/platforms/unix/thread_unix.c Tue Oct 28 12:49:20 2008***************
*** 17,22 ****
--- 17,23 ----
*/

#inc= lude <config.h>
+ #include "platforms/axutil_platform_auto_se= nse.h"
#include "axutil_thread_unix.h"

AXIS2_EXTERN axutil_th= readattr_t *AXIS2_CALL
***************
*** 273,279 ****
axutil_t= hread_once_init(
axutil_allocator_t * allocator)
{
! #ifde= f AXIS2_SOLARIS
static const pthread_once_t once_init =3D { PTHREAD_ONCE_INIT };
= #else
static const pthread_once_t once_init =3D PTHREAD_ONCE_INIT= ;
--- 274,280 ----
axutil_thread_once_init(
axutil_allocat= or_t * allocator)
{
! #if (defined(AXIS2_SOLARIS) || defined(AXIS2_AIX))
static= const pthread_once_t once_init =3D { PTHREAD_ONCE_INIT };
#else
= static const pthread_once_t once_init =3D PTHREAD_ONCE_INIT;

###= #####################################################################
####
make error:
../include/platforms/unix/axutil_uuid_gen_unix.h:57:= error: field
'time_last' has incomplete type
plus a bunch mo= re
"fix": this is also fixed if _ALL_SOURCE is defined before = include of
sys/types.h
added -D_ALL_SOURCE to CFLAGS before configure
##########= ##############################################################
####
m= ake error:
cc1: warnings being treated as errors
dir_handler.c: In fu= nction
'axutil_dir_handler_list_services_or_modules_in_dir':
dir_handle= r.c:72: warning: passing argument 3 of 'scandir' from
incompatib= le pointer type
dir_handler.c: In function
'axutil_dir_handler_li= st_service_or_module_dirs':
dir_handler.c:212: warning: passing argument 3 of 'scandir' fromincompatible pointer type
"fix":
* added -DAXIS2_AIX to CF= LAGS
* changed dir_handler.c as follows:
> /opt/freeware/bin/diff= -c
../axis2c-src-1.4.0.orig/./util/src/dir_handler.c
./util/src/dir_handler= .c
*** ../axis2c-src-1.4.0.orig/./util/src/dir_handler.c Tue Mar 1823:31:08 2008
--- ./util/src/dir_handler.c Tue Oct 28 12:49:19 2008<= br> ***************
*** 31,37 ****

extern int AXIS2_ALPHASORT(
= );
! #ifdef IS_MACOSX
int dir_select(
struct dirent *= entry);
#else
--- 31,37 ----

extern int AXIS2_ALPHASORT( );
! #if (defined IS_MACOSX || defined AXIS2_AIX )
int dir_se= lect(
struct dirent *entry);
#else
***************
*** = 39,47 ****
--- 39,53 ----
const struct dirent *entry);
#endif

+ #ifdef AXIS2_AIX
+ int
+ file_select(
+ struct dirent *e= ntry);
+ #else
int
file_select(
const struct dirent *= entry);
+ #endif

/**
* List the dll files in the given se= rvice or module folder path
***************
*** 321,328 ****
}

int
! file_select(! const struct dirent *entry)
{
/** FIXME:
*= This block of code has been sitting here doing nothing.
--- 327,337 ---= -
}

int
! #if (defined IS_MACOSX || defined AXIS2_AIX)
! fil= e_select( struct dirent *entry)
! #else
! file_select( const struct d= irent *entry)
! #endif
{
/** FIXME:
* This bloc= k of code has been sitting here doing nothing.
***************
*** 346,352 ****
return (AXIS2_FALSE);
= }

! #ifdef IS_MACOSX
int
dir_select(
struct dire= nt *entry)
--- 355,361 ----
return (AXIS2_FALSE);
}
! #if (defined IS_MACOSX || defined AXIS2_AIX)
int
dir_select= (
struct dirent *entry)
#######################################= #################################
####
make error:
data_handler.c:= In function 'axiom_data_handler_read_from':
data_handler.c:156: error: storage size of 'stat_p' isn't known=
cc1: warnings being treated as errors
data_handler.c:156: warning: u= nused variable 'stat_p'
file: ./axiom/src/attachments/data_handl= er.c
"fix": define _ALL_SOURCE before include of sys/types.h (see abov= e)
#####################################################################= ###
####
make error: (plus many more)
In file included from
../../../util/include/platforms/unix/axutil_unix.h:116,
from ../../../ut= il/include/platforms/axutil_platform_auto_sense.h:51,
from ../../../util= /include/axutil_uuid_gen.h:24,
from om_output.c:26:
../../../util/inc= lude/platforms/unix/axutil_uuid_gen_unix.h:57: error:
field 'time_last' has incomplete type
file: .../axiom/src/om/om_= output.c
"fix":
add -D_ALL_SOURCE to CFLAGS

########= ################################################################
#### > make install
.
.
.
Target "install-data-am" is u= p to date.
Target "install" is up to date.
################= ########################################################
####runtime lin= ker errors:
various errors including coredumps, libs not found, unable to load libs,*.so missing from lib, etc.
try:
export LDFLAGS=3D-Wl,-brtl
./co= nfigure ...

axis2_http_server still coredumps
make is not passing= LDFLAGS to linker
"fix": add -Wl,-brtl to CFLAGS before configure
todo: makefile= gen should pass LDFLAGS in Makefile's
todo: my build output has a b= unch of warnings from gcc about -brtl:
gcc: -brtl: linker input file unu= sed because linking not done
gcc: unrecognized option '-brtl'

###########################= #############################################
####
rebuild from scrat= ch
> export AXIS2C_HOME=3D$HOME/axis2c
> cd
> gtar xzf ax= is2c-src-1.4.0.tar.gz
> cd axis2c-src-1.4.0
> patch -p1 <../axis2c-src-1.4.0-aix-patc= h
# patch contents is just above diff output
> export CFLAGS=3D&qu= ot;-DAXIS2_AIX -D_ALL_SOURCE -Wl,-brtl"
> ./configure --prefix= =3D${AXIS2C_HOME}
> make install
.
.
.
Target "install" is up to dat= e.

#################################################################= #######
####
build of samples
> export AXIS2C_HOME=3D$HOME/axis= 2c
> export LIBPATH=3D$LIBPATH:${AXIS2C_HOME}/lib/
> cd $HOME/axis2c-= src-1.4.0/samples
> export CFLAGS=3D"-DAXIS2_AIX -D_ALL_SOURCE -= Wl,-brtl"
> ./configure --prefix=3D$AXIS2C_HOME
-with-axis2= =3D${AXIS2C_HOME}/include/axis2-1.4.0
> make install
.
.
.
Target "install" is up to dat= e.


On Fri, Feb 27, 2009 at 7:52 PM, PP <patelpradeep@gmail.com= > wrote:
Hi,

I foll= owed these instructions to build axis2c on AIX. After little effort i was a= ble to build the lib/server.

http://mail-archives.apache.org/mod_mbo= x/ws-axis-c-dev/200810.mbox/%3C1C5078180E92E94595BBC384F5F3FC3B0206A8B6@USC= OBRMFA-SE-70.northamerica.cexp.com%3E

but when i start the server it just stops and when i see the error log.=
The error message is "cannot load /lib/axis2_http_sender.a ...inva= lid magic number....
=A0
can someone please help what could be the er= ror?

My env is:
AIX-rpm-6.1.0.0-1
axis2c-src-1.5.0

gcc-cpp-4.2.= 3-1
gcc-4.2.3-1
libgcc-4.2.3-1


--
Thanks & Regards
Pradeep Patel



--
Thanks & Regards
Pradeep Patel



--
Thanks & Reg= ards
Pradeep Patel
--001636e0adeb65432904641fa844--