Fri Mar 29 15:34:05 2019: Request 128960 was acted upon. Transaction: Ticket created by massimobales...@gmail.com Queue: Win32-OLE Subject: Cannot compile on cygwin Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: massimobales...@gmail.com Status: new Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128960 >
Hi, I tried to compile Win32::OLE on the last version of cygwin64 but It does not compile. There are a lot of warnings and at the end "cc1plus: some warnings being treated as errors" I paste here the whole compilation log. <code> cpan[1]> install Win32::OLE Reading '/home/mbalestra/.cpan/Metadata' Database was generated on Fri, 29 Mar 2019 18:17:02 GMT Running install for module 'Win32::OLE' Checksum for /home/mbalestra/.cpan/sources/authors/id/J/JD/JDB/Win32-OLE-0.1712.tar.gz ok Scanning cache /home/mbalestra/.cpan/build for sizes ............................................................................DONE Configuring J/JD/JDB/Win32-OLE-0.1712.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Win32::OLE Writing MYMETA.yml and MYMETA.json JDB/Win32-OLE-0.1712.tar.gz /usr/bin/perl Makefile.PL -- OK Running make for J/JD/JDB/Win32-OLE-0.1712.tar.gz cp lib/Win32/OLE/TypeInfo.pm blib/lib/Win32/OLE/TypeInfo.pm cp lib/Win32/OLE/NLS.pm blib/lib/Win32/OLE/NLS.pm cp lib/Win32/OLE/Lite.pm blib/lib/Win32/OLE/Lite.pm cp lib/Win32/OLE/Const.pm blib/lib/Win32/OLE/Const.pm cp lib/OLE.pm blib/lib/OLE.pm cp lib/Win32/OLE/Enum.pm blib/lib/Win32/OLE/Enum.pm cp lib/Win32/OLE/TPJ.pod blib/lib/Win32/OLE/TPJ.pod cp lib/Win32/OLE/Variant.pm blib/lib/Win32/OLE/Variant.pm cp lib/Win32/OLE.pm blib/lib/Win32/OLE.pm cp lib/Win32/OLE/NEWS.pod blib/lib/Win32/OLE/NEWS.pod Running Mkbootstrap for OLE () chmod 644 "OLE.bs" "/usr/bin/perl.exe" -MExtUtils::Command::MM -e 'cp_nonempty' -- OLE.bs blib/arch/auto/Win32/OLE/OLE.bs 644 "/usr/bin/perl.exe" -I/usr/lib/perl5/5.26/x86_64-cygwin-threads -I/usr/share/perl5/5.26 "/usr/share/perl5/5.26/ExtUtils/xsubpp" -typemap '/usr/share/perl5/5.26/ExtUtils/typemap' OLE.xs >xstmp.c && mv xstmp.c OLE.cpp g++ -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -ggdb -O2 -pipe -Wall -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/build=/usr/src/debug/perl-5.26.3-1 -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/src/perl-5.26.3=/usr/src/debug/perl-5.26.3-1 -fwrapv -fno-strict-aliasing -DUSEIMPORTLIB -O3 -DVERSION=\"0.1712\" -DXS_VERSION=\"0.1712\" "-I/usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE" OLE.cpp In file included from OLE.xs:94:0: /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:3628:67: warning: ‘unused’ attribute ignored [-Wattributes] # define __attribute__unused__ __attribute__((unused)) ^ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:323:30: note: in expansion of macro ‘__attribute__unused__’ # define PERL_UNUSED_DECL __attribute__unused__ ^~~~~~~~~~~~~~~~~~~~~ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:175:30: note: in expansion of macro ‘PERL_UNUSED_DECL’ # define pTHX tTHX my_perl PERL_UNUSED_DECL ^~~~~~~~~~~~~~~~ OLE.xs:368:5: note: in expansion of macro ‘pTHX’ pTHX; ^ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:3628:67: warning: ‘unused’ attribute ignored [-Wattributes] # define __attribute__unused__ __attribute__((unused)) ^ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:323:30: note: in expansion of macro ‘__attribute__unused__’ # define PERL_UNUSED_DECL __attribute__unused__ ^~~~~~~~~~~~~~~~~~~~~ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:175:30: note: in expansion of macro ‘PERL_UNUSED_DECL’ # define pTHX tTHX my_perl PERL_UNUSED_DECL ^~~~~~~~~~~~~~~~ OLE.xs:411:5: note: in expansion of macro ‘pTHX’ pTHX; ^ In file included from /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:2698:0, from OLE.xs:94: OLE.xs: In function ‘BOOL StartsWithAlpha(PerlInterpreter*, SV*)’: /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/embed.h:747:56: warning: ‘UV Perl_utf8_to_uvuni(PerlInterpreter*, const U8*, STRLEN*)’ is deprecated [-Wdeprecated-declarations] #define utf8_to_uvuni(a,b) Perl_utf8_to_uvuni(aTHX_ a,b) ^ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1705:45: note: in definition of macro ‘_generic_swash_uvchr’ #define _generic_swash_uvchr(classnum, c) ((c) < 256 \ ^ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1738:33: note: in expansion of macro ‘isALPHA_uvchr’ #define isALPHA_uni(c) isALPHA_uvchr(c) ^~~~~~~~~~~~~ OLE.xs:449:16: note: in expansion of macro ‘isALPHA_uni’ return isALPHA_uni(my_utf8_to_uv((U8*)str)); ^ OLE.xs:114:29: note: in expansion of macro ‘utf8_to_uvuni’ # define my_utf8_to_uv(s) utf8_to_uvuni(s, NULL) ^~~~~~~~~~~~~ OLE.xs:449:28: note: in expansion of macro ‘my_utf8_to_uv’ return isALPHA_uni(my_utf8_to_uv((U8*)str)); ^ In file included from /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:5609:0, from OLE.xs:94: /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/proto.h:3622:18: note: declared here PERL_CALLCONV UV Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen) ^~~~~~~~~~~~~~~~~~ In file included from /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:2698:0, from OLE.xs:94: /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/embed.h:747:56: warning: ‘UV Perl_utf8_to_uvuni(PerlInterpreter*, const U8*, STRLEN*)’ is deprecated [-Wdeprecated-declarations] #define utf8_to_uvuni(a,b) Perl_utf8_to_uvuni(aTHX_ a,b) ^ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:111:24: note: in definition of macro ‘cBOOL’ #define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0) ^~~~~ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1250:45: note: in expansion of macro ‘FITS_IN_8_BITS’ # define _generic_isCC(c, classnum) cBOOL(FITS_IN_8_BITS(c) \ ^~~~~~~~~~~~~~ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1706:48: note: in expansion of macro ‘_generic_isCC’ ? _generic_isCC(c, classnum) \ ^~~~~~~~~~~~~ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1708:31: note: in expansion of macro ‘_generic_swash_uvchr’ #define isALPHA_uvchr(c) _generic_swash_uvchr(_CC_ALPHA, c) ^~~~~~~~~~~~~~~~~~~~ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1738:33: note: in expansion of macro ‘isALPHA_uvchr’ #define isALPHA_uni(c) isALPHA_uvchr(c) ^~~~~~~~~~~~~ OLE.xs:449:16: note: in expansion of macro ‘isALPHA_uni’ return isALPHA_uni(my_utf8_to_uv((U8*)str)); ^ OLE.xs:114:29: note: in expansion of macro ‘utf8_to_uvuni’ # define my_utf8_to_uv(s) utf8_to_uvuni(s, NULL) ^~~~~~~~~~~~~ OLE.xs:449:28: note: in expansion of macro ‘my_utf8_to_uv’ return isALPHA_uni(my_utf8_to_uv((U8*)str)); ^ In file included from /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:5609:0, from OLE.xs:94: /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/proto.h:3622:18: note: declared here PERL_CALLCONV UV Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen) ^~~~~~~~~~~~~~~~~~ In file included from /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:2698:0, from OLE.xs:94: /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/embed.h:747:56: warning: ‘UV Perl_utf8_to_uvuni(PerlInterpreter*, const U8*, STRLEN*)’ is deprecated [-Wdeprecated-declarations] #define utf8_to_uvuni(a,b) Perl_utf8_to_uvuni(aTHX_ a,b) ^ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:111:24: note: in definition of macro ‘cBOOL’ #define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0) ^~~~~ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1250:45: note: in expansion of macro ‘FITS_IN_8_BITS’ # define _generic_isCC(c, classnum) cBOOL(FITS_IN_8_BITS(c) \ ^~~~~~~~~~~~~~ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1706:48: note: in expansion of macro ‘_generic_isCC’ ? _generic_isCC(c, classnum) \ ^~~~~~~~~~~~~ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1708:31: note: in expansion of macro ‘_generic_swash_uvchr’ #define isALPHA_uvchr(c) _generic_swash_uvchr(_CC_ALPHA, c) ^~~~~~~~~~~~~~~~~~~~ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1738:33: note: in expansion of macro ‘isALPHA_uvchr’ #define isALPHA_uni(c) isALPHA_uvchr(c) ^~~~~~~~~~~~~ OLE.xs:449:16: note: in expansion of macro ‘isALPHA_uni’ return isALPHA_uni(my_utf8_to_uv((U8*)str)); ^ OLE.xs:114:29: note: in expansion of macro ‘utf8_to_uvuni’ # define my_utf8_to_uv(s) utf8_to_uvuni(s, NULL) ^~~~~~~~~~~~~ OLE.xs:449:28: note: in expansion of macro ‘my_utf8_to_uv’ return isALPHA_uni(my_utf8_to_uv((U8*)str)); ^ In file included from /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:5609:0, from OLE.xs:94: /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/proto.h:3622:18: note: declared here PERL_CALLCONV UV Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen) ^~~~~~~~~~~~~~~~~~ In file included from /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:2698:0, from OLE.xs:94: /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/embed.h:747:56: warning: ‘UV Perl_utf8_to_uvuni(PerlInterpreter*, const U8*, STRLEN*)’ is deprecated [-Wdeprecated-declarations] #define utf8_to_uvuni(a,b) Perl_utf8_to_uvuni(aTHX_ a,b) ^ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:111:24: note: in definition of macro ‘cBOOL’ #define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0) ^~~~~ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1706:48: note: in expansion of macro ‘_generic_isCC’ ? _generic_isCC(c, classnum) \ ^~~~~~~~~~~~~ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1708:31: note: in expansion of macro ‘_generic_swash_uvchr’ #define isALPHA_uvchr(c) _generic_swash_uvchr(_CC_ALPHA, c) ^~~~~~~~~~~~~~~~~~~~ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1738:33: note: in expansion of macro ‘isALPHA_uvchr’ #define isALPHA_uni(c) isALPHA_uvchr(c) ^~~~~~~~~~~~~ OLE.xs:449:16: note: in expansion of macro ‘isALPHA_uni’ return isALPHA_uni(my_utf8_to_uv((U8*)str)); ^ OLE.xs:114:29: note: in expansion of macro ‘utf8_to_uvuni’ # define my_utf8_to_uv(s) utf8_to_uvuni(s, NULL) ^~~~~~~~~~~~~ OLE.xs:449:28: note: in expansion of macro ‘my_utf8_to_uv’ return isALPHA_uni(my_utf8_to_uv((U8*)str)); ^ In file included from /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:5609:0, from OLE.xs:94: /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/proto.h:3622:18: note: declared here PERL_CALLCONV UV Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen) ^~~~~~~~~~~~~~~~~~ In file included from /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:5644:0, from OLE.xs:94: /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/embed.h:747:56: warning: ‘UV Perl_utf8_to_uvuni(PerlInterpreter*, const U8*, STRLEN*)’ is deprecated [-Wdeprecated-declarations] #define utf8_to_uvuni(a,b) Perl_utf8_to_uvuni(aTHX_ a,b) ^ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/embed.h:32:51: note: in definition of macro ‘_is_uni_FOO’ #define _is_uni_FOO(a,b) Perl__is_uni_FOO(aTHX_ a,b) ^ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1708:31: note: in expansion of macro ‘_generic_swash_uvchr’ #define isALPHA_uvchr(c) _generic_swash_uvchr(_CC_ALPHA, c) ^~~~~~~~~~~~~~~~~~~~ /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/handy.h:1738:33: note: in expansion of macro ‘isALPHA_uvchr’ #define isALPHA_uni(c) isALPHA_uvchr(c) ^~~~~~~~~~~~~ OLE.xs:449:16: note: in expansion of macro ‘isALPHA_uni’ return isALPHA_uni(my_utf8_to_uv((U8*)str)); ^ OLE.xs:114:29: note: in expansion of macro ‘utf8_to_uvuni’ # define my_utf8_to_uv(s) utf8_to_uvuni(s, NULL) ^~~~~~~~~~~~~ OLE.xs:449:28: note: in expansion of macro ‘my_utf8_to_uv’ return isALPHA_uni(my_utf8_to_uv((U8*)str)); ^ In file included from /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:5609:0, from OLE.xs:94: /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/proto.h:3622:18: note: declared here PERL_CALLCONV UV Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen) ^~~~~~~~~~~~~~~~~~ OLE.xs: In function ‘BOOL IsLocalMachine(PerlInterpreter*, SV*)’: OLE.xs:483:12: error: ‘stricmp’ was not declared in this scope && stricmp(pszName, szComputerName) == 0) ^~~~~~~ OLE.xs:483:12: note: suggested alternative: ‘strncmp’ && stricmp(pszName, szComputerName) == 0) ^~~~~~~ strncmp OLE.xs: In function ‘char* GetMultiByteEx(PerlInterpreter*, OLECHAR*, int*, char*, int, UINT)’: OLE.xs:637:65: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘DWORD {aka unsigned int}’ [-Wformat=] warn(MY_VERSION ": GetMultiByte() failure: %lu", GetLastError()); ~~~~~~~~~~~~~~^ OLE.xs: In function ‘OLECHAR* GetWideChar(PerlInterpreter*, SV*, OLECHAR*, int, UINT)’: OLE.xs:725:64: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘DWORD {aka unsigned int}’ [-Wformat=] warn(MY_VERSION ": GetWideChar() failure: %lu", GetLastError()); ~~~~~~~~~~~~~~^ OLE.xs: In function ‘void ReportOleError(PerlInterpreter*, HV*, HRESULT, EXCEPINFO*, SV*)’: OLE.xs:925:17: error: format not a string literal and no format arguments [-Werror=format-security] warn(SvPVX(sv)); ^ OLE.xs: In function ‘SV* CreatePerlObject(PerlInterpreter*, HV*, IDispatch*, SV*)’: OLE.xs:1089:14: warning: unused variable ‘svp’ [-Wunused-variable] SV **svp = hv_store(g_hv_unique, (char*)&punk, sizeof(punk), ^~~ OLE.xs: In member function ‘virtual ULONG EventSink::Release()’: OLE.xs:2043:12: warning: deleting object of polymorphic class type ‘EventSink’ which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] delete this; ^~~~ OLE.xs: In member function ‘virtual ULONG Forwarder::Release()’: OLE.xs:2218:12: warning: deleting object of polymorphic class type ‘Forwarder’ which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] delete this; ^~~~ OLE.xs: In function ‘void Initialize(PerlInterpreter*, HV*, DWORD)’: OLE.xs:3239:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (dwCoInit == COINIT_OLEINITIALIZE) { ^ OLE.xs:3244:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if (dwCoInit != COINIT_NO_INITIALIZE) { ^ OLE.xs: In function ‘void XS_Win32__OLE_GetObject(PerlInterpreter*, CV*)’: OLE.xs:4144:78: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘ULONG {aka unsigned int}’ [-Wformat=] sv_setpvf(sv, "after character %lu in \"%s\"", ulEaten, SvPV_nolen(pathname)); ^ OLE.xs: In function ‘void XS_Win32__OLE__Tie_FIRSTKEY(PerlInterpreter*, CV*)’: OLE.xs:4682:11: warning: unused variable ‘paszMethod’ [-Wunused-variable] char *paszMethod[] = {"FIRSTKEY", "NEXTKEY", "FIRSTENUM", "NEXTENUM"}; ^~~~~~~~~~ OLE.c: In function ‘void XS_Win32__OLE__Const__Typelibs(PerlInterpreter*, CV*)’: OLE.c:5273:7: warning: unused variable ‘self’ [-Wunused-variable] OLE.xs: In function ‘void XS_Win32__OLE__Enum_All(PerlInterpreter*, CV*)’: OLE.xs:5089:9: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] count); ^ OLE.xs: In function ‘void XS_Win32__OLE__Variant_new(PerlInterpreter*, CV*)’: OLE.xs:5193:6: warning: unused variable ‘sv’ [-Wunused-variable] SV *sv = ST(items-1); ^~ OLE.c: In function ‘void XS_Win32__OLE__TypeInfo__new(PerlInterpreter*, CV*)’: OLE.c:7311:7: warning: unused variable ‘self’ [-Wunused-variable] cc1plus: some warnings being treated as errors make: *** [Makefile:357: OLE.o] Error 1 JDB/Win32-OLE-0.1712.tar.gz /usr/bin/make -- NOT OK Failed during this command: JDB/Win32-OLE-0.1712.tar.gz : make NO cpan[2]> </code> Did I do anything wrong? Is there anything we can do? Thank you Massimo