in reply to Re: inet_pton on Windows Perl
in thread inet_pton on Windows Perl

Thanks for sharing your solution and suggestions, VinsWorldcom, I'll look into them.

Also, I guess I should have mentioned that I also tried ActivePerl (5.14) and its built-in toolchain (gcc 3.4.5), as well as the latest MinGW toolchain (gcc 4.7.2), to no avail. Those combinations would fail to even build Math::Int128.

Replies are listed 'Best First'.
Re^3: inet_pton on Windows Perl
by syphilis (Archbishop) on Aug 16, 2013 at 13:08 UTC
    Those combinations would fail to even build Math::Int128

    For Math::Int128 you need a 64-bit compiler, and hence a 64-bit build of perl.
    Even then, the build is failing due to a bug in either perl itself or the Math-Int128-0.12 source. (Last I heard, the Math::Int128 author was investigating.)

    If you have a 64-bit build of Windows perl you can install Math-Int128-0.12 using ppm:
    ppm install http://www.sisyphusion.tk/ppm/Math-Int128.ppd --force
    That package was built using this patch. (If you want to build Math-Int128-0.12 from source yourself, use that patch in preference to the patch supplied in the afore mentioned bug report.)

    And keep an eye out for Math-Int128-0.13 which will hopefully build straight out of the box with MinGW ports of 64-bit gcc.

    Cheers,
    Rob

      Okay, I tried that Math-Int128 package and it did install successfully on my Active Perl 5.16.3, 64-bit. Thanks for that.

      However, I come back to the same problem: the last package I need to install is MaxMind::DB::Reader, and it requires version 0.12 of Net::Works. The Active repo has version 0.01 so I use cpan to try and install Net::Works 0.12 and dmake barfs on the same `inet_pton' errors:

      C:\apps\Perl64\cpan\build\Net-Works-0.12-8Cw8vA>dmake test C:\apps\Perl64\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harne +ss(0, 'blib\lib', 'blib\arch')" t/*.t t/Address.t ................ Socket::inet_pton not implemented on this + architecture at C:\apps\Perl64\cpan\build\Net-Wor ks-0.12-8Cw8vA\blib\lib/Net/Works/Address.pm line 67. t/Address.t ................ Dubious, test returned 255 (wstat 65280, +0xff00)
      I am using the gcc (rubenvb-4.5.4) and dmake (4.12-20090907) provided by Active's PPM.