You are viewing a plain text version of this content. The canonical link for it is here.
Posted to p-dev@xerces.apache.org by Chance Harris <ch...@ticom-geo.com> on 2004/03/12 22:30:35 UTC
make test - cant find cout
having a 'make test' problem.
in on solaris 8.
using gcc 2.95.3 . Is this a problem? I know this version is getting pretty
crusty but we just haven't made the switch yet.
I got xerces-c-src_2_3_0, and it built no problem. Didn't install it, but
did set XERCESCROOT to /home/charris/xerces/xerces-c-src_2_3_0
perl Makefile.pl works fine.
make works find.
make test fails for pretty much every case because we can't find the symbol 'cout':
------------------------------------------------------------------------------------
make[1]: Leaving directory `/home/charris/xerces/XML-Xerces-2.3.0-4/Handler'
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/AttributeList...........Using /home/charris/xerces/XML-Xerces-2.3.0-4/blib
Can't load '/home/charris/xerces/XML-Xerces-2.3.0-4/blib/arch/auto/XML/Xerces/Xerces.so' for module XML::Xerces: ld.so.1: /usr/bin/perl: fatal: relocation error: file /home/charris/xerces/xerces-c-src_2_3_0/lib/libxerces-c.so.23: symbol cout: referenced symbol not found at /usr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 206.
at /home/charris/xerces/XML-Xerces-2.3.0-4/blib/lib/XML/Xerces.pm line 7
Compilation failed in require at t/AttributeList.t line 11.
BEGIN failed--compilation aborted at t/AttributeList.t line 11.
t/AttributeList...........dubious
Test returned status 255 (wstat 65280, 0xff00)
------------------------------------------------------------------------------------
my LD_LIBRARY_PATH is /usr/local/lib:/home/charris/xerces/xerces-c-src_2_3_0/lib,
and /usr/local/lib does indeed contain a mangled version of cout:
nm /usr/local/lib/libstdc++.so | grep cout
[4730] | 539056| 192|OBJT |GLOB |0 |2202 |_ZN9__gnu_cxx8buf_coutE
[3041] | 539776| 140|OBJT |GLOB |0 |2206 |_ZSt4cout
perl -w -Mblib ./t/actualCast.t
invoking test case directly w/ 'perl -w -Mblib ./t/actualCast.t' results in same error.
I build xerces-c-src_2_3_0 a few different ways, and always got error.
Most recent try was:
'./runConfigure -p solaris -c g++ -x g++ -r none'
------------------------------------------------------------------------------------
Hoping I'm doing something blatantly stupid that I just can't see because I've been
staring at it too long. Fearing this just isn't going to work with out a newer verison
of gcc.
any ideas?
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
Re: make test - cant find cout
Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
Chance Harris <ch...@ticom-geo.com> writes:
> having a 'make test' problem.
>
> in on solaris 8.
>
> using gcc 2.95.3 . Is this a problem? I know this version is getting pretty
> crusty but we just haven't made the switch yet.
>
> I got xerces-c-src_2_3_0, and it built no problem. Didn't install it, but
> did set XERCESCROOT to /home/charris/xerces/xerces-c-src_2_3_0
>
> perl Makefile.pl works fine.
> make works find.
>
> make test fails for pretty much every case because we can't find the
> symbol 'cout':
Hi Chance,
'cout' is a standard symbol defined by the iostream library. I don't
know how to get g++ should automatically link it in, but maybe 2.95
has issues.
Cheers,
jas.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org