This is the sort of problem where I expect something simple to be wrong . . .

I've installed the SDL library with Gentoo's packages (tried libsdl 1.2.6-r3, 1.2.7-r3, and 1.2.8-r1 (the 'r' is the Gentoo package revision number, not SDL versioning)) and have successfully compiled and run a small demo program (2DTunnel available at http://www.libsdl.org/demos.php). I've tried to install SDL_perl via Gentoo emerge and CPANPLUS.pm. In either case, when I try to load the SDL module, I get:

$ perl -MSDL -e '' Can't load '/usr/lib/perl5/vendor_perl/5.8.5/i686-linux/auto/SDL_perl/ +SDL_perl.so' for module SDL_perl: /usr/lib/perl5/vendor_perl/5.8.5/i6 +86-linux/auto/SDL_perl/SDL_perl.so: undefined symbol: filledpieColor +at /usr/lib/perl5/5.8.5/i686-linux/DynaLoader.pm line 230. at /usr/lib/perl5/vendor_perl/5.8.5/i686-linux/SDL.pm line 9 Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.5/i686 +-linux/SDL.pm line 9. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/ +i686-linux/SDL.pm line 9. Compilation failed in require. BEGIN failed--compilation aborted.

Doing strace on the above command reveals that the SDL .so library is being loaded, so it isn't a linking problem.

This is SDL_Perl-1.20.3 on perl 5.8.5 on i686-linux. I get the same results with SDL_Perl-2.1.2.

"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.


In reply to SDL_perl Linking Problem by hardburn

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.