You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by "Terry, Nicole" <nt...@amazon.com> on 2003/06/30 01:55:28 UTC

GCC 2.95.3 and stlport-4.5 yield linker errors for StreamTransform sample

Hi,

When I build the StreamTransform sample for Xalan 1.5 with GCC 2.95.3 (no STLPort), it works just fine.  If I try to build it with STLPort, I get the following linker errors:

private/DEV.STD.PTHREAD/StreamTransform/StreamTransform.o: In function `_STL::basic_ostream<char, _STL::char_traits<char> > & _STL::endl<char, _STL::char_traits<char> >(_STL::basic_ostream<char, _STL::char_traits<char> > &)':
/opt/third-party/pkg/xalan-c-1.5/src/XalanDOM/XalanDOMString.hpp(.text+0xb8): undefined reference to `xalanc_1_5::XSLTInputSource::XSLTInputSource(_STL::basic_istream<char, _STL::char_traits<char> > *)'
/opt/third-party/pkg/xalan-c-1.5/src/XalanDOM/XalanDOMString.hpp(.text+0x15f): undefined reference to `xalanc_1_5::XSLTResultTarget::XSLTResultTarget(_STL::basic_ostream<char, _STL::char_traits<char> > &)'
/opt/third-party/pkg/xalan-c-1.5/src/XalanDOM/XalanDOMString.hpp(.text+0x177): undefined reference to `xalanc_1_5::XSLTInputSource::XSLTInputSource(_STL::basic_istream<char, _STL::char_traits<char> > *)'
collect2: ld returned 1 exit status

The full transcript follows.  Any help is appreciated,
Nicole


