Mon Jan 26 00:18:11 2015: Request 100666 was acted upon. Transaction: Correspondence added by sflitman Queue: Win32-API Subject: Win32::API::Callback Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: hugh.w.ba...@lmco.com Status: new Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=100666 >
On Tue Dec 02 10:41:06 2014, hugh.w.ba...@lmco.com wrote: > While attempting to install on Cygwin, I received the following error: > > g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols > -Wl,--enable-auto-image-base -fstack-protector Callback.o -o > ../blib/arch/auto/Win32/API/Callback/Callback.dll \ > /usr/lib/perl5/5.14/x86_64-cygwin-threads/CORE/cygperl5_14.dll > \ > > Callback.o:Callback.c:(.text+0x779): undefined reference to `strnicmp' > > I modified ./build/Win32-API-0.79-g9Rask/Callback/Callback.xs by > changing strnicmp to strncasecmp and the install was successful. > > $ uname -a > CYGWIN_NT-6.1 SSCW04S217L1 1.8.6-2(0.280/5/3) 2014-11-07 09:47 x86_64 > Cygwin Same fix, I did the slightly more elegant: #ifndef WIN32 # define stricmp strcasecmp # define strnicmp strncasecmp #endif at the top of Callback.xs Please add to the official release. SSF