-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I grabbed XML-Xerces-1.5.2_0.tar.gz and did 'perl Makefile.PL; make;
make test' only to find that 100% of the tests fail. I tracked this
down to PERL_DL_NONLAZY; if this is set to 1 then Perl segfaults for
each of the tests. I wasn't sure how to debug this, so I tried just
removing that environment variable - which means that Perl won't check
all the symbols in an object file as soon as it loads, but only as
needed - and ran the tests by hand.
Running the tests without PERL_DL_NONLAZY produced much better results,
but still some failed. I would like to ask about these relatively small
failures and come back to the segfault later. The problem is an
undefined symbol __13XMLPScanToken. Here's the output of running the
tests:
% /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.0/i586-linux
-I/usr/lib/perl5/5.6.0 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0;
runtests @ARGV;' t/*.t
t/AttributeList.....ok
t/Attributes........ok
t/DOMCount..........ok
t/DOMCreate.........ok
t/DOMException......ok
t/DOMParser.........ok 4/9/usr/bin/perl: error while loading shared libraries:
blib/arch/auto/XML/Xerces/Xerces.so: undefined symbol: __13XMLPScanToken
t/DOMParser.........dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 6-9
Failed 4/9 tests, 55.56% okay
t/DOMPrint..........ok
t/DOM_Attr..........ok
t/DOM_Document......ok
t/DOM_Element.......ok
t/DOM_Entity........ok 1/3 Failed test 3 as expected, no worries
t/DOM_Entity........ok
t/DOM_NamedNodeMap..ok
t/DOM_Node..........ok
t/DOM_NodeList......ok
t/EntityResolver....ok
t/IDOMCount.........ok
t/IDOMParser........ok
t/IDOMPrint.........ok
t/IDOM_Attr.........ok
t/IDOM_DOMException.ok
t/IDOM_Document.....ok
t/IDOM_Element......ok
t/IDOM_Entity.......ok 1/3 Failed test 3 as expected, no worries
t/IDOM_Entity.......ok
t/IDOM_NamedNodeMap.ok
t/IDOM_Node.........ok
t/IDOM_NodeList.....ok
t/InputSource.......ok
t/LocalFileInputSource.ok
t/MemBufInputSource.ok
t/PerlErrorHandler..ok
t/SAX2Count.........ok
t/SAXCount..........ok
t/SAXException......ok
t/SAXParser.........ok 5/8/usr/bin/perl: error while loading shared libraries:
blib/arch/auto/XML/Xerces/Xerces.so: undefined symbol: __13XMLPScanToken
t/SAXParser.........dubious
Test returned status 127 (wstat 32512, 0x7f00)
DIED. FAILED tests 6-8
Failed 3/8 tests, 62.50% okay
t/Schema............ok
t/StdInInputSource..ok
t/URLInputSource....ok
t/XMLException......ok
t/XMLURL............ok
t/XMLUri............ok
t/actualCast........ok
t/domTest...........ok
Failed Test Status Wstat Total Fail Failed List of failed
- -------------------------------------------------------------------------------
t/DOMParser.t 127 32512 9 4 44.44% 6-9
t/SAXParser.t 127 32512 8 3 37.50% 6-8
Failed 2/42 test scripts, 95.24% okay. 7/70494 subtests failed, 99.99% okay.
Any ideas why that particular symbol should be undefined? I have
xerces-c 1.5.2 installed, compiled from source. My version of perl is:
% perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=linux, osvers=2.4.3, archname=i586-linux
uname='linux subbotin 2.4.3 #1 tue may 8 21:54:34 gmt 2001 i686
unknown '
config_args='-ds -e -Dprefix=/usr -Di_db -Di_dbm -Di_ndbm -Di_gdbm'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef
usesocks=undef
Compiler:
cc='cc', optimize='-O2 -pipe', gccversion=2.95.3 20010315 (SuSE)
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccflags ='-fno-strict-aliasing -I/usr/local/include
- -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lc -lcrypt
libc=, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at May 11 2001 15:16:11
%ENV:
PERL5LIB="/homes/epa98/lib/perl5:/homes/epa98/lib/perl5/5.6.0:/homes/epa98/lib/perl5/5.6.0/i386-linux:/homes/epa98/lib/perl5/site_perl:/homes/epa98/lib/perl5/site_perl/5.6.0:/homes/epa98/lib/perl5/site_perl/5.6.0/i386-linux:/vol/linux/redhat/csg"
@INC:
/homes/epa98/lib/perl5/5.6.0/i586-linux
/homes/epa98/lib/perl5/5.6.0
/homes/epa98/lib/perl5
/homes/epa98/lib/perl5/5.6.0/i586-linux
/homes/epa98/lib/perl5/5.6.0
/homes/epa98/lib/perl5/5.6.0/i386-linux
/homes/epa98/lib/perl5/site_perl/5.6.0/i586-linux
/homes/epa98/lib/perl5/site_perl/5.6.0
/homes/epa98/lib/perl5/site_perl
/homes/epa98/lib/perl5/site_perl/5.6.0/i586-linux
/homes/epa98/lib/perl5/site_perl/5.6.0
/homes/epa98/lib/perl5/site_perl/5.6.0/i386-linux
/vol/linux/redhat/csg
/usr/lib/perl5/5.6.0/i586-linux
/usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i586-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl
.
Please cc me on replies since I do not read this list.
- --
Ed Avis <[EMAIL PROTECTED]>
Finger for PGP key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8Dk18IMp73jhGogoRAn5BAJ4xjwXvQN5xK22bSQyvD3XmCHHYqACfU8E4
/FZ2rQewzQWlSO/jLcf3jB4=
=+gm3
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]