logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [bdbxml] Perl Test Errors on Install: msg#00091

Subject: Re: [bdbxml] Perl Test Errors on Install
So I tried rebuilding (from scratch) and noticed this in the Xerces setup...I don't know if this is just default behavior (the "Having build problems?" stuff showing up):

...
creating sax2/Makefile
creating ../../obj/Makefile

Having build problems?
Read instructions at http://xml.apache.org/xerces-c/build.html
Still cannot resolve it?
Find out if someone else had the same problem before.
Go to http://marc.theaimsgroup.com/?l=xerces-c-dev

In future, you may also directly type the following commands to create the Makefiles.

export TRANSCODER="NATIVE"
export MESSAGELOADER="INMEM"
export NETACCESSOR="Socket"
export THREADS="none"
export BITSTOBUILD="64"
export CC="gcc"
export CXX="g++"
export CXXFLAGS=" -g -DPROJ_XMLPARSER -DPROJ_XMLUTIL -DPROJ_PARSERS - DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -DPROJ_DEPRECATED_DOM - DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER - DXML_USE_INMEM_MESSAGELOADER -DAPP_NO_THREADS -DXML_USE_NO_THREADS - DXML_USE_NETACCESSOR_SOCKET -DXML_BITSTOBUILD_64 " export CFLAGS=" -g -DPROJ_XMLPARSER -DPROJ_XMLUTIL -DPROJ_PARSERS - DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -DPROJ_DEPRECATED_DOM - DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER - DXML_USE_INMEM_MESSAGELOADER -DAPP_NO_THREADS -DXML_USE_NO_THREADS - DXML_USE_NETACCESSOR_SOCKET -DXML_BITSTOBUILD_64 "
export LDFLAGS=" "
export LIBS=" "
configure --prefix=/usr/local/src/dbxml-2.1.8/install

If the result of the above commands look OK to you, go to the directory
/usr/local/src/dbxml-2.1.8/xerces-c-src_2_6_0/src/xercesc and type "gmake" to make the XERCES-C system.
Building Xerces
Preparing the directory structure for a build ...
...

The Xerces build looks like it is working...I'm only noticing a few warnings like this:

=========================

DOMCasts.hpp:108: warning: (perhaps the 'offsetof' macro was used incorrectly) DOMCasts.hpp: In function `xercesc_2_6::DOMNode* xercesc_2_6::castToNode(const xercesc_2_6::DOMNodeImpl*)': DOMCasts.hpp:114: warning: invalid access to non-static data member 'xercesc_2_6::DOMElementImpl::fNode' of NULL object DOMCasts.hpp:114: warning: (perhaps the 'offsetof' macro was used incorrectly) DOMCasts.hpp: In function `xercesc_2_6::DOMNodeImpl* xercesc_2_6::castToNodeImpl(const xercesc_2_6::DOMParentNode*)': DOMCasts.hpp:122: warning: invalid access to non-static data member 'xercesc_2_6::DOMElementImpl::fNode' of NULL object DOMCasts.hpp:122: warning: (perhaps the 'offsetof' macro was used incorrectly) DOMCasts.hpp:123: warning: invalid access to non-static data member 'xercesc_2_6::DOMElementImpl::fParent' of NULL object

=========================

And I am seeing that the libxerces-c.26.dylib is getting copied to the install/lib directory too:

=========================
cp -fp /usr/local/src/dbxml-2.1.8/xerces-c-src_2_6_0/lib/libxerces-c. 26.0.dylib /usr/local/src/dbxml-2.1.8/install/lib (cd /usr/local/src/dbxml-2.1.8/install/lib; ln -s libxerces-c. 26.0.dylib libxerces-c.26.dylib; ln -s libxerces-c.26.0.dylib libxerces-c.dylib)
=========================

And the symbolic links look fine too:

==========================
-rwxr-xr-x 1 root admin 41130348 May 30 16:33 libxerces-c. 26.0.dylib lrwxr-xr-x 1 root admin 22 May 30 16:33 libxerces-c. 26.dylib -> libxerces-c.26.0.dylib lrwxr-xr-x 1 root admin 22 May 30 16:33 libxerces-c.dylib - > libxerces-c.26.0.dylib
==========================

Anything jump out at you?

Ryan

On May 30, 2005, at 3:06 PM, Paul Marquess wrote:

The true source of the error is further on, namely this

Can't load
'/usr/local/src/dbxml-2.1.8/dbxml/src/perl/DbXml/../blib/arch/auto/ Sleepycat
/DbXml/DbXml.bundle' for module Sleepycat::DbXml:
dlopen(/usr/local/src/dbxml-2.1.8/dbxml/src/perl/DbXml/../blib/arch/ auto/Sle
epycat/DbXml/DbXml.bundle,2): Library not loaded: libxerces-c.26.dylib

