Vitaly wrote:
>So your xercesc library doesn't contain SocketNetAccessor after compiling. But
>another library with SocketNetAccessor
>implementation has been used by your program in runtime.
>May be the problem is in this linker option (look at two different xercesc
>folders):
>Wl,/net/sinai/home/d/dcd9420/labs/xercesLab/xercesc-3.0.1/src/.libs:/site/sw/ots/curl/curl-7.19.6/lib:/site/ots/xerces/xerces-c-3.0.1/lib
=======================================================================================
I first configure Xerces to use plain sockets using the following configure
options:
./configure --prefix=/site/sw/ots/xerces/xerces-c-3.0.1
--exec-prefix=/site/sw/ots/xerces/xerces-c-3.0.1 CXX=/opt/aCC/bin/aCC
CXXFLAGS="-Aa -mt -g" --enable-netaccessor-socket
I then ran the configure with the following options to enable curl Netaccessor
when I got the curl lib to build:
./configure --prefix=/site/sw/ots/xerces/xerces-c-3.0.1
--exec-prefix=/site/ots/xerces/xerces-c-3.0.1 CXX=/opt/aCC/bin/aCC
CXXFLAGS="-Aa -mt -g" CPPFLAGS="-I/site/sw/ots/curl/curl-7.19.6/include"
--enable-netaccessor-curl --with-curl=/site/sw/ots/curl/curl-7.19.6
I never set the LDFLAGS compiler variable, so I do not know why the compiler is
picking up
-Wl,+b
-Wl,/net/sinai/home/d/dcd9420/labs/xercesLab/xerces-c-3.0.1/src/.libs:/site/sw/ots/curl/curl-7.19.6/lib:/site/ots/xerces/xerces-c-3.0.1/lib
For instance:
libtool: link: `XInclude' will be relinked during installation /opt/aCC/bin/aCC
-Aa -mt -g -D_REENTRANT -o .libs/XInclude src/XInclude/XInclude.o
../src/.libs/libxerces-c.sl -L/site/sw/ots/curl/curl-7.19.6/lib -lnsl -lpthread
/site/sw/ots/curl/curl-7.19.6/lib/libcurl.sl -lldap -Wl,+b
-Wl,/net/sinai/home/d/dcd9420/labs/xercesLab/xerces-c-3.0.1/src/.libs:/site/sw/ots/curl/curl-7.19.6/lib:/site/ots/xerces/xerces-c-3.0.1/lib
creating Xinclude
Q/A - I did run gmake clean before building the curl netAccessor, but maybe I
need to run a specific clean operation of the Makefile. Besides issuing gmake
clean, is there another clean operation that needs to be run?
Q/A - When you say "another library with SocketNetAccessor being used", are
referring to a library other than Xerces? And if so, how would another 3rd
party library using SocketNetAccessor impact Xerces library?
Q/A - Also, if there another library with SocketNetAccessor being used, how do
I determine which library and how to remove it from the build process?
Q/A - Why is the Makefile being configured with '-Wl,+b
-Wl,/net/sinai/home/d/dcd9420/labs/xercesLab/xerces-c-3.0.1/src/.libs:/site/sw/ots/curl/curl-7.19.6/lib:/site/ots/xerces/xerces-c-3.0.1/lib'?
I'm not specifying this in the configure options.
Thanks