axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Burton <bbur...@motive.com>
Subject Re: Compiling Axis C++ for Mac OS X 10.3
Date Fri, 09 Jul 2004 21:01:46 GMT
Ding Ding Ding.  We have a winner.  That is all it took to get it to 
work.

Thanks a bunch.

Brian

On Jul 9, 2004, at 1:53 PM, Kenneth Chiu wrote:

> Try removing -lstdc++ from the compile line.  This will be
> added by the g++ automatically, so should not normally be
> necessary.
>
> On Fri, 9 Jul 2004, Brian Burton wrote:
>
>> I am having a bit of difficulty in linking the various pieces (client
>> engine, specifically).  After building the expat and xerces-c, I build
>> the Axis C++ (version 1.2 for linux) and during the linkage of the
>> client engine (the server engine has the same problem, btw), I get the
>> following (I set the optimization to 0 by setting the CXXFLAGS in the
>> configuration.ac file):
>>
>> /bin/sh ../../../libtool --mode=link g++  -O0 -g  -s -lstdc++ -o
>> libaxiscpp_client.la -rpath
>> /Users/bburton/Dev/DevSrc/HighEnd/DL2/axis-c-src-1-2-beta-linux/bin
>> Axis.lo ClientAxisEngine.lo AxisEngine.lo HandlerChain.lo
>> HandlerLoader.lo HandlerPool.lo AppScopeHandlerPool.lo
>> DeserializerPool.lo RequestScopeHandlerPool.lo SerializerPool.lo
>> SessionScopeHandlerPool.lo SharedObject.lo Call.lo Stub.lo
>> AxisEngineException.lo SOAPTransportFactory.lo XMLParserFactory.lo -s
>> -lstdc++ ../../common/libcommon.la ../../soap/libsoap.la
>> ../../wsdd/libwsdd.la ../../xml/libxml.la
>> g++ -dynamiclib  -single_module -flat_namespace -undefined suppress -o
>> .libs/libaxiscpp_client.0.dylib  .libs/Axis.o .libs/ClientAxisEngine.o
>> .libs/AxisEngine.o .libs/HandlerChain.o .libs/HandlerLoader.o
>> .libs/HandlerPool.o .libs/AppScopeHandlerPool.o
>> .libs/DeserializerPool.o .libs/RequestScopeHandlerPool.o
>> .libs/SerializerPool.o .libs/SessionScopeHandlerPool.o
>> .libs/SharedObject.o .libs/Call.o .libs/Stub.o
>> .libs/AxisEngineException.o .libs/SOAPTransportFactory.o
>> .libs/XMLParserFactory.o -all_load  ../../common/.libs/libcommon.a
>> ../../soap/.libs/libsoap.a ../../wsdd/.libs/libwsdd.a
>> ../../xml/.libs/libxml.a  -lstdc++  -install_name
>> /Users/bburton/Dev/DevSrc/HighEnd/DL2/axis-c-src-1-2-beta-linux/bin/
>> libaxiscpp_client.0.dylib -compatibility_version 1 -current_version 
>> 1.0
>>
>> ld: multiple definitions of symbol
>> _ZNKSt12_Base_bitsetILm1EE15_M_do_find_nextEmm.eh
>> /usr/lib/gcc/darwin/3.3/libstdc++.a(bitset.o) private external
>> definition of absolute
>> _ZNKSt12_Base_bitsetILm1EE15_M_do_find_nextEmm.eh (value 0x0)
>> /usr/lib/gcc/darwin/3.3/libstdc++.a(bitset.o) private external
>> definition of absolute
>> _ZNKSt12_Base_bitsetILm1EE15_M_do_find_nextEmm.eh (value 0x0)
>> ld: multiple definitions of symbol
>> _ZNKSt12_Base_bitsetILm1EE16_M_do_find_firstEm.eh
>> /usr/lib/gcc/darwin/3.3/libstdc++.a(bitset.o) private external
>> definition of absolute
>> _ZNKSt12_Base_bitsetILm1EE16_M_do_find_firstEm.eh (value 0x0)
>> /usr/lib/gcc/darwin/3.3/libstdc++.a(bitset.o) private external
>> definition of absolute
>> _ZNKSt12_Base_bitsetILm1EE16_M_do_find_firstEm.eh (value 0x0)
>> ld: multiple definitions of symbol std::_Base_bitset<(unsigned
>> long)1>::_M_do_find_next(unsigned long, unsigned long) const
>> /usr/lib/gcc/darwin/3.3/libstdc++.a(bitset.o) private external
>> definition of std::_Base_bitset<(unsigned
>> long)1>::_M_do_find_next(unsigned long, unsigned long) const in 
>> section
>> (__TEXT,__text)
>>
>> The libtool generates (I added the -v for debugging)
>>
>> g++ -v -dynamiclib  -single_module -flat_namespace -undefined suppress
>> -o .libs/libaxiscpp_client.0.dylib  .libs/Axis.o .l
>> ibs/ClientAxisEngine.o .libs/AxisEngine.o .libs/HandlerChain.o
>> .libs/HandlerLoader.o .libs/HandlerPool.o .libs/AppScopeHan
>> dlerPool.o .libs/DeserializerPool.o .libs/RequestScopeHandlerPool.o
>> .libs/SerializerPool.o .libs/SessionScopeHandlerPool.o
>>   .libs/SharedObject.o .libs/Call.o .libs/Stub.o
>> .libs/AxisEngineException.o .libs/SOAPTransportFactory.o
>> .libs/XMLParserFa
>> ctory.o -all_load  ../../common/.libs/libcommon.a
>> ../../soap/.libs/libsoap.a ../../wsdd/.libs/libwsdd.a
>> ../../xml/.libs/li
>> bxml.a  -lstdc++  -install_name
>> /Users/bburton/Dev/DevSrc/HighEnd/DL2/axis-c-src-1-2-beta-linux/bin/
>> libaxiscpp_client.0.d
>> ylib -compatibility_version 1 -current_version 1.0
>>
>> the g++ generates the following:
>> Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
>> Thread model: posix
>> gcc version 3.3 20030304 (Apple Computer, Inc. build 1640)
>>   /usr/bin/libtool -arch_only ppc -dynamic -compatibility_version 1
>> -current_version 1.0 -install_name
>> /Users/bburton/Dev/DevSrc/HighEnd/DL2/axis-c-src-1-2-beta-linux/bin/
>> libaxiscpp_client.0.dylib -all_load -flat_namespace -single_module
>> -undefined suppress -o .libs/libaxiscpp_client.0.dylib
>> -L/usr/lib/gcc/darwin/3.3 -L/usr/lib/gcc/darwin
>> -L/usr/libexec/gcc/darwin/ppc/3.3/../../.. .libs/Axis.o
>> .libs/ClientAxisEngine.o .libs/AxisEngine.o .libs/HandlerChain.o
>> .libs/HandlerLoader.o .libs/HandlerPool.o .libs/AppScopeHandlerPool.o
>> .libs/DeserializerPool.o .libs/RequestScopeHandlerPool.o
>> .libs/SerializerPool.o .libs/SessionScopeHandlerPool.o
>> .libs/SharedObject.o .libs/Call.o .libs/Stub.o
>> .libs/AxisEngineException.o .libs/SOAPTransportFactory.o
>> .libs/XMLParserFactory.o ../../common/.libs/libcommon.a
>> ../../soap/.libs/libsoap.a ../../wsdd/.libs/libwsdd.a
>> ../../xml/.libs/libxml.a -lstdc++ -lstdc++ -lgcc -lSystem |
>>   c++filt3
>> /usr/bin/libtool: internal link edit command failed
>>
>>
>> I am using gcc 3.3 on OS X 10.3.4
>>
>> So, has anyone on this list built AxisC++ for Mac OS X?
>>
>> Brian
>>
>


Mime
View raw message