I'm getting the following error while running 'make test' for GD.pm:
PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.00503/sun4-solaris -I/usr/local/lib/perl5/5.0 +0503 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @AR +GV;' t/*.t t/GD................Can't load './blib/arch/auto/GD/GD.so' for module +GD: ld.so.1: /usr/local/bin/perl: fatal: relocation error: file ./blib/arch/auto/GD/GD.so: symbol gdImageCreateFromJpegCtx: referenced symbol not found at /usr/local/lib/perl5/5.00503/sun4-solaris/DynaLoader.pm line 169. at t/GD.t line 11 BEGIN failed--compilation aborted at t/GD.t line 11. dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-10 Failed 10/10 tests, 0.00% okay Failed Test Status Wstat Total Fail Failed List of failed ---------------------------------------------------------------------- +--------- t/GD.t 2 512 10 10 100.00% 1-10 Failed 1/1 test scripts, 0.00% okay. 10/10 subtests failed, 0.00% okay +. make: *** [test_dynamic] Error 2
The file that contains the symbol gdImageCreateFromJpegCtx is libgd.a in /usr/local/lib. How in the world can I get GD.pm to recognize this?

I'm using: GD-1.32, gcc-2.95.2, gd-1.8.3, libpng-1.0.8, jpeg-6b, perl 5.005_03, and zlib 1.1.3, and solaris 7.

riot
Twisted mind? No, just bent in several strategic places.


In reply to Trouble with GD.pm and gd by riot

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.