Re: can't debug web service with the Simple HTTP Server!

2009-05-09 Thread Rajika Kumarasiri
On Sat, May 9, 2009 at 9:01 AM, Edgar Ricardo Gonzalez Lazaro 
ministroma...@gmail.com wrote:
hi,

 Hello everybody! I am new in this list so... be nice, want you? lol

sure. Try this out,
http://wso2.org/library/tutorials/debugging-axis2-c-services-clients

-Rajika



 Well, I am  writing web services with Axis2c I have built successfully
 one and is deployed on Apache2 and the Simple HTTP Server which is
 included with Axis2c distribution. But as usual with C, is falling with
 a segmentation fault, :D, this is not the problem, in fact i don't know
 if this is the place to make my question, but i am trying to set the
 --mode=compile flag to --mode=execute gdb for libtool because when i
 am debugging my web service i can't reach with gdb the code of the
 dynamic linked library which is my web service.

 I hope to be clear enough!

 Sorry if my English is bad! :(

 Thanks in advance

 Attached: the configure.in and Makefile.am code and gdb output.

 ## CONFIGURE.IN

 AC_PREREQ(2.61)
 AC_INIT(WS_NASTY, 0.0.1, x...@hotmail.com)
 AC_CONFIG_SRCDIR([src/])
 AC_CONFIG_HEADER([src/config.h])
 AC_CONFIG_FILES([Makefile src/Makefile])
 AC_ARG_WITH(axis2,
   [ --with-axis2=path prefijo de la instalacion del axis2c
 e.g. /usr ],
   [ AXIS2_PREFIX=$with_axis2 ],
   AC_MSG_ERROR([Debes utilizar la opcion --with-axis2 para enlazar con
 esta biblioteca
   por ejemplo --with-axis2=/usr])
 )
 AC_SUBST(AXIS2_PREFIX)
 AXIS2_LIBS=-L${AXIS2_PREFIX}/lib -laxutil -laxis2_axiom -laxis2_parser
 -laxis2_engine -laxis2_http_sender -laxis2_http_receiver
 AXIS2_CFLAGS=-I${AXIS2_PREFIX}/include/axis2-1.5.0
 AC_SUBST(AXIS2_LIBS)
 AC_SUBST(AXIS2_CFLAGS)

 AM_INIT_AUTOMAKE
 AC_PROG_LIBTOOL
 AC_PROG_CXX
 AC_OUTPUT


 ## MAKEFILE.AM
 prglibdir=$(prefix)/services/NastyWS
 prglib_LTLIBRARIES=libNastyWS.la
 prglib_DATA=services.xml
 libNastyWS_la_SOURCES=a.cpp a.h ai.h b.cpp b.h
 CFLAGS=-ggdb -O0##This is wrong i know
 CXXFLAGS=-ggdb -O0  ##This is wrong i know
 INCLUDES=$(AXIS2_CFLAGS)
 LIBS=$(AXIS2_LIBS)

 ## GDB OUTPUT

 (gdb) r
 Starting program: /usr/local/bin/axis2_http_server
 [Thread debugging using libthread_db enabled]
 [New Thread 0xb764b8f0 (LWP 15514)]
 Started Simple Axis2 HTTP Server ...
 [New Thread 0xb764ab90 (LWP 15518)]

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 0xb764ab90 (LWP 15518)]
 0x6c707061 in ?? ()
 (gdb) bt
 #0  0x6c707061 in ?? ()
 #1  0xb7d7f528 in axis2_msg_recv_make_new_svc_obj (msg_recv=0x87dcdf0,
 env=0x88160c0, msg_ctx=0x8820390) at msg_recv.c:166
 #2  0xb7d7f626 in axis2_msg_recv_get_impl_obj (msg_recv=0x87dcdf0,
 env=0x88160c0, msg_ctx=0x8820390) at msg_recv.c:194
 #3  0xb7d7fff2 in
 axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync
 (msg_recv=0x87dcdf0, env=0x88160c0, msg_ctx=0x8820390,
 new_msg_ctx=0x8828510) at raw_xml_in_out_msg_recv.c:99
 #4  0xb7d7fcf3 in axis2_msg_recv_invoke_business_logic
 (msg_recv=0x87dcdf0, env=0x88160c0, in_msg_ctx=0x8820390,
 out_msg_ctx=0x8828510) at msg_recv.c:397
 #5  0xb7d7fad1 in axis2_msg_recv_receive_impl (msg_recv=0x87dcdf0,
 env=0x88160c0, msg_ctx=0x8820390, callback_recv_param=0x0) at
 msg_recv.c:319
 #6  0xb7d7fd4f in axis2_msg_recv_receive (msg_recv=0x87dcdf0,
 env=0x88160c0, msg_ctx=0x8820390, callback_recv_param=0x0) at
 msg_recv.c:436
 #7  0xb7d713d1 in axis2_engine_receive (engine=0x88280a8, env=0x88160c0,
 msg_ctx=0x8820390) at engine.c:318
 #8  0xb7dd1883 in axis2_http_transport_utils_process_http_post_request
 (env=0x88160c0, msg_ctx=0x8820390, in_stream=0x88160f0,
 out_stream=0x8816120,
content_type=0x88161b8 text/xml; charset=UTF-8,
 content_length=510, soap_action_header=0x8821a68, request_uri=0x8821a80
 http://127.0.0.1:9090/axis2/services/NastyWS;)
at http_transport_utils.c:659
 #9  0xb7dcdb0d in axis2_http_worker_process_request
 (http_worker=0x8815740, env=0x88160c0, svr_conn=0x88160e0,
 simple_request=0x88161a0) at http_worker.c:908
 #10 0xb7d2f719 in axis2_svr_thread_worker_func (thd=0x8815fe8,
 data=0x8815fd0) at http_svr_thread.c:259
 #11 0xb7dfbd15 in dummy_worker (opaque=0x8815fe8) at thread_unix.c:93
 #12 0xb7cf51a2 in start_thread () from /lib/libpthread.so.0
 #13 0xb7c6948e in clone () from /lib/libc.so.6





