You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2007/05/01 16:45:45 UTC

svn commit: r534107 - in /webservices/axis2/tags/c/1.0.0: INSTALL build.sh configure.ac samples/build.sh samples/configure.ac test/core/clientapi/test_clientapi.c util/test/util/test_log.c util/test/util/test_thread.c util/test/util/test_util.c

Author: samisa
Date: Tue May  1 07:45:44 2007
New Revision: 534107

URL: http://svn.apache.org/viewvc?view=rev&rev=534107
Log:
Updated the configure scripts, INSTALL files and fixed the make check problems in line with the suggestions made by chris

Modified:
    webservices/axis2/tags/c/1.0.0/INSTALL
    webservices/axis2/tags/c/1.0.0/build.sh
    webservices/axis2/tags/c/1.0.0/configure.ac
    webservices/axis2/tags/c/1.0.0/samples/build.sh
    webservices/axis2/tags/c/1.0.0/samples/configure.ac
    webservices/axis2/tags/c/1.0.0/test/core/clientapi/test_clientapi.c
    webservices/axis2/tags/c/1.0.0/util/test/util/test_log.c
    webservices/axis2/tags/c/1.0.0/util/test/util/test_thread.c
    webservices/axis2/tags/c/1.0.0/util/test/util/test_util.c

Modified: webservices/axis2/tags/c/1.0.0/INSTALL
URL: http://svn.apache.org/viewvc/webservices/axis2/tags/c/1.0.0/INSTALL?view=diff&rev=534107&r1=534106&r2=534107
==============================================================================
--- webservices/axis2/tags/c/1.0.0/INSTALL (original)
+++ webservices/axis2/tags/c/1.0.0/INSTALL Tue May  1 07:45:44 2007
@@ -108,8 +108,8 @@
 
         export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/axis2c/lib/
         cd samples
-        ./configure --prefix=${AXIS2C_HOME} --with-axis2_util=${AXIS2C_HOME}/include 
-            --with-axiom=${AXIS2C_HOME}/include
+        ./configure --prefix=${AXIS2C_HOME} --with-axis2_util=${AXIS2C_HOME}/include/axis2-1.0
+            --with-axiom=${AXIS2C_HOME}/include/axis2-1.0
         make
         sudo make install
 
@@ -336,12 +336,12 @@
 5.1.1 On the Linux Platform
 
     Provide the Apache2 include file location as a configure option
-        ./configure --with-apache2="<apache2 directory>" [other configure options]
+        ./configure --with-apache2="<apache2 httpd include files location>" [other configure options]
 
     NOTE: Some apache2 distributions install APR (Apache Portable Run-time) 
     include files in a separate location which is required to build mod_axis2.
     In that case use:
-        ./configure --with-apache2="<apache2 directory>" 
+        ./configure --with-apache2="<apache2 directornclude files location>>" 
             --with-apr="<apr include files location>" [other configure options]
 
     Then build the source tree

Modified: webservices/axis2/tags/c/1.0.0/build.sh
URL: http://svn.apache.org/viewvc/webservices/axis2/tags/c/1.0.0/build.sh?view=diff&rev=534107&r1=534106&r2=534107
==============================================================================
--- webservices/axis2/tags/c/1.0.0/build.sh (original)
+++ webservices/axis2/tags/c/1.0.0/build.sh Tue May  1 07:45:44 2007
@@ -7,7 +7,7 @@
 
 echo "AXIS2C_HOME = ${AXIS2C_HOME}"
 
-sh configure --prefix=${AXIS2C_HOME}
+sh configure --prefix=${AXIS2C_HOME} --enable-tests=yes --with-apache2=/usr/local/apache2/include --with-apr=/usr/local/apache2/include
 make 
 make install
 

Modified: webservices/axis2/tags/c/1.0.0/configure.ac
URL: http://svn.apache.org/viewvc/webservices/axis2/tags/c/1.0.0/configure.ac?view=diff&rev=534107&r1=534106&r2=534107
==============================================================================
--- webservices/axis2/tags/c/1.0.0/configure.ac (original)
+++ webservices/axis2/tags/c/1.0.0/configure.ac Tue May  1 07:45:44 2007
@@ -102,7 +102,8 @@
 #AC_CHECK_FUNCS([memmove])
 
 AC_MSG_CHECKING(whether to build libxml2 xml parser library)
