Subject: | HTTP::XSCookies 0.000007 fails to build on Windows with Visual Studio built perl |
Date: | Tue, 11 Jul 2017 10:22:25 -0400 |
To: | bug-HTTP-XSCookies [...] rt.cpan.org |
From: | "A. Sinan Unur" <nanis [...] cpan.org> |
This is due to:
1. Use of strcasecmp in baker.xs. [_stricmp][1] might help. Also,
`strings.h` does not exist on Windows.
2. Inclusion of `unistd.h` in `gmem.c`. Interestingly, with that line
commented out, the file still compiles OK. I am not sure why it is
needed.
3. Use of `gmtime_r`. I believe Windows' [_gmtime64][2] provides
equivalent functionality (but with a different interface).
I am reporting this because, currently, failing to build
`HTTP::XSCookies` breaks the Dancer build on this system as well[3].
I am not sure if I will have the time to put together a patch, but, at
the very least bailing out of the installation on unsupported
platforms might be something to add to your module's Makefile.PL.
Thank you.
-- Sinan
[1]: https://msdn.microsoft.com/en-us/library/k59z8dwe.aspx
[2]: https://msdn.microsoft.com/en-us/library/0z9czt0w.aspx
[3]: https://github.com/PerlDancer/Dancer2/issues/1358