For some reason the Xerces library cannot be found -- all the other errors
you are seeing are caused by this.

Did you build the perl interface via the buildall.sh script?

Paul


From: Ryan Kuykendall [mailto:ryank-P3nTf04ZryBBDgjK7y7TUQ@xxxxxxxxxxxxxxxx]



Does anybody know how to remedy these errors...I get them when I run
"make test" in the following directory:

dbxml-2.1.8/dbxml/src/perl/DbXml

Before showing you all of the errors, here is one that looks
particularly interesting:

# Compilation failed in require at (eval 1) line 2.
Can't locate object method "getExceptionCode" via package "Can't
locate object method "new" via package "XmlValue" at t/XmlValue.t
line 43.
" (perhaps you forgot to load "Can't locate object method "new" via
package "XmlValue" at t/XmlValue.t line 43.
"?) at t/XmlValue.t line 44.

Notice how it is confusing an error message with the package name
that is the source of the error in the line that reads:

Can't locate object method "getExceptionCode" via package "Can't
locate object method "new" via package "XmlValue" at t/XmlValue.t
line 43.

Any ideas?  I'm sure I can just force an install regardless of the
errors, but I think I would feel more comfortable incorporating DbXml
into my web app if they were working. Here are all of the "make test"
errors:

==============================================================

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
t/XmlDocument..............# Failed test (t/XmlDocument.t at line 7) t/XmlDocument..............NOK 1# Tried to use 'Sleepycat::DbXml'.
#     Error:  Can't load '/usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle' for module
Sleepycat::DbXml: dlopen(/usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle, 2): Library not
loaded: libxerces-c.26.dylib
#   Referenced from: /usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle
#   Reason: image not found at /System/Library/Perl/5.8.6/darwin-
thread-multi-2level/DynaLoader.pm line 230.
#  at /usr/local/src/dbxml-2.1.8/dbxml/src/perl/DbXml/../blib/lib/
Sleepycat/DbXml.pm line 71
# Compilation failed in require at (eval 1) line 2.
t/XmlDocument..............ok 2/36Can't locate object method "new"
via package "XmlManager" at t/XmlDocument.t line 10.
# Looks like you planned 36 tests but only ran 2.
# Looks like your test died just after 2.
t/XmlDocument..............dubious
         Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1, 3-36
         Failed 35/36 tests, 2.78% okay
t/XmlIndexSpecification....#     Failed test (t/
XmlIndexSpecification.t at line 6)
#     Tried to use 'Sleepycat::DbXml'.
#     Error:  Can't load '/usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle' for module
Sleepycat::DbXml: dlopen(/usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle, 2): Library not
loaded: libxerces-c.26.dylib
#   Referenced from: /usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle
#   Reason: image not found at /System/Library/Perl/5.8.6/darwin-
thread-multi-2level/DynaLoader.pm line 230.
#  at /usr/local/src/dbxml-2.1.8/dbxml/src/perl/DbXml/../blib/lib/
Sleepycat/DbXml.pm line 71
# Compilation failed in require at (eval 1) line 2.
t/XmlIndexSpecification....ok 2/13Can't locate object method "new"
via package "XmlManager" at t/XmlIndexSpecification.t line 9.
# Looks like you planned 13 tests but only ran 2.
# Looks like your test died just after 2.
t/XmlIndexSpecification....dubious
         Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1, 3-13
         Failed 12/13 tests, 7.69% okay
t/XmlManager...............# Failed test (t/XmlManager.t at line 6)
#     Tried to use 'Sleepycat::DbXml'.
#     Error:  Can't load '/usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle' for module
Sleepycat::DbXml: dlopen(/usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle, 2): Library not
loaded: libxerces-c.26.dylib
#   Referenced from: /usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle
#   Reason: image not found at /System/Library/Perl/5.8.6/darwin-
thread-multi-2level/DynaLoader.pm line 230.
#  at /usr/local/src/dbxml-2.1.8/dbxml/src/perl/DbXml/../blib/lib/
Sleepycat/DbXml.pm line 71
# Compilation failed in require at (eval 1) line 2.
t/XmlManager...............ok 2/83#     Failed test (t/XmlManager.t
at line 26)
#     Failed test (t/XmlManager.t at line 27)
t/XmlManager...............NOK 4#     Failed test (t/XmlManager.t at
line 31)
#          got: 'Can't call method "createDocument" on an undefined
value at t/XmlManager.t line 29.
# '
#     expected: ''
t/XmlManager...............NOK 5#     Failed test (t/XmlManager.t at
line 32)
Can't call method "setContent" on an undefined value at t/
XmlManager.t line 37.
t/XmlManager...............NOK 6# Looks like you planned 83 tests but
only ran 6.
# Looks like your test died just after 6.
t/XmlManager...............dubious
         Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1, 3-83
         Failed 82/83 tests, 1.20% okay
