Hi Monks,

I am using a module which loads a dynamic library to generate SWF output. I had managed to set this up and get it to work on a site I was using it on. I set up a blib like subdirectory in the cgi-bin I was using (I don't have root privileges) and use the BEGIN block to push that directory and the subdirectorys lib and arch into the @INC variable.

This worked,including the ability to load the SWF.so library from ~/cgi-bin/blib/arch/auto/SWF/ the site was merrily generating swf output and I walk away dusting my hands and think okay all is fine.

But today I look up the site and I get the message:

[Wed Apr 10 16:07:09 2002] SWF.pm: [Wed Apr 10 16:07:09 2002] DynaLoader.pm: Can't load '/home/zip/54/gal +482/cgi-bin/blib/arch//auto/SWF/SWF.so' for module SWF: /home/zip/54/ +gal482/cgi-bin/blib/arch//auto/SWF/SWF.so: undefined symbol: PL_sv_un +def at /usr/lib/perl5/5.004/i386-linux/DynaLoader.pm line 169. [Wed Apr 10 16:07:09 2002] SWF.pm: [Wed Apr 10 16:07:09 2002] DynaLoader.pm: [Wed Apr 10 16:07:09 2002] SWF.pm: [Wed Apr 10 16:07:09 2002] DynaLoader.pm: at 482.pl line 14 BEGIN fail +ed--compilation aborted at 482.pl line 14.
Horror of horrors Dynaloader CAN'T load the module!!!!!!

Hmmm....I would need some advice it seems,

what are the possible causes?

Chris

Edit by tye


In reply to DynaLoader and PL_sv_undef... by ceedee

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.