axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dushshantha Chandaradasa <dushshantha.chandarad...@gmail.com>
Subject Re: Error while building 1.4 with apach-2.0.52 and xerces-c-2.6
Date Mon, 07 Feb 2005 02:40:11 GMT
Hi Ranganath,

Did you set following environment variables correctly???

AXISCPP_HOME="Path to Axis C++ source or binary extracted folder" 
e.g. AXISCPP_HOME="/my/home/axiscpp" 

AXISCPP_DEPLOY="Path to the folder where you want to install Axis C++" 
e.g. AXISCPP_DEPLOY="/usr/local/axiscpp_deploy" 
LD_LIBRARY_PATH="<path to parser library you
use>/lib:$AXISCPP_DEPLOY/lib:$LD_LIBRARY_PATH"
export AXISCPP_HOME AXISCPP_DEPLOY LD_LIBRARY_PATH 


you can use following command to do that.

export AXISCPP_HOME="path to the Axis C++ Source folder"
 ex:  export AXISCPP_HOME="/home/dushshantha/axiscpp"

You have to first set these variables in the terminal window before
you execute ./configure , make and make install commands.

Remember that u have to have super user rights to run these commands.

to make above settings permenent, its better to add variable seeting
commands in /etc/bashrc file.

vi /etc/bashrc

Dushshantha




On Sun, 06 Feb 2005 13:44:55 -0600, Venkatesh Prasad Ranganath
<vranganath@sbcglobal.net> wrote:
> Hi,
> 
> The build fails at the following location.
> 
> make[5]: Entering directory `/home/venku/testing/axis-c-src-1-4-linux/src/server/simple_axis_server'
> g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include -Wall -Wshadow -DENABLE_AXISTRACE
-Wall -Wshadow -DENABLE_AXISTRACE  -I/usr/include/apache2 -I/usr/include/xercesc -I/usr/include/apr-0
-L/usr/lib/apache2/modules -c SimpleAxisTransport.cpp
> g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include -Wall -Wshadow -DENABLE_AXISTRACE
-Wall -Wshadow -DENABLE_AXISTRACE  -I/usr/include/apache2 -I/usr/include/xercesc -I/usr/include/apr-0
-L/usr/lib/apache2/modules -c SimpleAxisServer.cpp
> /bin/sh ../../../libtool --mode=link g++  -I/usr/include/apache2 -I/usr/include/xercesc
-I/usr/include/apr-0 -L/usr/lib/apache2/modules -lstdc++ -o simple_axis_server  SimpleAxisTransport.o
SimpleAxisServer.o -lstdc++ -L/home/venku/testing/axis-c-src-1-4-linux/src/engine/server ../../common/libcommon.la
-lserver_engine -ldl -lpthread
> mkdir .libs
> g++ -I/usr/include/apache2 -I/usr/include/xercesc -I/usr/include/apr-0 -o .libs/simple_axis_server
SimpleAxisTransport.o SimpleAxisServer.o  -L/usr/lib/apache2/modules -lstdc++ -L/home/venku/testing/axis-c-src-1-4-linux/src/engine/server
../../common/.libs/libcommon.a /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so
-ldl -lpthread -Wl,--rpath -Wl,/home/venku/testing/axiscpp/lib
> SimpleAxisServer.o(.text+0x195): In function `handleTCPClient(int)':
> : undefined reference to `process_request(axiscpp::SOAPTransport*)'
> SimpleAxisServer.o(.text+0x2a8): In function `main':
> : undefined reference to `initialize_module'
> SimpleAxisServer.o(.text+0x385): In function `main':
> : undefined reference to `uninitialize_module'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `g_pHandlerPool'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `g_pConfig'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `axiscpp::AxisEngine::initialize()'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `axiscpp::HandlerPool::getResponseFlowHandlerChain(axiscpp::HandlerChain**,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >&,
axiscpp::WSDDService const*)'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `axiscpp::HandlerPool::poolWebService(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >&, axiscpp::BasicHandler*, axiscpp::WSDDHandler const*)'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `axiscpp::AxisEngine::AxisEngine[not-in-charge]()'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `axiscpp::AxisEngineException::~AxisEngineException [in-charge]()'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `typeinfo for axiscpp::AxisEngine'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `axiscpp::AxisEngineException::AxisEngineException[in-charge](int)'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `axiscpp::AxisEngine::initializeHandlers(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&, AXIS_PROTOCOL_TYPE)'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `axiscpp::HandlerPool::getRequestFlowHandlerChain(axiscpp::HandlerChain**,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >&,
axiscpp::WSDDService const*)'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `axiscpp::HandlerPool::poolHandlerChain(axiscpp::HandlerChain*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&)'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `axiscpp::AxisEngine::unInitialize()'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `axiscpp::AxisEngine::~AxisEngine [not-in-charge]()'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `axiscpp::XMLParserFactory::getParserObject()'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `axiscpp::XMLParserFactory::destroyParserObject(XMLParser*)'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `g_pWSDDDeployment'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `typeinfo for axiscpp::AxisEngineException'
> /home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so:
undefined reference to `axiscpp::HandlerPool::getWebService(axiscpp::BasicHandler**, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&, axiscpp::WSDDHandler const*)'
> 
> The apache2 server "module" builds correctly with the following commands.
> 
> make[4]: Entering directory `/home/venku/testing/axis-c-src-1-4-linux/src/server/apache2'
> /bin/sh ../../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr//include
-I../../../include  -Wall -Wshadow -DENABLE_AXISTRACE  -I/usr/include/apache2 -I/usr/include/xercesc
-I/usr/include/apr-0 -L/usr/lib/apache2/modules -c mod_axis2.cpp
> mkdir .libs
> g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr//include -I../../../include -Wall -Wshadow
-DENABLE_AXISTRACE -I/usr/include/apache2 -I/usr/include/xercesc -I/usr/include/apr-0 -L/usr/lib/apache2/modules
-Wp,-MD,.deps/mod_axis2.pp -c mod_axis2.cpp  -fPIC -DPIC -o .libs/mod_axis2.o
> mod_axis2.cpp:80: warning: `void axis_Init(server_rec*, apr_pool_t*)' defined
>   but not used
> mod_axis2.cpp:85: warning: `void axis_Fini(server_rec*, apr_pool_t*)' defined
>   but not used
> /bin/sh ../../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr//include
-I../../../include  -Wall -Wshadow -DENABLE_AXISTRACE  -I/usr/include/apache2 -I/usr/include/xercesc
-I/usr/include/apr-0 -L/usr/lib/apache2/modules -c Apache2Transport.cpp
> g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr//include -I../../../include -Wall -Wshadow
-DENABLE_AXISTRACE -I/usr/include/apache2 -I/usr/include/xercesc -I/usr/include/apr-0 -L/usr/lib/apache2/modules
-Wp,-MD,.deps/Apache2Transport.pp -c Apache2Transport.cpp  -fPIC -DPIC -o .libs/Apache2Transport.o
> /bin/sh ../../../libtool --mode=link g++  -I/usr/include/apache2 -I/usr/include/xercesc
-I/usr/include/apr-0 -L/usr/lib/apache2/modules -lstdc++ -o libaxiscpp_mod2.la -rpath /home/venku/testing/axiscpp/lib
 mod_axis2.lo Apache2Transport.lo -lstdc++ -L/home/venku/testing/axis-c-src-1-4-linux/src/engine/server