/workplace/nterry/desktop/src/appgroup/endo/business/EndoServer/StreamTransform> make
Parsing unit test dependency information...
echo Parsing dependency information...
Parsing dependency information...
Caching packages...
Caching packages...
cd /net/nterry.desktop.amazon.com/workplace/nterry/desktop/build/X86_LINUX_GCC2_GLIBC22/EndoServer/EndoServer-1.6 && env SUNPRO_DEPENDENCIES=/net/nterry.desktop.amazon.com/workplace/nterry/desktop/build/X86_LINUX_GCC2_GLIBC22/EndoServer/EndoServer-1.6/private/DEV.STD.PTHREAD/StreamTransform/StreamTransform.o.d  /opt/third-party/bin/g++  -g -ftemplate-depth-32 -Wall -O2 -mcpu=pentiumpro -D_GNU_SOURCE    -DUSE_STLPORT -pthread -D_PTHREADS -D_UNCAUGHT_EXCEPTION -D__STL_DECLARE_RANDOM_ACCESS_REVERSE_ITERATORS=_STLP_DECLARE_RANDOM_ACCESS_REVERSE_ITERATORS   -DBRAZIL_PACKAGE_VERSION=1.6 -I/net/nterry.desktop.amazon.com/workplace/nterry/desktop/src/appgroup/endo/business/EndoServer -I/net/nterry.desktop.amazon.com/workplace/nterry/desktop/src/appgroup/endo/business/EndoServer/build/private/DEV.STD.PTHREAD/idl -I/opt/third-party/pkg/xerces-c-2.2.0/include -I/opt/third-party/pkg/xalan-c-1.5/src -isystem /opt/third-party/pkg/stlport-4.5/include/stlport
-I/opt/third-party/pkg/icu-2.4/include -I/opt/third-party/pkg/boost-1.28/include -I/net/nterry.desktop.amazon.com/workplace/nterry/desktop/src/appgroup/endo/business/EndoServer -I/net/nterry.desktop.amazon.com/workplace/nterry/desktop/build/X86_LINUX_GCC2_GLIBC22/EndoServer/EndoServer-1.6/private/DEV.STD.PTHREAD -I/net/nterry.desktop.amazon.com/workplace/nterry/desktop/build/X86_LINUX_GCC2_GLIBC22/EndoServer/EndoServer-1.6/private/DEV.STD.PTHREAD/idl -I/net/nterry.desktop.amazon.com/workplace/nterry/desktop/src/appgroup/endo/business/EndoServer/build/private/DEV.STD.PTHREAD/idl      -o /net/nterry.desktop.amazon.com/workplace/nterry/desktop/build/X86_LINUX_GCC2_GLIBC22/EndoServer/EndoServer-1.6/private/DEV.STD.PTHREAD/StreamTransform/StreamTransform.o -c /net/nterry.desktop.amazon.com/workplace/nterry/desktop/src/appgroup/endo/business/EndoServer/StreamTransform/StreamTransform.cpp
cd /net/nterry.desktop.amazon.com/workplace/nterry/desktop/build/X86_LINUX_GCC2_GLIBC22/EndoServer/EndoServer-1.6 &&  /workplace/brazil-pkg-cache/bootstrap/BrazilTools/BrazilTools-2.0.0.90/scripts/ld-t-wrap /net/nterry.desktop.amazon.com/workplace/nterry/desktop/build/X86_LINUX_GCC2_GLIBC22/EndoServer/EndoServer-1.6/bin/DEV.STD.PTHREAD/streamtransform-test.ldmap /opt/third-party/bin/g++           -L/opt/third-party/pkg/stlport-4.5/lib   -Wl,-rpath,:/opt/third-party/pkg/xerces-c-2.2.0/lib:/opt/third-party/pkg/xalan-c-1.5/lib:/opt/third-party/pkg/stlport-4.5/lib:/opt/third-party/pkg/icu-2.4/lib::  private/DEV.STD.PTHREAD/StreamTransform/StreamTransform.o -Wl,-Bstatic /opt/third-party/pkg/xerces-c-2.2.0/lib/libxerces-c.so /opt/third-party/pkg/xalan-c-1.5/lib/libxalan-c1_5_0.so -lstlport_debug -Wl,-Bdynamic  -lrt -lpthread -Wl,-Bstatic   -Wl,-Bdynamic -lrt -lm -o
/net/nterry.desktop.amazon.com/workplace/nterry/desktop/build/X86_LINUX_GCC2_GLIBC22/EndoServer/EndoServer-1.6/bin/DEV.STD.PTHREAD/streamtransform-test
private/DEV.STD.PTHREAD/StreamTransform/StreamTransform.o: In function `_STL::basic_ostream<char, _STL::char_traits<char> > & _STL::endl<char, _STL::char_traits<char> >(_STL::basic_ostream<char, _STL::char_traits<char> > &)':
/opt/third-party/pkg/xalan-c-1.5/src/XalanDOM/XalanDOMString.hpp(.text+0xb8): undefined reference to `xalanc_1_5::XSLTInputSource::XSLTInputSource(_STL::basic_istream<char, _STL::char_traits<char> > *)'
/opt/third-party/pkg/xalan-c-1.5/src/XalanDOM/XalanDOMString.hpp(.text+0x15f): undefined reference to `xalanc_1_5::XSLTResultTarget::XSLTResultTarget(_STL::basic_ostream<char, _STL::char_traits<char> > &)'
/opt/third-party/pkg/xalan-c-1.5/src/XalanDOM/XalanDOMString.hpp(.text+0x177): undefined reference to `xalanc_1_5::XSLTInputSource::XSLTInputSource(_STL::basic_istream<char, _STL::char_traits<char> > *)'
collect2: ld returned 1 exit status
Died at /workplace/brazil-pkg-cache/bootstrap/BrazilTools/BrazilTools-2.0.0.90/scripts/ld-t-wrap line 19.
make: *** [/net/nterry.desktop.amazon.com/workplace/nterry/desktop/build/X86_LINUX_GCC2_GLIBC22/EndoServer/EndoServer-1.6/bin/DEV.STD.PTHREAD/streamtransform-test] Error 29

Re: GCC 2.95.3 and stlport-4.5 yield linker errors for StreamTransform sample

Posted by da...@us.ibm.com.



> Hi,
> When I build the StreamTransform sample for Xalan 1.5 with GCC 2.95.3 (no
STLPort),
> it works just fine.  If I try to build it with STLPort, I get the
following linker errors:
> private/DEV.STD.PTHREAD/StreamTransform/StreamTransform.o: In function
> `_STL::basic_ostream<char, _STL::char_traits<char> > & _STL::endl<char,
_STL::char_traits
> <char> >(_STL::basic_ostream<char, _STL::char_traits<char> > &)':
> /opt/third-party/pkg/xalan-c-1.5
/src/XalanDOM/XalanDOMString.hpp(.text+0xb8):
> undefined reference to
`xalanc_1_5::XSLTInputSource::XSLTInputSource(_STL::basic_istream<char,
> _STL::char_traits<char> > *)'

Hi Nicole,

This has nothing to do with Xalan itself.  You should either configure
STLport to use the compiler's native iostream implementation, or build and
link with the STLport's version of them.  This is explained clearly in the
STLport document -- see the configuration macro _STLP_NO_OWN_IOSTREAMS.

In the future, please post messages in plain text rather than HTML, as HTML
mail is a pain for many of us.

Dave