Thank you all again for the help, Per the suggestion, I removed the '-L' from the DynaLoader.a chunk, and things compiled fine. Whew!

The compile string is now:

cc '-Wl,-E' -I "/usr/local/include" -I "/opt/perl/lib/5.6.1/PA-RISC1.1 +-thread-multi/CORE" -o codeGen xsinit.c codeGen. c -L/usr/local/lib -L "/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/COR +E" "/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/auto/DynaLoa der/DynaLoader.a" -lperl -lnsl -lm -lc -lcrypt -lsec -L/usr/local/lib
Unfortunately, when I run the executable I still get that same ol' frustrating error:
Can't load module File::Glob, dynamic loading not available in this pe +rl. (You may need to build a new perl executable which either supports dynamic loading or has the File::Glob module statically linked into +it.) Compilation failed in require at search.pl line 8. BEGIN failed--compilation aborted at search.pl line 8. Undefined subroutine &main::search_files called at search.pl line 8.
And, of course, things are lovely if I remove any reference to glob(). Beyond this point, I'm not sure how to create an executable that "supports dynamic loading". Hmmm, perhaps naively I thought DynaLoader.a would do that. Perhaps - if there are no more obvious things for me to try - I will make do w/o glob() as part of my embedded Perl.

Thank you all,

MatthewFrancis


In reply to Re: Embedding Perl Interpreter/DynaLoader by MatthewFrancis
in thread Embedding Perl Interpreter/DynaLoader by MatthewFrancis

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.