Subject: | Win32::API::Callback |
Date: | Tue, 2 Dec 2014 15:40:07 +0000 |
To: | "bug-Win32-API [...] rt.cpan.org" <bug-Win32-API [...] rt.cpan.org> |
From: | "Baugh, Hugh W" <hugh.w.baugh [...] lmco.com> |
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.
Environment:
Module id = Win32::API
CPAN_USERID BULKDD (Daniel Dragan <bulkdd@cpan.org>)
CPAN_VERSION 0.79
CPAN_FILE B/BU/BULKDD/Win32/Win32-API-0.79.tar.gz
UPLOAD_DATE 2014-08-25
MANPAGE Win32::API - Perl Win32 API Import Facility
INST_FILE /usr/lib/perl5/site_perl/5.14/x86_64-cygwin-threads/Win32/API.pm
INST_VERSION 0.79
$ perl -v
This is perl 5, version 14, subversion 4 (v5.14.4) built for cygwin-thread-multi
(with 7 registered patches, see perl -V for more detail)
Copyright 1987-2013, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
$ uname -a
CYGWIN_NT-6.1 SSCW04S217L1 1.8.6-2(0.280/5/3) 2014-11-07 09:47 x86_64 Cygwin