Loading a 32-bit library via DynaLoader into 64-bit Perl 5.8.8 on HP-UX 11i appears to be difficult, at least with a library from one of my vendors. I am getting a generic DynaLoader message, that when running under the debugger turns out being a "Bad magic number" message, which I am assuming is indicative of trying to load a 32-bit library into a 64-bit perl.

The vendor does not have a 64-bit version of the library available (although they have "certified" the application to run under 64-bit HP-UX 11i). I have applied appropriate pressure, but, as is typical with this vendor, the solution will be a long time coming.

I guess I am looking for build flag advice or possible tips on getting the vendor's library to load. Perl is compiled with HP's hp-gcc64-3.4.5 distribution. If I do need to revert to a 32 bit version of gcc, then so be it, but I would rather not.

Any ideas?

--MidLifeXis


In reply to Loading a 32-bit library via DynaLoader into 64-bit Perl 5.8.8 on HP-UX 11i by MidLifeXis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.