delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/03/29/15:56:26

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=CyB
2UghmVoBeGosM83XdVcKwGJx72Sc3L6aTazwWXBggTs9CHVHV+Lvrba5L3/2EFrc
5270Wu/nMJpbmAn6M/yRFxZP3lyEsxjUcwS09cuvEJR7lXxfp9GDKwnHtIpyxxwx
jVlkG3OJiPNWFtRNBqpFuLW7LJiKGMGztz+mztVU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; s=default; bh=Fr/RI4VxM
Vz+sKbxzo722byLlnM=; b=y0FxdQv8wGt0mFTYPsrcuKxPgk4+qyGInaUras5GC
i3kMVYblKQ3OFjWaE/gtbT0sT5+7VQXJzoQTu6Za4uUsRqZaaJ9mK5qhgj5m5pfE
wTJNsRGjBirRwuxx+djCMM311k4b29GF8xUkogPvQpCvig/NdxJeNBUvzYafdvUu
0o=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1 spammy=forwarder, svp, sk:fstack-, sk:fstack
X-HELO: NAM02-CY1-obe.outbound.protection.outlook.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i5QevnQWw95GnM1+1zztgqCtI5tv+8ZCY44hRdA7oqg=; b=Tm+ODduRSqbSWC7sccZuivDRls46WEcA1SPFv2ZJHSErB1vdj5ZqVY++LrAuWnx3zLHPGH1OKFXLFtEYy4FJeoDh8KrTvmo9dK0RL/sRKbycwJqJLmZI4GWsMS12h7Wa+b06UIDL78oIu9zU+XgxeuzDwHTm8srFp7/3JAgq3iSWz668OYUjV3r7XBRb9N4aDD3PMpM36YBN3Y7mDhcZHxKJTyYff7Nmi8UQe4xi5TVrxoGrvPjUlHsN8G/XITxH3O5Fb9gEtIcB29TCijeq/hgcKZl+CPux6NlLElH+HeAjudt+AYVQij1LtY3wG050xdEHK2lTd1HzjwRX3RUkng==
From: Massimo Balestra <massimobalestra AT hotmail DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Compile perl Win32::OLE module
Date: Fri, 29 Mar 2019 19:56:04 +0000
Message-ID: <BYAPR11MB3783DB05A441A69CBF2BA130B65A0@BYAPR11MB3783.namprd11.prod.outlook.com>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x2TJuOVj007978

Hi,
I am trying to compile the module Win32::OLE but it fails.
I searched on Google and I did not find any good suggestion.
Can anyone help me?
This is what I get:
(This is from cpan but it is the same if I compile manually downlaoding the tar package)
<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>
Thank you for the help


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019