Hi, I hope you can help me,
I am trying to get Xerces Perl working on Solaris 8 and have a problem (see
below).  

I recently installed the Xerces Parser, version 1.5.2 from the Apache site.
I used the package pre-built for Solaris (xerces-c1_5_2-SolCC.tar.gz).  I
have tested a couple of the samples and they seem to work fine.

I have installed version 5.6.1 of Perl as a Solaris package  from
www.sunfreeware.com.  This is installed under /usr/local/bin.  We have gcc
(2.95.2) and GNU make (3.79.1).

I then try to build the Xerces Perl package (XML-Xerces-1.5.2_0).
1. perl Makefile.PL  ... this goes fine
2. make .... looks OK
3. make test ..... FAILS

hoopoe:XML-Xerces-1.5.2_0> make test
make[1]: Entering directory
`/users/home/jules/xml/XML-Xerces-1.5.2_0/DOMParse'
make[1]: Leaving directory
`/users/home/jules/xml/XML-Xerces-1.5.2_0/DOMParse'
PERL_DL_NONLAZY=1 /usr/local/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.....dubious

        Test returned status 0 (wstat 139, 0x8b)
        test program seems to have generated a core
DIED. FAILED tests 1-8
        Failed 8/8 tests, 0.00% okay
t/Attributes........dubious

        Test returned status 0 (wstat 139, 0x8b)
        test program seems to have generated a core
..........

4. make install ... OK

If I then try one of the samples, I get this error:
perl DOMCount.pl catalog.xml
Can't load
'/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/auto/XML/Xerces/Xerces.so
' for module XML::Xerces: ld.so.1: perl: fatal: relocation error: file
/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/auto/XML/Xerces/Xerces.so:
symbol __tf12XMLException: referenced symbol not found at
/usr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 206.
 at /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/XML/Xerces.pm line 7
Compilation failed in require at DOMCount.pl line 67.
BEGIN failed--compilation aborted at DOMCount.pl line 67.

perl -V gives
###############################
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=solaris, osvers=2.8, archname=sun4-solaris
    uname='sunos solaris 5.8 generic sun4u sparc sunw,ultra-5_10 '
    config_args='-Dcc=gcc -de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.3 20010315 (release)',
gccosandvers='solaris2.8'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib '
    libpth=/usr/local/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under solaris
  Compiled at Apr 26 2001 04:07:49
  @INC:
    /usr/local/lib/perl5/5.6.1/sun4-solaris
    /usr/local/lib/perl5/5.6.1
    /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris
    /usr/local/lib/perl5/site_perl/5.6.1
    /usr/local/lib/perl5/site_perl
###############################

Any help would be greatly appreciated.


Happy Christmas.
Julian Williams
Host Software Group, AACS, The Open University
Tel: 01908 652733   [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to