Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1022

XMLPlatformUtils::isAnySlash() causing dynamic loading errors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: Build
    • Labels:
      None
    • Environment:
      Operating System: Linux
      Platform: All
    • Bugzilla Id:
      23756

      Description

      Hey,

      I've had a large number bug reports in Xerces-P for the 2.3.0 release related to
      linking errors with isAnySlash(). For OS X the problems was eliminated by
      removing the 'inline' directive from the .cpp file and recompiling. For Redhat
      Linux this did not help, and Xerces-P was forced to remove the method from the
      API to enable linking.

      I'm at a loss to figure out why this one method should create problems on two
      such different platforms. The linux user was using an old version of gcc (2.96),
      so perhaps this is an issue?

      From: Steve Mathias <smathias@unm.edu>
      Subject: Re: Similar make test error
      To: xerces-p-dev@xml.apache.org
      Date: Sat, 11 Oct 2003 09:35:18 -0600

      >> Can't load
      >> '/usr/local/src/perl/XML-Xerces-2.3.0-1/blib/arch/auto/XML/Xerces/Xerces.so'
      >> for module XML::Xerces:
      >> /usr/local/src/perl/XML-Xerces-2.3.0-1/blib/arch/auto/XML/Xerces/Xerces.so:
      >> undefined symbol: isAnySlash__Q211xercesc_2_316XMLPlatformUtilsUs at
      >> /usr/local/lib/perl5/5.6.1/i686-linux/DynaLoader.pm line 206. at
      >> /usr/local/src/perl/XML-Xerces-2.3.0-1/blib/lib/XML/Xerces.pm line 7

      >>
      >> I'm using xerces-c version 2_3_0 which I built myself with gcc
      >> version 2.96 (I've tried a couple of the samples and they run fine)
      >> and xerces-p version 2.3.0-1.

      Jason> I don't have gcc-2.96 to test this on, but I don't think the gcc
      Jason> version is the issue here.

      Jason> I'm assuming that you've tried to run DOMCount or some other
      Jason> Xerces-C application just to ensure the libxerces.so is working
      Jason> fine?

      Yes, all the xerces-c sample programs run fine.

      Jason> If so then please grep the library symbols using the commands I
      Jason> sent to Kai, and lets see what's happenging there.

      Here's what I get:

      1. nm -C /usr/local/xerces-c-src_2_3_0/lib/libxerces-c.so | grep -i isanyslash
      1. nm -C
      2. /usr/local/src/perl/XML-Xerces-2.3.0-1/blib/arch/auto/XML/Xerces/Xerces.so
      3. grep -i isanyslash
        0005de34 T _wrap_XMLPlatformUtils_isAnySlash
        U xercesc_2_3::XMLPlatformUtils::isAnySlash(unsigned short)

      So, I guess the error message is correct in reporting that the symbol is
      undefined. I'm in a little over my head with all this compiler/linking
      stuff though. How can I fix this?

        Attachments

        1. ASF.LICENSE.NOT.GRANTED--suse-error.txt
          1 kB
          Jason E. Stewart
        2. xerces-c-2.8.0-isAnySlash.patch
          22 kB
          Charles Wilson

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jason@openinformatics.com Jason E. Stewart
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: