Skip Menu |

This queue is for tickets about the Win32-GuiTest CPAN distribution.

Report information
The Basics
Id: 111399
Status: resolved
Priority: 0/
Queue: Win32-GuiTest

People
Owner: Nobody in particular
Requestors: sinan [...] unur.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Win32::GuiTest fails to build with MS VS2013 due to strncasecmp
Date: Sun, 24 Jan 2016 07:31:35 -0500
To: bug-Win32-GuiTest [...] rt.cpan.org
From: "A. Sinan Unur" <sinan [...] unur.com>
First off, thank you very much for Win32::GuiTest. It has been very useful to me in many situations. While running my routine cpan-outdated | cpanm on a Windows 10 laptop with a perl 5.23.6 built with MS VS2013 tools, I noticed that Win32::GuiTest 1.62 failed to build with the following error: Show quoted text
> GuiTest.xs(1600) : error C3861: 'strncasecmp': identifier not found
I believe the correct function for this platform is _strnicmp (see <https://msdn.microsoft.com/en-us/library/chd90w8e.aspx>). This probably would not work in Cygwin and/or MinGW environments, so a conditional define might work best: #ifdef _MSC_VER #define strncasecmp _strnicmp #endif HTH, -- Sinan
Subject: Re: [rt.cpan.org #111399] Win32::GuiTest fails to build with MS VS2013 due to strncasecmp
Date: Sun, 24 Jan 2016 15:11:24 +0100
To: "A. Sinan Unur via RT" <bug-Win32-GuiTest [...] rt.cpan.org>
From: Dmitry Karasik <dmitry [...] karasik.eu.org>
Hi Sinan, Thanks for the report! Please try out the latest github versin and see if it works for you: https://github.com/dk/Win32-GuiTest /dk On Sun, Jan 24, 2016 at 07:31:54AM -0500, A. Sinan Unur via RT wrote: Show quoted text
> Sun Jan 24 07:31:48 2016: Request 111399 was acted upon. > Transaction: Ticket created by sinan@unur.com > Queue: Win32-GuiTest > Subject: Win32::GuiTest fails to build with MS VS2013 due to strncasecmp > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: sinan@unur.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=111399 > > > > First off, thank you very much for Win32::GuiTest. It has been very > useful to me in many situations. > > While running my routine cpan-outdated | cpanm on a Windows 10 laptop > with a perl 5.23.6 built with MS VS2013 tools, I noticed that > Win32::GuiTest 1.62 failed to build with the following error: >
> > GuiTest.xs(1600) : error C3861: 'strncasecmp': identifier not found
> > I believe the correct function for this platform is _strnicmp (see > <https://msdn.microsoft.com/en-us/library/chd90w8e.aspx>). > > This probably would not work in Cygwin and/or MinGW environments, so a > conditional define might work best: > > #ifdef _MSC_VER > #define strncasecmp _strnicmp > #endif > > HTH, > > -- Sinan
-- Sincerely, Dmitry Karasik
CC: "A. Sinan Unur" <sinan [...] unur.com>
Subject: Re: [rt.cpan.org #111399] Win32::GuiTest fails to build with MS VS2013 due to strncasecmp
Date: Mon, 25 Jan 2016 05:57:56 -0500
To: bug-Win32-GuiTest [...] rt.cpan.org
From: "A. Sinan Unur" <sinan [...] unur.com>
On Sun, Jan 24, 2016 at 9:11 AM, Dmitry Karasik via RT <bug-Win32-GuiTest@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=111399 > > > Hi Sinan, > > Thanks for the report! Please try out the latest github versin > and see if it works for you: https://github.com/dk/Win32-GuiTest
Thank you for the response. Build succeeds and all tests pass. HTH, -- Sinan
fixed; will appear in 1.63