Re: [Guest via RT] [cpan #6094] All tests fail

<[email protected]>
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>

Hi, Jason.  Thanks for your replies.  I'm still fighting with the
XML::Xerces install.  Details below.

   From: [email protected] (Jason E. Stewart)
   Date: Fri, 23 Apr 2004 10:26:18 +0530

   <[email protected]> writes:

   > No, it's Debian.

   Ah! Then it should be simple. I do all my development on debian, and I
   run Xerces on a bunch of different debian systems.

   What release are you using, stable, testing, or unstable?

I am using mostly stable, with a few packages from testing.

   > I used apt-get to download and install the libxerces-related packages
   > from Debian's testing distribution of libxerces 2.3.0-1.1
   > (libxerces23, libxerces23-dev, libxerces23-doc).  The specific package
   > names are:
   >
   >   libxerces23_2.3.0-1.1_i386.deb
   >   libxerces23-dev_2.3.0-1.1_i386.deb
   >   libxerces23-doc_2.3.0-1.1_all.deb
   >
   > The link error I reported occured with these binaries.

   Huh, did you use libxml-xerces-perl package from debian?

This is what I originally tried (and posted about).  I installed
libxerces23, libxerces-dev, and libxerces23-doc (from testing) using
dpkg/apt-get.

I did *not* use apt-get to install libxml-xerces-perl, because it
would have required me to upgrade the system's perl-base and
perl-modules packages, which I definitely do not want to do.

But since I *do* have a newer version of perl (5.8.3) installed under
/opt, my idea was to install XML::Xerces "manually" (bypassing dpkg)
relative to the perl-5.8.3 under /opt instead of the system's
stable-release perl (5.6.1).

I downloaded and unpacked libxml-xerces-perl_2.3.0-4.orig.tar.gz from
packages.debian.org.  (Unfortunately, as far as I can tell this
package doesn't seem to have any Debian-specific documentation or
configuration files; it looks exactly like the XML::Xerces tarball one
would download from CPAN.)  I set XERCES_INCLUDE and XERCES_LIB to
/usr/include and /usr/lib, respectively, and ran

   $ /opt/bin/perl-5.8.3 Makefile.PL PREFIX=/opt
   $ make
   (everything OK so far)
   $ make test

Here's where I get the errors:

Can't load '/home/jones/.cpan/build/XML-Xerces-2.3.0-4/blib/arch/auto/XML/Xerces/Xerces.so' for module XML::Xerces: /home/jones/.cpan/build/XML-Xerces-2.3.0-4/blib/arch/auto/XML/Xerces/Xerces.so: undefined symbol: _Q211xercesc_2_316XMLPlatformUtils.fgMemoryManager at /opt/lib/perl5/5.8.3/i686-linux/DynaLoader.pm line 229.

I get this:

  $ nm blib/arch/auto/XML/Xerces/Xerces.so|grep PlatformUtils.fgTransService
             U _Q211xercesc_2_316XMLPlatformUtils.fgTransService

How about yours?


I don't know if this is significant, but according to grep,
XMLPlatformUtils.fgTransService is mentioned in
/usr/lib/libxerces-c.so.1.5.2 but not in /usr/lib/libxerces-c.so.23.0.

Is there some special flag I could add to this command

LD_RUN_PATH="/lib:/usr/lib" cc  -shared -L/usr/local/lib Xerces.o  -o blib/arch/auto/XML/Xerces/Xerces.so blib/arch/auto/Handler/Handler.a  -lpthread -L/usr/lib -lxerces-c   

so that a definition for XMLPlatformUtils.fgTransService is
incorporated in Xerces.so?

Thanks!

kynn
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.