Skip Menu |

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

Report information
The Basics
Id: 95612
Status: resolved
Priority: 0/
Queue: Win32-OLE

People
Owner: Nobody in particular
Requestors: BINGOS [...] cpan.org
Cc:
AdminCc:

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



Subject: Fails to build on Cygwin64
http://www.cpantesters.org/cpan/report/412571ee-da88-11e3-9f96-e4d5e82f99b1 http://www.cpantesters.org/cpan/report/e746bd26-da92-11e3-9f96-e4d5e82f99b1 Very important to me as I am trying to migrate from 32bit Windows to 64bit and want to transfer my vast array of Windows administrative scripts. Many thanks in advance.
Subject: [rt.cpan.org #95612] Fails to build on Cygwin64
Date: Wed, 14 May 2014 19:59:18 +0200
To: bug-Win32-OLE [...] rt.cpan.org
From: Alexander Stadler <sa.maillists [...] univie.ac.at>
Solution: ------ --- OLE.xs.bak 2014-05-14 18:33:28.553124500 +0200 +++ OLE.xs 2014-05-14 19:09:44.689074000 +0200 @@ -2374,16 +2374,16 @@ cDims = SafeArrayGetDim(psa); AV **pav; - long *pix; + LONG *pix; long *plen; New(0, pav, cDims, AV*); - New(0, pix, cDims, long); + New(0, pix, cDims, LONG); New(0, plen, cDims, long); pav[0] = av; plen[0] = av_len(pav[0])+1; - Zero(pix, cDims, long); + Zero(pix, cDims, LONG); VARIANT variant; VARIANT *pElement = &variant; @@ -2496,12 +2496,12 @@ IV dim = 1; IV maxdim = 2; AV **pav; - unsigned long *pix; + LONG *pix; unsigned long *plen; SAFEARRAYBOUND *psab; New(0, pav, maxdim, AV*); - New(0, pix, maxdim, unsigned long); + New(0, pix, maxdim, LONG); New(0, plen, maxdim, unsigned long); New(0, psab, maxdim, SAFEARRAYBOUND); @@ -2519,7 +2519,7 @@ if (++index >= maxdim) { maxdim *= 2; Renew(pav, maxdim, AV*); - Renew(pix, maxdim, unsigned long); + Renew(pix, maxdim, LONG); Renew(plen, maxdim, unsigned long); Renew(psab, maxdim, SAFEARRAYBOUND); } @@ -2637,7 +2637,7 @@ char *pSrc = SvPV(sv, len); HRESULT hr = SafeArrayAccessData(psa, (void**)&pDest); if (SUCCEEDED(hr)) { - long lLower, lUpper; + LONG lLower, lUpper; SafeArrayGetLBound(psa, 1, &lLower); SafeArrayGetUBound(psa, 1, &lUpper); @@ -2888,7 +2888,7 @@ /* convert 1-dim UI1 ARRAY to simple SvPV */ if (vt_base == VT_UI1 && dim == 1) { char *pStr; - long lLower, lUpper; + LONG lLower, lUpper; SafeArrayGetLBound(psa, 1, &lLower); SafeArrayGetUBound(psa, 1, &lUpper); @@ -2902,12 +2902,12 @@ } AV **pav; - long *pArrayIndex, *pLowerBound, *pUpperBound; + LONG *pArrayIndex, *pLowerBound, *pUpperBound; New(0, pav, dim, AV*); - New(0, pArrayIndex, dim, long); - New(0, pLowerBound, dim, long); - New(0, pUpperBound, dim, long); + New(0, pArrayIndex, dim, LONG); + New(0, pLowerBound, dim, LONG); + New(0, pUpperBound, dim, LONG); IV index; for (index = 0; index < dim; ++index) { @@ -5386,8 +5386,8 @@ XSRETURN_EMPTY; } - long *rgIndices; - New(0, rgIndices, cDims, long); + LONG *rgIndices; + New(0, rgIndices, cDims, LONG); for (int iDim=0; iDim < cDims; ++iDim) rgIndices[iDim] = (long)SvIV(ST(1+iDim)); @@ -5734,7 +5734,7 @@ HRESULT hr = S_OK; int cDims = SafeArrayGetDim(psa); for (int iDim=0; iDim < cDims; ++iDim) { - long lLBound, lUBound; + LONG lLBound, lUBound; hr = SafeArrayGetLBound(psa, 1+iDim, &lLBound); if (FAILED(hr)) break; @@ -5826,8 +5826,8 @@ XSRETURN_EMPTY; } - long *rgIndices; - New(0, rgIndices, cDims, long); + LONG *rgIndices; + New(0, rgIndices, cDims, LONG); for (int iDim=0; iDim < cDims; ++iDim) rgIndices[iDim] = (long)SvIV(ST(1+iDim));

Message body is not shown because sender requested not to inline it.

RT-Send-CC: sa.maillists [...] univie.ac.at
On Wed May 14 13:59:05 2014, sa.maillists@univie.ac.at wrote: Show quoted text
> Solution:
Thanks for the patch! Applied in 0.1712