Hej Sigurd,
"Sigurd Mytting" <[EMAIL PROTECTED]> writes:
> I've browsed the listarchives the last few days looking for
> something indicating that it's possible to compile xerces-c and
> xerces-p using the Sun Forte (Workshop) Compiler.
There was some discussion of compiling Xerces-C using Forte on
xerces-c-dev, you may want to check that discussion for details.
> I have to edit both Makefile and Handler/Makefile, setting CC to CC,
> not cc.
Perl will use the same C++ compiler that was used to compile it, all
this info is stored in Config.pm. If you're using Perl compiled with
g++ together with libraries compiled with CC, I would be wary.
> System is a Sun Blade-1000, Solaris 8 04/01, compiler is Sun Forte 6
> update 1, perl is 5.6.1 compiled from source using Forte.
If Perl is setting CC to g++, you're perl is not compiled with Forte.
> Digging a little bit gives me
>
> orthognatha /var/tmp/XML-Xerces-1.5.4/t$ /site/www/perl-5.6.1/bin/perl DOMCount.t
> 1..2
> Can't load
>'/site/www/perl-5.6.1/lib/site_perl/5.6.1/sun4-solaris/auto/XML/Xerces/Xerces.so' for
>module XML::Xerces: ld.so.1: /site/www/perl-5.6.1/bin/perl: fatal: relocation error:
>file /site/www/perl-5.6.1/lib/site_perl/5.6.1/sun4-solaris/auto/XML/Xerces/Xerces.so:
>symbol __1cDstdEcerr_: referenced symbol not found at
>/site/www/perl-5.6.1/lib/5.6.1/sun4-solaris/DynaLoader.pm line 206.
> at /site/www/perl-5.6.1/lib/site_perl/5.6.1/sun4-solaris/XML/Xerces.pm line 7
> Compilation failed in require at DOMCount.t line 14.
> BEGIN failed--compilation aborted at DOMCount.t line 14.
>
> Which I would assume means a missing dynamic library, but:
>
> orthognatha /var/tmp/XML-Xerces-1.5.4/t$ ldd -d
>/site/www/perl-5.6.1/lib/site_perl/5.6.1/sun4-solaris/auto/XML/Xerces/Xerces.so
> libpthread.so.1 => /usr/lib/libpthread.so.1
> libxerces-c1_5_1.so => /site/www/xerces/lib/libxerces-c1_5_1.so
> libnsl.so.1 => /usr/lib/libnsl.so.1
> libsocket.so.1 => /usr/lib/libsocket.so.1
> libdl.so.1 => /usr/lib/libdl.so.1
> libc.so.1 => /usr/lib/libc.so.1
> libmp.so.2 => /usr/lib/libmp.so.2
> symbol not found: PL_sv_yes
The PL_* symbols are all from libperl, so it seems you're not
resolving that library.
> If I do the same thing on libxerces-c1_5_1.so I get pretty much the
> same thing.
If you can't run the sample/ applications in Xerces-C without dynamic
loading errors, then the problem is in compiling Xerces-C.
jas.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]