in reply to Devel::CheckLib: Please break our code!

So how do we test it? Do we use it or do we install it via CPAN and let YOUR tests run? BTW, I just tried I can't get it via CPAN.
  • Comment on Re: Devel::CheckLib: Please break our code!

Replies are listed 'Best First'.
Re^2: Devel::CheckLib: Please break our code!
by xdg (Monsignor) on Oct 19, 2007 at 14:50 UTC

    You may need to wait until your CPAN mirror catches up. (Or switch to a mirror that updates more frequently.)

    As for testing, as a start, just try to install it using CPAN -- i.e. run our tests. Better yet, install and configure CPAN::Reporter first. That way, if it fails, we'll get notified automatically via CPAN Testers.

    Second, try it from the command line on some libraries on your system. Pick something you know you have and pick something you know you don't have.

    E.g., for me, with Strawberry Perl (Win32):

    C:\david\svk>perl -MDevel::CheckLib -e "assert_lib( lib => q{m} )" C:\david\svk>perl -MDevel::CheckLib -e "assert_lib( lib => q{jpeg} )" Can't build and link to 'jpeg'

    Or, on linux:

    $ perl -MDevel::CheckLib -e 'assert_lib( lib => "jpeg" )' $ perl -MDevel::CheckLib -e 'assert_lib( lib => "m" )' $ perl -MDevel::CheckLib -e 'assert_lib( lib => "iconv" )' Can't build and link to 'iconv'

    If it doesn't give you the results you expect for those libraries, let us know, along with your perl -V output.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

      Thanks - I am going to test it out on AIX (xlc). I'll get back with the results once I have something for you.