Subject: | Devel::CheckLib breaks Math::GMP |
Hi,
When I try to build Math-GMP-2.11 I get:
C:\Users\sisyphus\.cpan\build\Math-GMP-2.11>perl Makefile.PL
Can't link/include C library 'gmp', aborting.
Getting Math-GMP-2.11 to build successfully is as simple as editing the Makefile.PL so that:
use Devel::CheckLib;
check_lib_or_exit(
header => 'gmp.h',
lib => 'gmp',
);
becomes:
#use Devel::CheckLib;
#check_lib_or_exit(
# header => 'gmp.h',
# lib => 'gmp',
#);
If you really must use Devel::CheckLib, it would be nice if you could get it fixed.
I don't actually *need* Math::GMP, but it's a handy reference to have - and one of which I would avail myself if Devel::CheckLib did not cause 'cpan -i Math::GMP' to fail.
FYI, in my particular scenario, the gmp library gets found by default because its location is in $Config{libpth}, and gmp.h gets found by default because its location is in $ENV{CPATH}.
I would have expected that Devel::CheckLib would be alert to both of those possibilities but apparently it's oblivious to at least one of them.
I couldn't care less about Devel::CheckLib, so I'm not going to file a bug report against it.
But I do care about Math::GMP - hence Math::GMP scores the bug report ;-)
See also https://rt.cpan.org/Ticket/Display.html?id=111149
Cheers,
Rob