t/XmlQueryContext..........#     Failed test (t/XmlQueryContext.t at
line 6)
#     Tried to use 'Sleepycat::DbXml'.
#     Error:  Can't load '/usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle' for module
Sleepycat::DbXml: dlopen(/usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle, 2): Library not
loaded: libxerces-c.26.dylib
#   Referenced from: /usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle
#   Reason: image not found at /System/Library/Perl/5.8.6/darwin-
thread-multi-2level/DynaLoader.pm line 230.
#  at /usr/local/src/dbxml-2.1.8/dbxml/src/perl/DbXml/../blib/lib/
Sleepycat/DbXml.pm line 71
# Compilation failed in require at (eval 1) line 2.
t/XmlQueryContext..........ok 2/31#     Failed test (t/
XmlQueryContext.t at line 25)
t/XmlQueryContext..........NOK 3#     Failed test (t/
XmlQueryContext.t at line 26)
Can't call method "createQueryContext" on an undefined value at t/
XmlQueryContext.t line 29.
t/XmlQueryContext..........NOK 4# Looks like you planned 31 tests but
only ran 4.
# Looks like your test died just after 4.
t/XmlQueryContext..........dubious
         Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1, 3-31
         Failed 30/31 tests, 3.23% okay
t/XmlResults...............# Failed test (t/XmlResults.t at line 6) t/XmlResults...............NOK 1# Tried to use 'Sleepycat::DbXml'.
#     Error:  Can't load '/usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle' for module
Sleepycat::DbXml: dlopen(/usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle, 2): Library not
loaded: libxerces-c.26.dylib
#   Referenced from: /usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle
#   Reason: image not found at /System/Library/Perl/5.8.6/darwin-
thread-multi-2level/DynaLoader.pm line 230.
#  at /usr/local/src/dbxml-2.1.8/dbxml/src/perl/DbXml/../blib/lib/
Sleepycat/DbXml.pm line 71
# Compilation failed in require at (eval 1) line 2.
Can't locate object method "new" via package "XmlManager" at t/
XmlResults.t line 9.
# Looks like you planned 28 tests but only ran 1.
# Looks like your test died just after 1.
t/XmlResults...............dubious
         Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-28
         Failed 28/28 tests, 0.00% okay
t/XmlValue.................#     Failed test (t/XmlValue.t at line 6)
t/XmlValue.................NOK 1# Tried to use 'Sleepycat::DbXml'.
#     Error:  Can't load '/usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle' for module
Sleepycat::DbXml: dlopen(/usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle, 2): Library not
loaded: libxerces-c.26.dylib
#   Referenced from: /usr/local/src/dbxml-2.1.8/dbxml/src/perl/
DbXml/../blib/arch/auto/Sleepycat/DbXml/DbXml.bundle
#   Reason: image not found at /System/Library/Perl/5.8.6/darwin-
thread-multi-2level/DynaLoader.pm line 230.
#  at /usr/local/src/dbxml-2.1.8/dbxml/src/perl/DbXml/../blib/lib/
Sleepycat/DbXml.pm line 71
# Compilation failed in require at (eval 1) line 2.
Can't locate object method "getExceptionCode" via package "Can't
locate object method "new" via package "XmlValue" at t/XmlValue.t
line 43.
" (perhaps you forgot to load "Can't locate object method "new" via
package "XmlValue" at t/XmlValue.t line 43.
"?) at t/XmlValue.t line 44.
# Looks like you planned 211 tests but only ran 1.
# Looks like your test died just after 1.
t/XmlValue.................dubious
         Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-211
         Failed 211/211 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed --------------------------------------------------------------------- ---
-------
t/XmlDocument.t            255 65280    36   69 191.67%  1 3-36
t/XmlIndexSpecification.t  255 65280    13   23 176.92%  1 3-13
t/XmlManager.t             255 65280    83  159 191.57%  1 3-83
t/XmlQueryContext.t        255 65280    31   57 183.87%  1 3-31
t/XmlResults.t             255 65280    28   55 196.43%  1-28
t/XmlValue.t               255 65280   211  421 199.53%  1-211
Failed 6/6 test scripts, 0.00% okay. 398/402 subtests failed, 1.00%
okay.
make: *** [test_dynamic] Error 2



------------------------------------------
To remove yourself from this list, send an
email to xml-unsubscribe-E1rGyZxLSgzby3iVrkZq2A@xxxxxxxxxxxxxxxx




------------------------------------------
To remove yourself from this list, send an
email to xml-unsubscribe-E1rGyZxLSgzby3iVrkZq2A@xxxxxxxxxxxxxxxx





------------------------------------------
To remove yourself from this list, send an
email to xml-unsubscribe-E1rGyZxLSgzby3iVrkZq2A@xxxxxxxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>