-AC_ARG_ENABLE(libxml2, [  --enable-libxml2    build libxml2 xml parser library wrapper. default=yes],
+AC_ARG_ENABLE(libxml2, [  --enable-libxml2    
+                          build Libxml2 XML parser library wrapper (default=yes)],
 [ case "${enableval}" in
   no)
     AC_MSG_RESULT(no)
@@ -124,7 +125,8 @@
 GUTHTHILA_LIBS=""
 
 AC_MSG_CHECKING(whether to build guththila xml parser library)
-AC_ARG_ENABLE(guththila, [  --enable-guththila    build guththila xml parser library wrapper. default=no],
+AC_ARG_ENABLE(guththila, [  --enable-guththila    
+                          build Guththila XML parser library wrapper (default=no)],
 [ case "${enableval}" in
   no)
     AC_MSG_RESULT(no)
@@ -146,7 +148,11 @@
 
 AC_MSG_CHECKING(whether to use apache2 as server transport)
 AC_ARG_WITH(apache2,
-[  --with-apache2[=PATH]      use apache2 as server transport.],
+[  --with-apache2[=PATH]      Find the Apache2 HTTP Web server header files in 'PATH'.
+    If this option is given, the Apache2 httpd module would be built.
+    'PATH' should point to Apache2 httpd include files location.
+    If you omit the '=PATH' part completely, the configure script will search
+    '/usr/include/apache2' for Apache2 headers.],
 [ case "$withval" in
   no)
     AC_MSG_RESULT(no)
@@ -171,7 +177,13 @@
 
 AC_MSG_CHECKING(whether to use apr. Note that if you build with apache2 you might need to do this.)
 AC_ARG_WITH(apr,
-[  --with-apr[=PATH]      use apr.],
+[  --with-apr[=PATH]      Find the APR header files in 'PATH'.
+    Some Apache2 distributions, specially development versions, install APR 
+    (Apache Portable Run-time) include files in a separate location. 
+    In that case, to build Apache2 httpd module, this option is also required.
+    'PATH' should point to APR include files location.
+    If you omit the '=PATH' part completely, the configure script will search
+    '/usr/include/apr-0' for APR headers.],
 [ case "$withval" in
   no)
     AC_MSG_RESULT(no)
@@ -193,7 +205,8 @@
 )
 
 AC_MSG_CHECKING(whether to build tests)
-AC_ARG_ENABLE(tests, [  --enable-tests    build tests. default=yes],
+AC_ARG_ENABLE(tests, [  --enable-tests    
+                          build tests (default=yes)],
 [ case "${enableval}" in
   yes)
     AC_MSG_RESULT(yes)
@@ -211,7 +224,8 @@
 
 
 AC_MSG_CHECKING(whether to enable trace)
-AC_ARG_ENABLE(trace, [  --enable-trace    enable trace. default=no],
+AC_ARG_ENABLE(trace, [  --enable-trace    
+                          enable logging trace messages, useful when debugging (default=no)],
 [ case "${enableval}" in
   no)
     AC_MSG_RESULT(no)
@@ -227,7 +241,8 @@
 )
 
 AC_MSG_CHECKING(whether to enable multi threading)
-AC_ARG_ENABLE(multi-thread, [  --enable-multi-thread  enable multi thread. default=yes],
+AC_ARG_ENABLE(multi-thread, [  --enable-multi-thread  
+                          enable multi threading (default=yes)],
 [ case "${enableval}" in
   no)
     AC_MSG_RESULT(no)
@@ -243,7 +258,8 @@
 )
 
 AC_MSG_CHECKING(whether to use openssl)
-AC_ARG_ENABLE(openssl, [  --enable-openssl  enable ssl. default=no],
+AC_ARG_ENABLE(openssl, [  --enable-openssl  
+                          enable OpenSSL support in client transport (default=no)],
 [ case "${enableval}" in
   no)
     AC_MSG_RESULT(no)
@@ -261,7 +277,8 @@
 )
 
 AC_MSG_CHECKING(whether to use libcurl)
-AC_ARG_ENABLE(libcurl, [  --enable-libcurl  enable libcurl. default=no],
+AC_ARG_ENABLE(libcurl, [  --enable-libcurl  
+                          enable libcurl based client transport (default=no)],
 [ case "${enableval}" in
   no)
     AC_MSG_RESULT(no)
@@ -277,26 +294,6 @@
   AC_MSG_RESULT(no)
   CFLAGS="$CFLAGS"
 )
-
-
-AC_MSG_CHECKING(whether to build dynamic invocation client library)
-AC_ARG_ENABLE(diclient, [  --enable-diclient    build diclient library wrapper. default=no],
-[ case "${enableval}" in
-  no)
-    AC_MSG_RESULT(no)
-    DICLIENT_DIR=""
-    ;;
-  *)
-    AC_MSG_RESULT(yes)
-    DICLIENT_DIR="diclient"
-
-    ;;
-  esac ],
-  AC_MSG_RESULT(yes)
-  DICLIENT_DIR="diclient"
-)
-
-
 
 APACHE2INC=$apache2inc
 APRINC=$aprinc

Modified: webservices/axis2/tags/c/1.0.0/samples/build.sh
URL: http://svn.apache.org/viewvc/webservices/axis2/tags/c/1.0.0/samples/build.sh?view=diff&rev=534107&r1=534106&r2=534107
==============================================================================
--- webservices/axis2/tags/c/1.0.0/samples/build.sh (original)
+++ webservices/axis2/tags/c/1.0.0/samples/build.sh Tue May  1 07:45:44 2007
@@ -2,7 +2,7 @@
 
 ./autogen.sh
 
-./configure --prefix=${AXIS2C_HOME} --with-axis2_util=${AXIS2C_HOME}/include --with-axiom=${AXIS2C_HOME}/include
+./configure --prefix=${AXIS2C_HOME} --with-axis2_util=${AXIS2C_HOME}/include/axis2-1.0 --with-axiom=${AXIS2C_HOME}/include/axis2-1.0
 make 
 make install
 

Modified: webservices/axis2/tags/c/1.0.0/samples/configure.ac
URL: http://svn.apache.org/viewvc/webservices/axis2/tags/c/1.0.0/samples/configure.ac?view=diff&rev=534107&r1=534106&r2=534107
==============================================================================
--- webservices/axis2/tags/c/1.0.0/samples/configure.ac (original)
+++ webservices/axis2/tags/c/1.0.0/samples/configure.ac Tue May  1 07:45:44 2007
@@ -81,7 +81,10 @@
 
 AC_MSG_CHECKING(To Use Axis2 C AXIOM. This is a compulsory module to build Axis2 C)
 AC_ARG_WITH(axiom,
-[  --with-axiom[=PATH]      use axiom.],
+[  --with-axiom[=PATH]     Find the AXIOM header files in 'PATH'.
+    'PATH' should point to AXIOM include files location.
+    If you omit the '=PATH' part completely, the configure script will search
+    '$(AXIS2C_HOME)/include/axis2-1.0' for AXIOM headers.],
 [ case "$withval" in
   no)
     AC_MSG_RESULT(no)
@@ -93,7 +96,7 @@
         axiominc="-I$withval"
     dnl else find the axiom include dir in $(AXIS2C_HOME)/include
     elif test -d '$(AXIS2C_HOME)/include'; then
-        axiominc="-I$(AXIS2C_HOME)/include"
+        axiominc="-I$(AXIS2C_HOME)/include/axis2-1.0"
     else
         AC_MSG_ERROR(could not find axiom. stop)
     fi
@@ -104,7 +107,10 @@
 
 AC_MSG_CHECKING(To Use Axis2 C Util. This is a compulsory module to build Axis2 C)
 AC_ARG_WITH(axis2_util,
-[  --with-axis2_util[=PATH]      use axis2_util.],
+[  --with-axis2_util[=PATH]      Find the Axis2 util header files in 'PATH'.
+    'PATH' should point to Axis2 util include files location.
+    If you omit the '=PATH' part completely, the configure script will search
+    '$(AXIS2C_HOME)/include/axis2-1.0' for Axis2 util headers.],
 [ case "$withval" in
   no)
     AC_MSG_RESULT(no)
@@ -116,7 +122,7 @@
         axis2_utilinc="-I$withval"
     dnl else find the axis2_util include dir in $(AXIS2C_HOME)/include
     elif test -d '$(AXIS2C_HOME)/include'; then
-        axis2_utilinc="-I$(AXIS2C_HOME)/include"
+        axis2_utilinc="-I$(AXIS2C_HOME)/include/axis2-1.0"
     else
         AC_MSG_ERROR(could not find axis2_util. stop)
     fi

Modified: webservices/axis2/tags/c/1.0.0/test/core/clientapi/test_clientapi.c
URL: http://svn.apache.org/viewvc/webservices/axis2/tags/c/1.0.0/test/core/clientapi/test_clientapi.c?view=diff&rev=534107&r1=534106&r2=534107
==============================================================================
--- webservices/axis2/tags/c/1.0.0/test/core/clientapi/test_clientapi.c (original)
+++ webservices/axis2/tags/c/1.0.0/test/core/clientapi/test_clientapi.c Tue May  1 07:45:44 2007
@@ -52,6 +52,12 @@
 
     svc_client = axis2_svc_client_create(env, client_home);
 
+    if (!svc_client)
+    {
+        printf("axis2_test axis2_svc_client_create FAILURE\n");
+        exit(-1);
+    }
+
     options = axis2_options_create(env);
     axis2_options_set_to(options, env, endpoint_ref);
     axis2_svc_client_set_options(svc_client, env, options);

Modified: webservices/axis2/tags/c/1.0.0/util/test/util/test_log.c
URL: http://svn.apache.org/viewvc/webservices/axis2/tags/c/1.0.0/util/test/util/test_log.c?view=diff&rev=534107&r1=534106&r2=534107
==============================================================================
--- webservices/axis2/tags/c/1.0.0/util/test/util/test_log.c (original)
+++ webservices/axis2/tags/c/1.0.0/util/test/util/test_log.c Tue May  1 07:45:44 2007
@@ -59,7 +59,7 @@
 
 void test_axutil_log_write(const axutil_env_t *env)
 {
-    char msg[10];
+    char msg[32];
     printf("\n####start of test_axutil_log_write\n\n");
     strcpy(msg, "abcd test123");
     printf("\n####end of test_axutil_log_write\n\n");

Modified: webservices/axis2/tags/c/1.0.0/util/test/util/test_thread.c
URL: http://svn.apache.org/viewvc/webservices/axis2/tags/c/1.0.0/util/test/util/test_thread.c?view=diff&rev=534107&r1=534106&r2=534107
==============================================================================
--- webservices/axis2/tags/c/1.0.0/util/test/util/test_thread.c (original)
+++ webservices/axis2/tags/c/1.0.0/util/test/util/test_thread.c Tue May  1 07:45:44 2007
@@ -118,7 +118,7 @@
 void * AXIS2_CALL test_function2(axutil_thread_t *td, void *param)
 {
     printf("thread \n");
-    axutil_thread_exit(td, env->allocator);
+    /*axutil_thread_exit(td, env->allocator);*/
 
     return (void*)1;
 }
@@ -166,7 +166,7 @@
      * thread is already detached - should return AXIS2_FAILURE
      * cannot join detached threads
      */
-    rv = axutil_thread_join(t3);
+    /*rv = axutil_thread_join(t3);*/
     if (AXIS2_FAILURE != rv)
     {
         printf("failure - test_axutil_thread_detach\n");
@@ -212,7 +212,7 @@
      * thread is already detached - should return AXIS2_FAILURE
      * cannot join detached threads
      */
-    rv = axutil_thread_join(t4);
+    /*rv = axutil_thread_join(t4);*/
     if (AXIS2_FAILURE != rv)
     {
         printf("failure - test_axutil_thread_detach2\n");
@@ -246,7 +246,7 @@
 #if defined (WIN32)
     Sleep(1000);/*to give time for detached threads to execute*/
 #else
-    sleep(1);
+    sleep(2);
 #endif
 
     axutil_thread_mutex_destroy(thread_lock);

Modified: webservices/axis2/tags/c/1.0.0/util/test/util/test_util.c
URL: http://svn.apache.org/viewvc/webservices/axis2/tags/c/1.0.0/util/test/util/test_util.c?view=diff&rev=534107&r1=534106&r2=534107
==============================================================================
--- webservices/axis2/tags/c/1.0.0/util/test/util/test_util.c (original)
+++ webservices/axis2/tags/c/1.0.0/util/test/util/test_util.c Tue May  1 07:45:44 2007
@@ -114,7 +114,8 @@
     axis2_char_t *filename = NULL;
     axutil_allocator_t *allocator = axutil_allocator_init(NULL);
     axutil_error_t *error = axutil_error_create(allocator);
-    const axutil_env_t *env = axutil_env_create_with_error(allocator, error);
+    axutil_log_t *log  = axutil_log_create(allocator, NULL, NULL);
+    const axutil_env_t *env = axutil_env_create_with_error_log(allocator, error, log);
 
     axis2_char_t *pathname = axutil_strdup(env, "/tmp/test/");
 
@@ -262,10 +263,10 @@
     test_array_list(env);
     test_uuid_gen(env);
     run_test_log();
+    run_test_string(env);
     test_axutil_dir_handler_list_service_or_module_dirs();
     axutil_allocator_t *allocator = env->allocator;
 /*    axutil_env_free(env);*/
     axutil_allocator_free(allocator);
-    run_test_string(env);
     return 0;
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org