Dear,

We are trying to use the MD5 feature of perl5.24.3 and facing the following issue.

In our case, we have downloaded the 5.24.3 version and compiled locally on RHEL 7.x machine.

Error is :

symbol lookup error: /usr/local/bin/perl/lib/5.24.3/x86_64-linux-thread-multi/auto/Digest/MD5/MD5.so: undefined symbol: Perl_xs_handshake

Our application is a C application and we call perl_parse function to execute the perl script

Thanks in Advace

compile log:

"../../miniperl" "-I../../lib" "-I../../lib" "../../lib/ExtUtils/xsubpp" -typemap "../../lib/ExtUtils/typemap" -typemap "typemap" MD5.xs > MD5.xsc && mv MD5.xsc MD5.c

cc -c -D_REENTRANT -D_GNU_SOURCE -fPIC -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -Wall -Werror=declaration-after-statement -Wextra -Wc++-compat -Wwrite-strings -O2 -DVERSION=\"2.54\" -DXS_VERSION=\"2.54\" -fPIC "-I../.." -DU32_ALIGNMENT_REQUIRED MD5.c

cc -shared -O2 -fstack-protector /home/tester/TeMIP-ALB/perl/perl/perl-5.24.3/perlapi.o -L/usr/local/lib -fstack-protector-strong MD5.o -o ../../lib/auto/Digest/MD5/MD5.so


In reply to undefined symbol: Perl_xs_handshake by prabakar.bhatt

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.