The application 'our-app', is a C-program that embeds the perl-interpreter (of a specific version of perl).

To be able to do this, we've build the version of perl we like to use in a specific directory:

/perl-5.12.3/

And we link perl-5.12.3/CORE/libperl.a to our-app.

We've used the application for some years now, both on Solaris as on Linux.

When the application is used on Solaris, it runs as expected, but, if used on Linux, using e.g. the MD5 perl module, we see this problem:

/perl-5.12.3/auto/Digest/MD5/MD5.so: undefined symbol: Perl_Istack_sp_ +ptr

We've also tested it with an older version of perl, (5.8.8) and we see the same problem, but the missing symbol is called Perl_Tstack_sp_ptr in that case.

We've used 'nm' to check if the missing symbol is defined in our-app: Yes it is!

Any help is appreciated

In reply to Problem with embedded perl by cyborg

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.