-lserver_engine -ldl
> g++ -shared -nostdlib /usr/lib/gcc-lib/i486-linux/3.3.5/../../../crti.o /usr/lib/gcc-lib/i486-linux/3.3.5/crtbeginS.o
 .libs/mod_axis2.o .libs/Apache2Transport.o  -Wl,--rpath -Wl,/home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs
-Wl,--rpath -Wl,/home/venku/testing/axiscpp/lib -L/usr/lib/apache2/modules -L/home/venku/testing/axis-c-src-1-4-linux/src/engine/server
/home/venku/testing/axis-c-src-1-4-linux/src/engine/server/.libs/libserver_engine.so -ldl
-L/usr/lib/gcc-lib/i486-linux/3.3.5 -L/usr/lib/gcc-lib/i486-linux/3.3.5/../../.. -lstdc++
-lm -lc -lgcc_s /usr/lib/gcc-lib/i486-linux/3.3.5/crtendS.o /usr/lib/gcc-lib/i486-linux/3.3.5/../../../crtn.o
 -Wl,-soname -Wl,libaxiscpp_mod2.so.0 -o .libs/libaxiscpp_mod2.so.0.0.0
> (cd .libs && rm -f libaxiscpp_mod2.so.0 && ln -s libaxiscpp_mod2.so.0.0.0
libaxiscpp_mod2.so.0)
> (cd .libs && rm -f libaxiscpp_mod2.so && ln -s libaxiscpp_mod2.so.0.0.0
libaxiscpp_mod2.so)
> creating libaxiscpp_mod2.la
> (cd .libs && rm -f libaxiscpp_mod2.la && ln -s ../libaxiscpp_mod2.la
libaxiscpp_mod2.la)
> make[4]: Leaving directory `/home/venku/testing/axis-c-src-1-4-linux/src/server/apache2'
> 
> Any clues why is the build failing?
> 
> --
> 
> Venkatesh Prasad Ranganath,
> Dept. Computing and Information Science,
> Kansas State University, US.
> web: http://www.cis.ksu.edu/~rvprasad
> 
>

Mime
View raw message