Hi Guys,

I'm in the process of getting perl 5.12.1 into to our build system (Solaris), all goes well and I end up with a nice package with 32 and 64 bit perl split up in the correct sort of way. So far so good...

However, I also wrote some scripts to query cpan and add a subsection of common modules to the build system (Our build system is Makefile based, similar to FreeBSD's ports) however modules which require shared objects are not linking properly with their libfoo dependencies.

When I try to build, for example, Crypt::OpenSSL::Random MakeMaker seems to completely ignore the contents of 'LIBS', -lssl is nowhere to be found in the produced Makefile.

(Note, this also happens outside the build system)

As a result, building a module I can see this in the make output:
Note (probably harmless): No library found for -lssl
Note (probably harmless): No library found for -lcrypto

A bit lower down:

gcc -G -L/opt/bw/lib/i386 -L/opt/bw/lib Random.o -o
blib/arch/auto/Crypt/OpenSSL/Random/Random.so \
\

chmod 755 blib/arch/auto/Crypt/OpenSSL/Random/Random.so

So it seems MakeMaker is looking into the wrong place (these libs are present in /opt/bw/lib/i386, and if I add -lssl -lcrypto to the line above then things are linked fine) and these libs are not being added to some MakeMaker Variable or other.

Any suggestions? I spent a while digging through the src (seems this is handled by Kid.pm) but no real progress.

Houst0n

In reply to MakeMaker failing to locate libs for shared objects by houst0n

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.