in reply to Re^3: Writing threadsafe perl extensions
in thread Writing threadsafe perl extensions
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Writing threadsafe perl extensions
by BrowserUk (Patriarch) on Oct 22, 2007 at 00:01 UTC | |
Sorry I can't help more. I grabbed Math::GMP and whilst it built fine, but craps out very early in make test with "The procedure entrypoint __gmpz_sqrt could not be located in the DLL gmp.dll". There seems to be a fundemental conflict between an XS extension to call functions in a file called gmp.dll, itself being called gmp.dll. (As an aside, why do so few of these modules that have dependancies on third party libraries never bother to give pointers to where to get them, or even mention the dependancy, in the POD?) Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] |
by syphilis (Archbishop) on Oct 22, 2007 at 01:41 UTC | |
That's ok - you've alrready gone to more trouble than is warranted. There seems to be a fundemental conflict between an XS extension to call functions in a file called gmp.dll, itself being called gmp.dll Yes (on Win32 anyway), the dll that perl builds needs to have a different name to the the third party dll. I struck a similar problem trying to build PGPLOT. One workaround is to have perl build a dll with a different extension by specifying in WriteMakefile() something like: The bootstrap() call in GMP.pm then also needs to be changed: That should result in perl building a dll called gmp.xs.dll - which won't get confused with the gmp.dll that you already have. .. why do so few of these modules that have dependancies on third party libraries never bother to give pointers to where to get them, or even mention the dependancy Good question - and I can't really answer for Math::GMP. In my view, that info should be provided in the README - and I have GMP-based modules that do that. I guess it wouldn't hurt to duplicate that info in the POD - which I will do. Cheers, Rob | [reply] [d/l] [select] |
by BrowserUk (Patriarch) on Oct 22, 2007 at 02:19 UTC | |
Bah, fooey! One day, someone is going to realise that this build system is ...
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] |
by syphilis (Archbishop) on Oct 22, 2007 at 02:55 UTC | |