Build/test error with XML::Xerces 2.5.0

"Gerard van der Linde" <[email protected]>
Newsgroups gmane.text.xml.xerces-p.devel
Organization Utrecht University Library
Message-ID <40E418D5.29876.10DA3CF@localhost>
Hi,

The 'make test' fails for every test with the same message. 

-start ------------------------------------------------------------------------

t/AttributeList.....Using /solsoft/install/ASTERIX/XML-Xerces-2.5.0-0/blib
Can't load '/solsoft/install/ASTERIX/XML-Xerces-2.5.0-0/blib/arch/auto/XML/Xerces/Xerces.so' for module XML::Xerces: ld.
so.1: /bin/perl: fatal: relocation error: file /solsoft/install/ASTERIX/XML-Xerces-2.5.0-0/blib/arch/auto/XML/Xerces/Xer
ces.so: symbol _Q211xercesc_2_516XMLPlatformUtils.fgMemoryManager: referenced symbol not found at /usr/local/lib/perl5/5
.6.1/sun4-solaris/DynaLoader.pm line 206.
 at /solsoft/install/ASTERIX/XML-Xerces-2.5.0-0/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.
dubious
        Test returned status 255 (wstat 65280, 0xff00)

- end -------------------------------------------------------------------------

The output of 'perl Makefile.PL' looked good (besides the warning):

- start -----------------------------------------------------------------------

Using XERCES_LIB = /solsoft/install/ASTERIX/xerces-c_2_5_0-solaris_27-cc_62/lib
Using XERCES_INCLUDE = /solsoft/install/ASTERIX/xerces-c_2_5_0-solaris_27-cc_62/include

   WARNING

You have defined the XERCESCROOT variable, but I am unable to locate
the config.status file that was used to build your Xerces-C. Without
that file, I may not be able to properly build the C++ glue files that
come with Xerces.pm.

Proceeding ...
Using Xerces-C version info from /solsoft/install/ASTERIX/xerces-c_2_5_0-solaris_27-cc_62/include/xercesc/util/XercesVer
sion.hpp
Checking to see if libxerces is in your library path...Success!!
Using Xerces-C version: 2.5.0
Checking if your kit is complete...
Looks good
Processing hints file hints/solaris_2.pl
Writing Makefile for Handler
Writing Makefile for XML::Xerces

- end ------------------------------------------------------------------------

And the output of 'make' even looked better:

- start -----------------------------------------------------------------------

cp Xerces.pm blib/lib/XML/Xerces.pm
make -C Handler static
make[1]: Entering directory `/solsoft/install/ASTERIX/XML-Xerces-2.5.0-0/Handler'
gcc -c -I. -IHandler -I/solsoft/install/ASTERIX/xerces-c_2_5_0-solaris_27-cc_62/include -fno-strict-aliasing -I/usr/loca
l/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC -I/usr/local/li
b/perl5/5.6.1/sun4-solaris/CORE  PerlCallbackHandler.cpp
gcc -c -I. -IHandler -I/solsoft/install/ASTERIX/xerces-c_2_5_0-solaris_27-cc_62/include -fno-strict-aliasing -I/usr/loca
l/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC -I/usr/local/li
b/perl5/5.6.1/sun4-solaris/CORE  PerlContentCallbackHandler.cpp
gcc -c -I. -IHandler -I/solsoft/install/ASTERIX/xerces-c_2_5_0-solaris_27-cc_62/include -fno-strict-aliasing -I/usr/loca
l/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC -I/usr/local/li
b/perl5/5.6.1/sun4-solaris/CORE  PerlDocumentCallbackHandler.cpp
gcc -c -I. -IHandler -I/solsoft/install/ASTERIX/xerces-c_2_5_0-solaris_27-cc_62/include -fno-strict-aliasing -I/usr/loca
l/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC -I/usr/local/li
b/perl5/5.6.1/sun4-solaris/CORE  PerlErrorCallbackHandler.cpp
rm -rf ../blib/arch/auto/Handler/Handler.a
/usr/ccs/bin/ar cr ../blib/arch/auto/Handler/Handler.a PerlCallbackHandler.o PerlContentCallbackHandler.o PerlDocumentCa
llbackHandler.o PerlErrorCallbackHandler.o && : ../blib/arch/auto/Handler/Handler.a
chmod 755 ../blib/arch/auto/Handler/Handler.a
make[1]: Leaving directory `/solsoft/install/ASTERIX/XML-Xerces-2.5.0-0/Handler'
make[1]: Entering directory `/solsoft/install/ASTERIX/XML-Xerces-2.5.0-0/Handler'
make[1]: Leaving directory `/solsoft/install/ASTERIX/XML-Xerces-2.5.0-0/Handler'
gcc -c -I. -IHandler -I/solsoft/install/ASTERIX/xerces-c_2_5_0-solaris_27-cc_62/include -D_REENTRANT -DHAS_BOOL -O   -DV
ERSION=\"2.5.0-0\" -DXS_VERSION=\"2.5.0-0\" -fPIC -I/usr/local/lib/perl5/5.6.1/sun4-solaris/CORE  Xerces.cpp
Running Mkbootstrap for XML::Xerces ()
chmod 644 Xerces.bs
rm -f blib/arch/auto/XML/Xerces/Xerces.so
LD_RUN_PATH="/usr/lib:/solsoft/install/ASTERIX/xerces-c_2_5_0-solaris_27-cc_62/lib" gcc  -G -L/usr/local/lib Xerces.o  -
o blib/arch/auto/XML/Xerces/Xerces.so blib/arch/auto/Handler/Handler.a  -lpthread -L/solsoft/install/ASTERIX/xerces-c_2_
5_0-solaris_27-cc_62/lib -lxerces-c
chmod 755 blib/arch/auto/XML/Xerces/Xerces.so
cp Xerces.bs blib/arch/auto/XML/Xerces/Xerces.bs
chmod 644 blib/arch/auto/XML/Xerces/Xerces.bs

- end -------------------------------------------------------------------------


I have no clue yet how to solve this problem (if it is a problem but I guess it 
is!). Any help on this is greatly appreciated.

Gerard vd Linde
Utrecht University Library
Netherlands

PS. I tried to use the source distribution first of Xerces 2.5.0 but failed to 
compile it so I used the binary distribution instead to save time. The binary 
says Solaris 7 and the OS is Solaris 8. I wouldn't expect this to cause the 
problems I encounter but I can't tell yet.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.