Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Testing for C library status at perl binding build time?

by jettero (Monsignor)
on Dec 17, 2009 at 18:10 UTC ( [id://813225]=note: print w/replies, xml ) Need Help??


in reply to Testing for C library status at perl binding build time?

I've been using Devel::CheckLib with great success.

-Paul

  • Comment on Re: Testing for C library status at perl binding build time?

Replies are listed 'Best First'.
Re^2: Testing for C library status at perl binding build time?
by dkg (Acolyte) on Dec 17, 2009 at 19:01 UTC

    We're already using Devel::CheckLib, but it only checks for the existence of the library. I don't see a way to make it check the return value of a given function call when compiled against that library.

    Have i missed something from the Devel::CheckLib documentation?

      The current stable version (0.06) doesn't support this, but it seems that the current developer version, 0.699_001, supports supplying your own function body to be compiled and/or run. And as you're supposed to bundle Devel::CheckLib with your module anyway, using the developer version is just as good as using the stable version.

        yes, perfect! thanks for pointing out that change in Devel::CheckLib. I think we'll use 0.699; it tests and works fine for me to distinguish the different versions of libgcrypt across different installations.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://813225]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2024-04-25 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found