I modified the line in config.sh

lddlflags='-shared -L/user/local/lib'

to look like this:

lddlflags='-shared -L/user/local/lib -L/user/local/lib/perl5/5.9.2/i686-linux-thread-multi/CORE -Wl,-rpath,/usr/local/lib/perl5/5.9.2/i686-linux-thread-multi/CORE/ -lperl'

And this does work. Except that I have to do the `make;make install` of Perl first, then modify the line and do `make;make install` a second time to get everything properly installed.

But then once I do that I can build the DBI module and it just works under our framework.

So I think I am very close to a possible small fix to get this working correctly. :D

If anyone has any hints about what I am doing wrong with the lddflags that I have to do the install twice with different settings, please share your thoughts.

I am going to keep looking into this and check out the update about LDLOADLIBS early next week.

Thanks so much!


In reply to Re^2: Perl modules not linking to libperl.so by buckrogers1965
in thread Perl modules not linking to libperl.so by buckrogers1965

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.