-- 
http://wso2.org
http://llvm.org
http://www.minix3.org


Re: can't debug web service with the Simple HTTP Server!

2009-05-09 Thread Edgar Ricardo Gonzalez Lazaro
HMMM! lol! I know how to debug the web service! the problem is when 
the Simple HTTP Server try to init my ws invoking my _init function,
it falls and the back trace can't show the line where the segmentaton
faul occurs!

#0  0x6c707061 in ?? ()

I have an idea. Ill try it!


El sáb, 09-05-2009 a las 21:07 +0530, Rajika Kumarasiri escribió:
 
 
 On Sat, May 9, 2009 at 9:01 AM, Edgar Ricardo Gonzalez Lazaro
 ministroma...@gmail.com wrote:
 hi,
 Hello everybody! I am new in this list so... be nice, want
 you? lol
 sure. Try this out, 
 http://wso2.org/library/tutorials/debugging-axis2-c-services-clients
 
 -Rajika
 
 
 
 Well, I am  writing web services with Axis2c I have built
 successfully
 one and is deployed on Apache2 and the Simple HTTP Server
 which is
 included with Axis2c distribution. But as usual with C, is
 falling with
 a segmentation fault, :D, this is not the problem, in fact i
 don't know
 if this is the place to make my question, but i am trying to
 set the
 --mode=compile flag to --mode=execute gdb for libtool
 because when i
 am debugging my web service i can't reach with gdb the code of
 the
 dynamic linked library which is my web service.
 
 I hope to be clear enough!
 
 Sorry if my English is bad! :(
 
 Thanks in advance
 
 Attached: the configure.in and Makefile.am code and gdb
 output.
 
 ## CONFIGURE.IN
 
 AC_PREREQ(2.61)
 AC_INIT(WS_NASTY, 0.0.1, x...@hotmail.com)
 AC_CONFIG_SRCDIR([src/])
 AC_CONFIG_HEADER([src/config.h])
 AC_CONFIG_FILES([Makefile src/Makefile])
 AC_ARG_WITH(axis2,
   [ --with-axis2=path prefijo de la instalacion del axis2c
 e.g. /usr ],
   [ AXIS2_PREFIX=$with_axis2 ],
   AC_MSG_ERROR([Debes utilizar la opcion --with-axis2 para
 enlazar con
 esta biblioteca
   por ejemplo --with-axis2=/usr])
 )
 AC_SUBST(AXIS2_PREFIX)
 AXIS2_LIBS=-L${AXIS2_PREFIX}/lib -laxutil -laxis2_axiom
 -laxis2_parser
 -laxis2_engine -laxis2_http_sender -laxis2_http_receiver
 AXIS2_CFLAGS=-I${AXIS2_PREFIX}/include/axis2-1.5.0
 AC_SUBST(AXIS2_LIBS)
 AC_SUBST(AXIS2_CFLAGS)
 
 AM_INIT_AUTOMAKE
 AC_PROG_LIBTOOL
 AC_PROG_CXX
 AC_OUTPUT
 
 
 ## MAKEFILE.AM
 prglibdir=$(prefix)/services/NastyWS
 prglib_LTLIBRARIES=libNastyWS.la
 prglib_DATA=services.xml
 libNastyWS_la_SOURCES=a.cpp a.h ai.h b.cpp b.h
 CFLAGS=-ggdb -O0##This is wrong i know
 CXXFLAGS=-ggdb -O0  ##This is wrong i know
 INCLUDES=$(AXIS2_CFLAGS)
 LIBS=$(AXIS2_LIBS)
 
 ## GDB OUTPUT
 
 (gdb) r
 Starting program: /usr/local/bin/axis2_http_server
 [Thread debugging using libthread_db enabled]
 [New Thread 0xb764b8f0 (LWP 15514)]
 Started Simple Axis2 HTTP Server ...
 [New Thread 0xb764ab90 (LWP 15518)]
 
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 0xb764ab90 (LWP 15518)]
 0x6c707061 in ?? ()
 (gdb) bt
 #0  0x6c707061 in ?? ()
 #1  0xb7d7f528 in axis2_msg_recv_make_new_svc_obj
 (msg_recv=0x87dcdf0,
 env=0x88160c0, msg_ctx=0x8820390) at msg_recv.c:166
 #2  0xb7d7f626 in axis2_msg_recv_get_impl_obj
 (msg_recv=0x87dcdf0,
 env=0x88160c0, msg_ctx=0x8820390) at msg_recv.c:194
 #3  0xb7d7fff2 in
 axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync
 (msg_recv=0x87dcdf0, env=0x88160c0, msg_ctx=0x8820390,
 new_msg_ctx=0x8828510) at raw_xml_in_out_msg_recv.c:99
 #4  0xb7d7fcf3 in axis2_msg_recv_invoke_business_logic
 (msg_recv=0x87dcdf0, env=0x88160c0, in_msg_ctx=0x8820390,
 out_msg_ctx=0x8828510) at msg_recv.c:397
 #5  0xb7d7fad1 in axis2_msg_recv_receive_impl
 (msg_recv=0x87dcdf0,
 env=0x88160c0, msg_ctx=0x8820390, callback_recv_param=0x0) at
 msg_recv.c:319
 #6  0xb7d7fd4f in axis2_msg_recv_receive (msg_recv=0x87dcdf0,
 env=0x88160c0, msg_ctx=0x8820390, callback_recv_param=0x0) at
 msg_recv.c:436
 #7  0xb7d713d1 in axis2_engine_receive (engine=0x88280a8,
 env=0x88160c0,
 msg_ctx=0x8820390) at engine.c:318
 #8  0xb7dd1883 in
 axis2_http_transport_utils_process_http_post_request
 (env=0x88160c0, msg_ctx=0x8820390, in_stream=0x88160f0,
 out_stream=0x8816120,
content_type=0x88161b8 text/xml; charset=UTF-8,
 content_length=510, soap_action_header=0x8821a68,
 request_uri=0x8821a80
 

Re: can't debug web service with the Simple HTTP Server!

2009-05-09 Thread Rajika Kumarasiri
On Sat, May 9, 2009 at 8:26 PM, Edgar Ricardo Gonzalez Lazaro 
ministroma...@gmail.com wrote:
hi,
Missing debugging info ?


HMMM! lol! I know how to debug the web service! the problem is when
 the Simple HTTP Server try to init my ws invoking my _init function,
 it falls and the back trace can't show the line where the segmentaton
 faul occurs!

 #0  0x6c707061 in ?? ()

 I have an idea. Ill try it!


 El sáb, 09-05-2009 a las 21:07 +0530, Rajika Kumarasiri escribió:
 
 
  On Sat, May 9, 2009 at 9:01 AM, Edgar Ricardo Gonzalez Lazaro
  ministroma...@gmail.com wrote:
  hi,
  Hello everybody! I am new in this list so... be nice, want
  you? lol
  sure. Try this out,
  http://wso2.org/library/tutorials/debugging-axis2-c-services-clients
 
  -Rajika
 
 
 
  Well, I am  writing web services with Axis2c I have built
  successfully
  one and is deployed on Apache2 and the Simple HTTP Server
  which is
  included with Axis2c distribution. But as usual with C, is
  falling with
  a segmentation fault, :D, this is not the problem, in fact i
  don't know
  if this is the place to make my question, but i am trying to
  set the
  --mode=compile flag to --mode=execute gdb for libtool
  because when i
  am debugging my web service i can't reach with gdb the code of
  the
  dynamic linked library which is my web service.
 
  I hope to be clear enough!
 
  Sorry if my English is bad! :(
 
  Thanks in advance
 
  Attached: the configure.in and Makefile.am code and gdb
  output.
 
  ## CONFIGURE.IN
 
  AC_PREREQ(2.61)
  AC_INIT(WS_NASTY, 0.0.1, x...@hotmail.com)
  AC_CONFIG_SRCDIR([src/])
  AC_CONFIG_HEADER([src/config.h])
  AC_CONFIG_FILES([Makefile src/Makefile])
  AC_ARG_WITH(axis2,
[ --with-axis2=path prefijo de la instalacion del axis2c
  e.g. /usr ],
[ AXIS2_PREFIX=$with_axis2 ],
AC_MSG_ERROR([Debes utilizar la opcion --with-axis2 para
  enlazar con
  esta biblioteca
por ejemplo --with-axis2=/usr])
  )
  AC_SUBST(AXIS2_PREFIX)
  AXIS2_LIBS=-L${AXIS2_PREFIX}/lib -laxutil -laxis2_axiom
  -laxis2_parser
  -laxis2_engine -laxis2_http_sender -laxis2_http_receiver
  AXIS2_CFLAGS=-I${AXIS2_PREFIX}/include/axis2-1.5.0
  AC_SUBST(AXIS2_LIBS)
  AC_SUBST(AXIS2_CFLAGS)
 
  AM_INIT_AUTOMAKE
  AC_PROG_LIBTOOL
  AC_PROG_CXX
  AC_OUTPUT
 
 
  ## MAKEFILE.AM
  prglibdir=$(prefix)/services/NastyWS
  prglib_LTLIBRARIES=libNastyWS.la
  prglib_DATA=services.xml
  libNastyWS_la_SOURCES=a.cpp a.h ai.h b.cpp b.h
  CFLAGS=-ggdb -O0##This is wrong i know
  CXXFLAGS=-ggdb -O0  ##This is wrong i know
  INCLUDES=$(AXIS2_CFLAGS)
  LIBS=$(AXIS2_LIBS)
 
  ## GDB OUTPUT
 
  (gdb) r
  Starting program: /usr/local/bin/axis2_http_server
  [Thread debugging using libthread_db enabled]
  [New Thread 0xb764b8f0 (LWP 15514)]
  Started Simple Axis2 HTTP Server ...
  [New Thread 0xb764ab90 (LWP 15518)]
 
  Program received signal SIGSEGV, Segmentation fault.
  [Switching to Thread 0xb764ab90 (LWP 15518)]
  0x6c707061 in ?? ()
  (gdb) bt
  #0  0x6c707061 in ?? ()
  #1  0xb7d7f528 in axis2_msg_recv_make_new_svc_obj
  (msg_recv=0x87dcdf0,
  env=0x88160c0, msg_ctx=0x8820390) at msg_recv.c:166
  #2  0xb7d7f626 in axis2_msg_recv_get_impl_obj
  (msg_recv=0x87dcdf0,
  env=0x88160c0, msg_ctx=0x8820390) at msg_recv.c:194
  #3  0xb7d7fff2 in
  axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync
  (msg_recv=0x87dcdf0, env=0x88160c0, msg_ctx=0x8820390,
  new_msg_ctx=0x8828510) at raw_xml_in_out_msg_recv.c:99
  #4  0xb7d7fcf3 in axis2_msg_recv_invoke_business_logic
  (msg_recv=0x87dcdf0, env=0x88160c0, in_msg_ctx=0x8820390,
  out_msg_ctx=0x8828510) at msg_recv.c:397
  #5  0xb7d7fad1 in axis2_msg_recv_receive_impl
  (msg_recv=0x87dcdf0,
  env=0x88160c0, msg_ctx=0x8820390, callback_recv_param=0x0) at
  msg_recv.c:319
  #6  0xb7d7fd4f in axis2_msg_recv_receive (msg_recv=0x87dcdf0,
  env=0x88160c0, msg_ctx=0x8820390, callback_recv_param=0x0) at
  msg_recv.c:436
  #7  0xb7d713d1 in axis2_engine_receive (engine=0x88280a8,
  env=0x88160c0,
  msg_ctx=0x8820390) at engine.c:318
  #8  0xb7dd1883 in
  axis2_http_transport_utils_process_http_post_request
  (env=0x88160c0, msg_ctx=0x8820390, in_stream=0x88160f0,
  out_stream=0x8816120,
 content_type=0x88161b8 

Re: can't debug web service with the Simple HTTP Server!

2009-05-09 Thread Edgar Ricardo Gonzalez Lazaro
Yes! the las line I can see is the next

Breakpoint 2, axis2_msg_recv_make_new_svc_obj (msg_recv=0x920cdf0,
env=0x92460c0, msg_ctx=0x9250390) at msg_recv.c:166
166 AXIS2_SVC_SKELETON_INIT((axis2_svc_skeleton_t *) impl_class,
env);

when i type s to get into the AXIS2_SVC_SKELETON_INIT macro, my ws
falls! and the bt is the attached at bottom!

El sáb, 09-05-2009 a las 21:42 +0530, Rajika Kumarasiri escribió:
 
 
 On Sat, May 9, 2009 at 8:26 PM, Edgar Ricardo Gonzalez Lazaro
 ministroma...@gmail.com wrote:
 hi,
 Missing debugging info ? 
 
 
 HMMM! lol! I know how to debug the web service! the problem is
 when
 the Simple HTTP Server try to init my ws invoking my _init
 function,
 it falls and the back trace can't show the line where the
 segmentaton
 faul occurs!
 
 #0  0x6c707061 in ?? ()
 
 I have an idea. Ill try it!
 
 
 El sáb, 09-05-2009 a las 21:07 +0530, Rajika Kumarasiri
 escribió:
 
 
 
  On Sat, May 9, 2009 at 9:01 AM, Edgar Ricardo Gonzalez
 Lazaro
  ministroma...@gmail.com wrote:
  hi,
  Hello everybody! I am new in this list so... be
 nice, want
  you? lol
  sure. Try this out,
 
 http://wso2.org/library/tutorials/debugging-axis2-c-services-clients
 
  -Rajika
 
 
 
  Well, I am  writing web services with Axis2c I have
 built
  successfully
  one and is deployed on Apache2 and the Simple HTTP
 Server
  which is
  included with Axis2c distribution. But as usual with
 C, is
  falling with
  a segmentation fault, :D, this is not the problem,
 in fact i
  don't know
  if this is the place to make my question, but i am
 trying to
  set the
  --mode=compile flag to --mode=execute gdb for
 libtool
  because when i
  am debugging my web service i can't reach with gdb
 the code of
  the
  dynamic linked library which is my web service.
 
  I hope to be clear enough!
 
  Sorry if my English is bad! :(
 
  Thanks in advance
 
  Attached: the configure.in and Makefile.am code
 and gdb
  output.
 
  ## CONFIGURE.IN
 
  AC_PREREQ(2.61)
  AC_INIT(WS_NASTY, 0.0.1, x...@hotmail.com)
  AC_CONFIG_SRCDIR([src/])
  AC_CONFIG_HEADER([src/config.h])
  AC_CONFIG_FILES([Makefile src/Makefile])
  AC_ARG_WITH(axis2,
[ --with-axis2=path prefijo de la instalacion
 del axis2c
  e.g. /usr ],
[ AXIS2_PREFIX=$with_axis2 ],
AC_MSG_ERROR([Debes utilizar la opcion
 --with-axis2 para
  enlazar con
  esta biblioteca
por ejemplo --with-axis2=/usr])
  )
  AC_SUBST(AXIS2_PREFIX)
  AXIS2_LIBS=-L${AXIS2_PREFIX}/lib -laxutil
 -laxis2_axiom
  -laxis2_parser
  -laxis2_engine -laxis2_http_sender
 -laxis2_http_receiver
  AXIS2_CFLAGS=-I${AXIS2_PREFIX}/include/axis2-1.5.0
  AC_SUBST(AXIS2_LIBS)
  AC_SUBST(AXIS2_CFLAGS)
 
  AM_INIT_AUTOMAKE
  AC_PROG_LIBTOOL
  AC_PROG_CXX
  AC_OUTPUT
 
 
  ## MAKEFILE.AM
  prglibdir=$(prefix)/services/NastyWS
  prglib_LTLIBRARIES=libNastyWS.la
  prglib_DATA=services.xml
  libNastyWS_la_SOURCES=a.cpp a.h ai.h b.cpp b.h
  CFLAGS=-ggdb -O0##This is wrong i
 know
  CXXFLAGS=-ggdb -O0  ##This is wrong i
 know
  INCLUDES=$(AXIS2_CFLAGS)
  LIBS=$(AXIS2_LIBS)
 
  ## GDB OUTPUT
 
  (gdb) r
  Starting program: /usr/local/bin/axis2_http_server
  [Thread debugging using libthread_db enabled]
  [New Thread 0xb764b8f0 (LWP 15514)]
  Started Simple Axis2 HTTP Server ...
  [New Thread 0xb764ab90 (LWP 15518)]
 
  Program received signal SIGSEGV, Segmentation fault.
  [Switching to Thread 0xb764ab90 (LWP 15518)]
  0x6c707061 in ?? ()
  (gdb) bt
 

Re: can't debug web service with the Simple HTTP Server!

2009-05-09 Thread Edgar Ricardo Gonzalez Lazaro
Solved! my source code was in a cpp file which is compiled with g++. I
changed the name of the file to c extension and the segmentation fault
has disappeared! it seems that the class_loader only supports libraries
compiled with gcc, is this right? or I must take another measures during
compilation time!

Thanks! :D


El sáb, 09-05-2009 a las 21:42 +0530, Rajika Kumarasiri escribió:
 
 
 On Sat, May 9, 2009 at 8:26 PM, Edgar Ricardo Gonzalez Lazaro
 ministroma...@gmail.com wrote:
 hi,
 Missing debugging info ? 
 
 
 HMMM! lol! I know how to debug the web service! the problem is
 when
 the Simple HTTP Server try to init my ws invoking my _init
 function,
 it falls and the back trace can't show the line where the
 segmentaton
 faul occurs!
 
 #0  0x6c707061 in ?? ()
 
 I have an idea. Ill try it!
 
 
 El sáb, 09-05-2009 a las 21:07 +0530, Rajika Kumarasiri
 escribió:
 
 
 
  On Sat, May 9, 2009 at 9:01 AM, Edgar Ricardo Gonzalez
 Lazaro
  ministroma...@gmail.com wrote:
  hi,
  Hello everybody! I am new in this list so... be
 nice, want
  you? lol
  sure. Try this out,
 
 http://wso2.org/library/tutorials/debugging-axis2-c-services-clients
 
  -Rajika
 
 
 
  Well, I am  writing web services with Axis2c I have
 built
  successfully
  one and is deployed on Apache2 and the Simple HTTP
 Server
  which is
  included with Axis2c distribution. But as usual with
 C, is
  falling with
  a segmentation fault, :D, this is not the problem,
 in fact i
  don't know
  if this is the place to make my question, but i am
 trying to
  set the
  --mode=compile flag to --mode=execute gdb for
 libtool
  because when i
  am debugging my web service i can't reach with gdb
 the code of
  the
  dynamic linked library which is my web service.
 
  I hope to be clear enough!
 
  Sorry if my English is bad! :(
 
  Thanks in advance
 
  Attached: the configure.in and Makefile.am code
 and gdb
  output.
 
  ## CONFIGURE.IN
 
  AC_PREREQ(2.61)
  AC_INIT(WS_NASTY, 0.0.1, x...@hotmail.com)
  AC_CONFIG_SRCDIR([src/])
  AC_CONFIG_HEADER([src/config.h])
  AC_CONFIG_FILES([Makefile src/Makefile])
  AC_ARG_WITH(axis2,
[ --with-axis2=path prefijo de la instalacion
 del axis2c
  e.g. /usr ],
[ AXIS2_PREFIX=$with_axis2 ],
AC_MSG_ERROR([Debes utilizar la opcion
 --with-axis2 para
  enlazar con
  esta biblioteca
por ejemplo --with-axis2=/usr])
  )
  AC_SUBST(AXIS2_PREFIX)
  AXIS2_LIBS=-L${AXIS2_PREFIX}/lib -laxutil
 -laxis2_axiom
  -laxis2_parser
  -laxis2_engine -laxis2_http_sender
 -laxis2_http_receiver
  AXIS2_CFLAGS=-I${AXIS2_PREFIX}/include/axis2-1.5.0
  AC_SUBST(AXIS2_LIBS)
  AC_SUBST(AXIS2_CFLAGS)
 
  AM_INIT_AUTOMAKE
  AC_PROG_LIBTOOL
  AC_PROG_CXX
  AC_OUTPUT
 
 
  ## MAKEFILE.AM
  prglibdir=$(prefix)/services/NastyWS
  prglib_LTLIBRARIES=libNastyWS.la
  prglib_DATA=services.xml
  libNastyWS_la_SOURCES=a.cpp a.h ai.h b.cpp b.h
  CFLAGS=-ggdb -O0##This is wrong i
 know
  CXXFLAGS=-ggdb -O0  ##This is wrong i
 know
  INCLUDES=$(AXIS2_CFLAGS)
  LIBS=$(AXIS2_LIBS)
 
  ## GDB OUTPUT
 
  (gdb) r
  Starting program: /usr/local/bin/axis2_http_server
  [Thread debugging using libthread_db enabled]
  [New Thread 0xb764b8f0 (LWP 15514)]
  Started Simple Axis2 HTTP Server ...
  [New Thread 0xb764ab90 (LWP 15518)]
 
  Program received signal SIGSEGV, Segmentation fault.
  [Switching to Thread 0xb764ab90 (LWP 15518)]
  0x6c707061 in ?? ()
  (gdb) bt
  #0  0x6c707061 in ?? ()