Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Reference to a function in libxml2.dll that isn't there
Qt 6.11 is out! See what's new in the release blog

Reference to a function in libxml2.dll that isn't there

Scheduled Pinned Locked Moved Unsolved General and Desktop
libxml2xmlxptreval
6 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dcoup
    wrote on last edited by dcoup
    #1

    Hi.

    The Windows version of one of our products is deployed with several DLLs from Qt v597, including libxml2.dll.

    One of our customers is having a problem where an error box appears saying a reference was made to a function in libxml2.dll named xmlXPtrEval() that doesn't exist. And indeed, there is no function by this name in the libxml2.dll that comes with Qt v597. As far as I can tell, the call is dynamic (i.e., the attempt to find the function is done at run-time) and external to our application, as libxml2.dll is not a DLL upon which our application depends.

    Our customer has other copies of libxml2.dll on his system in various locations. He maintains that all of these other copies of libxml2.dll have this xmlXPtrEval(); it's only the libxml2.dll that is bundled with our application that doesn't have it.

    Is the libxml2.dll that comes with Qt v597 supposed to have this function?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      My Qt do not have a libxml2.dll
      Where in c:\Qt is yours located ?

      Maybe it does have one in 5.9 ?
      Seem not in 5.14

      D 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        My Qt do not have a libxml2.dll
        Where in c:\Qt is yours located ?

        Maybe it does have one in 5.9 ?
        Seem not in 5.14

        D Offline
        D Offline
        dcoup
        wrote on last edited by
        #3

        @mrjj Ah, good point. It looks like libxml2.dll might come from the WebKit add-on that we install over top of Qt itself.

        mrjjM 1 Reply Last reply
        0
        • D dcoup

          @mrjj Ah, good point. It looks like libxml2.dll might come from the WebKit add-on that we install over top of Qt itself.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @dcoup
          Ah yes that would explain it :)

          But not why your app then complains about that function at that customer but not on your own
          system.

          I would use a tool like
          https://github.com/lucasg/Dependencies

          and then inspect the .exe on your system and see what it hooks up to. And
          then do the same at customer and see.

          Do note if the DLL is loaded via LoadLibrary, it will not be shown.
          Most tools cannot detect that.

          D 1 Reply Last reply
          1
          • mrjjM mrjj

            @dcoup
            Ah yes that would explain it :)

            But not why your app then complains about that function at that customer but not on your own
            system.

            I would use a tool like
            https://github.com/lucasg/Dependencies

            and then inspect the .exe on your system and see what it hooks up to. And
            then do the same at customer and see.

            Do note if the DLL is loaded via LoadLibrary, it will not be shown.
            Most tools cannot detect that.

            D Offline
            D Offline
            dcoup
            wrote on last edited by
            #5

            @mrjj

            As I look at this more, I'm not sure that the call is loaded via LoadLibrary().

            I've used Dependencies and similar tools. Our app's own .exe is not dependent on libxml2.dll. I've searched the Qt v597 source code, but I found no call to xmlXPtrEval(). I've also searched the source code for the QtWebKit add-on, but again, no references to xmlXPtrEval().

            This one customer is the only customer in the world who is encountering this problem. Something he's loading is trying to call xmlXPtrEval(), and that function isn't in the libxml2.dll that comes with the QtWebKit add-on.

            mrjjM 1 Reply Last reply
            0
            • D dcoup

              @mrjj

              As I look at this more, I'm not sure that the call is loaded via LoadLibrary().

              I've used Dependencies and similar tools. Our app's own .exe is not dependent on libxml2.dll. I've searched the Qt v597 source code, but I found no call to xmlXPtrEval(). I've also searched the source code for the QtWebKit add-on, but again, no references to xmlXPtrEval().

              This one customer is the only customer in the world who is encountering this problem. Something he's loading is trying to call xmlXPtrEval(), and that function isn't in the libxml2.dll that comes with the QtWebKit add-on.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @dcoup
              so most likely he has something in his user path that loads something so when your app starts
              there is a version conflict.

              I would ask him to create a new user account on his box if possible and see if issue persists.

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved