Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[rt.cpan.org #120939] Build fails on Strawberry Perl 5.24.1.1 (64bit) Windows 10

14 views
Skip to first unread message

Jason L. Froebe via RT

unread,
Apr 4, 2017, 3:00:11 PM4/4/17
to libw...@perl.org
Tue Apr 04 14:54:00 2017: Request 120939 was acted upon.
Transaction: Ticket created by ja...@froebe.net
Queue: Win32-ODBC
Subject: Build fails on Strawberry Perl 5.24.1.1 (64bit) Windows 10
Broken in: 0.035
Severity: (no value)
Owner: Nobody
Requestors: ja...@froebe.net
Status: new
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=120939 >


Platform: Strawberry Perl 5.24.1.1 (64bit) Windows 10
Win32::ODBC version: 0.035

cpan> install Win32::ODBC
Running install for module 'Win32::ODBC'
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/J/JD/JDB/Win32-ODBC-0.035.tar.gz
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/J/JD/JDB/CHECKSUMS
Checksum for C:\Perl\STRAWB~1\cpan\sources\authors\id\J\JD\JDB\Win32-ODBC-0.035.tar.gz ok
Configuring J/JD/JDB/Win32-ODBC-0.035.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Win32::ODBC
Writing MYMETA.yml and MYMETA.json
JDB/Win32-ODBC-0.035.tar.gz
C:\Perl\Strawberry\perl\bin\perl.exe Makefile.PL -- OK
Running make for J/JD/JDB/Win32-ODBC-0.035.tar.gz
cp ODBC.pm blib\lib\Win32\ODBC.pm
Running Mkbootstrap for ODBC ()
"C:\Perl\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 "ODBC.bs"
"C:\Perl\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- ODBC.bs blib\arch\auto\Win32\ODBC\ODBC.
bs 644
gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SY
S -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"0.035\" -DXS_VERSION=\"0.035\" "-IC:\Perl\STRAW
B~1\perl\lib\CORE" CMom.cpp
CMom.cpp: In destructor 'CMom::~CMom()':
CMom.cpp:113:8: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
szTemp = "\n\n====================================\nCMom::~CMom: WE ARE DELETING CMom! OH MY GOD! NO!!! DON'T DO IT!!!\
n\n\n";
^
gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SY
S -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"0.035\" -DXS_VERSION=\"0.035\" "-IC:\Perl\STRAW
B~1\perl\lib\CORE" Constant.cpp
gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SY
S -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"0.035\" -DXS_VERSION=\"0.035\" "-IC:\Perl\STRAW
B~1\perl\lib\CORE" CResults.cpp
CResults.cpp: In constructor 'CResults::CResults(ODBC_TYPE*)':
CResults.cpp:100:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
::ODBCError((char *)szBuff, h, "CResults()", "1");
^
CResults.cpp:100:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
CResults.cpp:124:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
::ODBCError((char *)szBuff, h, "CResults()", "2");
^
CResults.cpp:124:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
CResults.cpp: In member function 'char* CResults::operator[](int)':
CResults.cpp:200:14: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
szReturn = NULL_VALUE;
^
"C:\Perl\Strawberry\perl\bin\perl.exe" -IC:\Perl\STRAWB~1\perl\lib -IC:\Perl\STRAWB~1\perl\lib "C:\Perl\Strawberry\perl\
lib\ExtUtils\xsubpp" -typemap C:\Perl\STRAWB~1\perl\lib\ExtUtils\typemap ODBC.xs >xstmp.c && "C:\Perl\Strawberry\perl\b
in\perl.exe" -MExtUtils::Command -e mv -- xstmp.c ODBC.cpp
Didn't find a 'MODULE ... PACKAGE ... PREFIX' line
gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SY
S -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"0.035\" -DXS_VERSION=\"0.035\" "-IC:\Perl\STRAW
B~1\perl\lib\CORE" ODBC.cpp
ODBC.xs: In function 'RETCODE ResetStmt(ODBC_TYPE*)':
ODBC.xs:347:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ResetStmt", "1");
^
ODBC.xs:347:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:352:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ResetStmt", "2");
^
ODBC.xs:352:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs: In function 'char* MapCloseType(UWORD)':
ODBC.xs:576:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
szType = "SQL_DONT_CLOSE";
^
ODBC.xs:580:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
szType = "SQL_DROP";
^
ODBC.xs:584:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
szType = "SQL_CLOSE";
^
ODBC.xs:588:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
szType = "SQL_UNBIND";
^
ODBC.xs:592:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
szType = "SQL_RESET_PARAMS";
^
ODBC.xs: In function 'void XS_WIN32__ODBC_Connect(PerlInterpreter*, CV*)':
ODBC.xs:645:110: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
h = ODBCError("Could not allocate memory of an ODBC connection\n", (ODBC_TYPE*)0, "ODBC_Connect", "1");
^
ODBC.xs:645:110: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:645:110: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:653:100: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_Connect could not allocate memory for an HDBC connection", "1a");
^
ODBC.xs:653:100: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:661:66: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error((ODBC_TYPE*)0, "ODBC_Connect", "2");
^
ODBC.xs:661:66: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from C:\Perl\STRAWB~1\perl\lib\CORE/perl.h:3895:0,
from ODBC.xs:45:
C:\Perl\STRAWB~1\perl\lib\CORE/sv.h:1659:68: error: cast from 'char*' to 'UDWORD {aka long unsigned int}' loses precisio
n [-fpermissive]
? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_2pv_flags(sv, &lp, flags))
^
C:\Perl\STRAWB~1\perl\lib\CORE/sv.h:1653:30: note: in expansion of macro 'SvPV_flags'
#define SvPV(sv, lp) SvPV_flags(sv, lp, SV_GMAGIC)
^
ODBC.xs:678:44: note: in expansion of macro 'SvPV'
udValue = (UDWORD) SvPV(ST(iTemp), n_a);
^
ODBC.xs:683:66: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_Connect", szError);
^
ODBC.xs:693:54: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_Connect", "4");
^
ODBC.xs:693:54: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:712:58: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_Connect", "5");
^
ODBC.xs:712:58: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:731:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_Execute(PerlInterpreter*, CV*)':
ODBC.xs:774:54: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_Execute", "1");
^
ODBC.xs:774:54: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:792:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_Fetch(PerlInterpreter*, CV*)':
ODBC.xs:836:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Can not allocate memory for row status results", h, "ODBC_Fetch", "1b");
^
ODBC.xs:836:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:836:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:846:48: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_Fetch", "2");
^
ODBC.xs:846:48: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:849:70: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("No data records remain.", h, "ODBC_Fetch", "3");
^
ODBC.xs:849:70: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:849:70: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:853:48: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_Fetch", "4");
^
ODBC.xs:853:48: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:868:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_Disconnect(PerlInterpreter*, CV*)':
ODBC.xs:912:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
h = ODBCError("No such connection", (ODBC_TYPE*) 0, "ODBC_Disconnect", "1");
^
ODBC.xs:912:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:912:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:930:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'RETCODE TableColList(PerlInterpreter*, int)':
ODBC.xs:1033:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_TableColList", "1");
^
ODBC.xs:1033:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1058:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_MoreResults(PerlInterpreter*, CV*)':
ODBC.xs:1082:54: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_MoreResults", "1");
^
ODBC.xs:1082:54: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1094:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_MaxBufSize(PerlInterpreter*, CV*)':
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1125:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_GetDSN(PerlInterpreter*, CV*)':
ODBC.xs:1195:88: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Could not allocate memory for DSN comparison", h, "ODBC_GetDSN", "1");
^
ODBC.xs:1195:88: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1195:88: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1217:88: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Could not allocate enough memory", h, "ODBC_GetDSN", "2");
^
ODBC.xs:1217:88: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1217:88: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1220:67: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Not a valid DSN", h, "ODBC_GetDSN", "3");
^
ODBC.xs:1220:67: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1220:67: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1224:80: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Could not allocate enough memory", h, "ODBC_GetDSN", "4");
^
ODBC.xs:1224:80: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1224:80: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1230:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_DataSources(PerlInterpreter*, CV*)':
ODBC.xs:1281:90: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
h = ODBCError("No such ODBC connection.", (ODBC_TYPE*) 0, "ODBC_DataSources", "1");
^
ODBC.xs:1281:90: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1281:90: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1283:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_Drivers(PerlInterpreter*, CV*)':
ODBC.xs:1323:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
h = ODBCError("No such ODBC connection.", (ODBC_TYPE*) 0, "ODBC_Drivers", "1");
^
ODBC.xs:1323:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1323:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1325:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_RowCount(PerlInterpreter*, CV*)':
ODBC.xs:1350:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
h = ODBCError("No such ODBC connection.", (ODBC_TYPE*) 0, "ODBC_RowCount", "1");
^
ODBC.xs:1350:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1350:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1352:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_GetStmtCloseType(PerlInterpreter*, CV*)':
ODBC.xs:1395:81: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Invalid Statment Close Type", h, "ODBC_GetStmtCloseType", "1");
^
ODBC.xs:1395:81: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1395:81: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1402:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_SetStmtCloseType(PerlInterpreter*, CV*)':
ODBC.xs:1431:89: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Invalid Statment Close Type", h, "ODBC_SetStmtCloseType", "1");
^
ODBC.xs:1431:89: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1431:89: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1436:85: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Not a valid Stmt Close Type", h, "ODBC_SetStmtCloseType", "2");
^
ODBC.xs:1436:85: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1436:85: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1443:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
In file included from C:\Perl\STRAWB~1\perl\lib\CORE/perl.h:3895:0,
from ODBC.xs:45:
ODBC.xs: In function 'void XS_WIN32__ODBC_SetConnectOption(PerlInterpreter*, CV*)':
C:\Perl\STRAWB~1\perl\lib\CORE/sv.h:1659:68: error: cast from 'char*' to 'UDWORD {aka long unsigned int}' loses precisio
n [-fpermissive]
? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_2pv_flags(sv, &lp, flags))
^
C:\Perl\STRAWB~1\perl\lib\CORE/sv.h:1653:30: note: in expansion of macro 'SvPV_flags'
#define SvPV(sv, lp) SvPV_flags(sv, lp, SV_GMAGIC)
^
ODBC.xs:1470:28: note: in expansion of macro 'SvPV'
udValue = (UDWORD) SvPV(ST(2), n_a);
^
ODBC.xs:1477:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_SetConnectOption", "1");
^
ODBC.xs:1477:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1486:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_GetConnectOption(PerlInterpreter*, CV*)':
ODBC.xs:1515:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_GetConnectOption", "1");
^
ODBC.xs:1515:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1542:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
In file included from C:\Perl\STRAWB~1\perl\lib\CORE/perl.h:3895:0,
from ODBC.xs:45:
ODBC.xs: In function 'void XS_WIN32__ODBC_StmtOption(PerlInterpreter*, CV*)':
C:\Perl\STRAWB~1\perl\lib\CORE/sv.h:1659:68: error: cast from 'char*' to 'UDWORD {aka long unsigned int}' loses precisio
n [-fpermissive]
? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_2pv_flags(sv, &lp, flags))
^
C:\Perl\STRAWB~1\perl\lib\CORE/sv.h:1653:30: note: in expansion of macro 'SvPV_flags'
#define SvPV(sv, lp) SvPV_flags(sv, lp, SV_GMAGIC)
^
ODBC.xs:1571:32: note: in expansion of macro 'SvPV'
udValue = (UDWORD) SvPV(ST(2), n_a);
^
ODBC.xs:1583:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_StmtOption", "1");
^
ODBC.xs:1583:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1589:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_StmtOption", "2");
^
ODBC.xs:1589:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1618:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_GetFunctions(PerlInterpreter*, CV*)':
ODBC.xs:1657:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_GetFunctions", "1");
^
ODBC.xs:1657:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1682:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_Transact(PerlInterpreter*, CV*)':
ODBC.xs:1710:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_Transact", "1");
^
ODBC.xs:1710:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1713:74: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Invalid Transaction Type", h, "ODBC_Transact", "2");
^
ODBC.xs:1713:74: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1713:74: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1722:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_ConfigDSN(PerlInterpreter*, CV*)':
ODBC.xs:1763:98: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Illegal use of reserved characters []{}(),?*!@;", h, "ODBC_ConfigDSN", "1");
^
ODBC.xs:1763:98: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1763:98: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1771:99: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Could not allocate memory for the attribute list", h, "ODBC_ConfigDSN", "2");
^
ODBC.xs:1771:99: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1771:99: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1796:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Illegal use of reserved characters []{}(),?*!@", h, "ODBC_ConfigDSN", "3");
^
ODBC.xs:1796:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1796:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1814:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_GetInfo(PerlInterpreter*, CV*)':
ODBC.xs:1857:58: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_GetInfo", "1");
^
ODBC.xs:1857:58: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1860:96: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Could not allocate memory for result string", h, "ODBC_GetInfo", "2");
^
ODBC.xs:1860:96: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1860:96: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1890:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_ColAttributes(PerlInterpreter*, CV*)':
ODBC.xs:1956:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Unable to determine Column Attribute", h, "ODBC_ColAttributes", "1");
^
ODBC.xs:1956:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1956:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1959:80: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Field name does not exist", h, "ODBC_ColAttributes", "2");
^
ODBC.xs:1959:80: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:1959:80: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:1966:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_Debug(PerlInterpreter*, CV*)':
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:2053:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_SetPos(PerlInterpreter*, CV*)':
ODBC.xs:2086:49: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_SetPos", "1");
^
ODBC.xs:2086:49: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:2098:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_GetData(PerlInterpreter*, CV*)':
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:2169:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_DropCursor(PerlInterpreter*, CV*)':
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:2208:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_CursorName(PerlInterpreter*, CV*)':
ODBC.xs:2236:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_CursorName", "1");
^
ODBC.xs:2236:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2243:85: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBCError("Could not allocate memory", h, "ODBC_CursorName", "2");
^
ODBC.xs:2243:85: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2243:85: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2246:65: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_CursorName", "3");
^
ODBC.xs:2246:65: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2250:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_CursorName", "4");
^
ODBC.xs:2250:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:2261:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_Clone(PerlInterpreter*, CV*)':
ODBC.xs:2290:109: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
h = ODBCError("Could not allocate memory of an ODBC connection\n", (ODBC_TYPE *)0, "ODBC_Clone", "1");
^
ODBC.xs:2290:109: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2290:109: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2300:48: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_Clone", "2");
^
ODBC.xs:2300:48: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:2319:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_GetSQLState(PerlInterpreter*, CV*)':
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:2342:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_GetStats(PerlInterpreter*, CV*)':
ODBC.xs:2366:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
"ConnectionDebug"}; // Connections Debug state (if any)
^
ODBC.xs:2366:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2366:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2366:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2366:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2366:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2366:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2366:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2366:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2366:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2366:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2366:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ODBC.xs:2366:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:2433:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void XS_WIN32__ODBC_GetTypeInfo(PerlInterpreter*, CV*)':
ODBC.xs:2445:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szCommand = "GetTypeInfo()";
^
ODBC.xs:2467:62: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_NT_ODBC_Error(h, "ODBC_GetTypeInfo", "1");
^
ODBC.xs:2467:62: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from ODBC.xs:59:0:
ODBC.h:84:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *szError = "No connections exist"; \
^
ODBC.xs:2489:9: note: in expansion of macro 'ReturnError'
ReturnError(h);
^
ODBC.xs: In function 'void boot_Win32__ODBC(PerlInterpreter*, CV*)':
ODBC.xs:2596:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char* file = __FILE__;
^
dmake.exe: Error code 129, while making 'ODBC.o'
JDB/Win32-ODBC-0.035.tar.gz
C:\Perl\STRAWB~1\c\bin\dmake.exe -- NOT OK
Stopping: 'install' failed for 'Win32::ODBC'.
Failed during this command:
JDB/Win32-ODBC-0.035.tar.gz : make NO

cpan>

Sisyphus via RT

unread,
May 16, 2018, 8:30:02 PM5/16/18
to libw...@perl.org
Wed May 16 20:16:10 2018: Request 120939 was acted upon.
Transaction: Correspondence added by SISYPHUS
Queue: Win32-ODBC
Subject: Build fails on Strawberry Perl 5.24.1.1 (64bit) Windows 10
Broken in: 0.035
Severity: (no value)
Owner: Nobody
Requestors: ja...@froebe.net
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=120939 >


On Wed May 16 18:11:31 2018, RAVENHALL wrote:
> I have the same problem on Strawberry Perl 5.24.4_64. This is a very
> widely used module, please address this with a fix.

I believe the source files are C++ (hence the "cpp" and "hpp" extensions), yet you are using gcc as the compiler.
Try using g++ instead, by running:

cpanm Win32::ODBC --configure-args="CC=g++"

and check the build log to verify that g++ does, in fact, get used instead of gcc.

I've not ever built or used Win32::ODBC, so I don't know if there are any other issues with building it on Strawberry Perl, but I do know that compiling C++ source with gcc is likely to not work.

ActiveState might provide ppm packages of Win32::ODBC. I think they would work fine on Strawberry Perl ... but this would be a workaround, not a solution.

Cheers,
Rob

Christian Walde via RT

unread,
Jul 8, 2018, 5:15:02 PM7/8/18
to libw...@perl.org
Sun Jul 08 17:00:29 2018: Request 120939 was acted upon.
Transaction: Correspondence added by MITHALDU
Queue: Win32-ODBC
Subject: Build fails on Strawberry Perl 5.24.1.1 (64bit) Windows 10
Broken in: 0.035
Severity: (no value)
Owner: Nobody
Requestors: ja...@froebe.net
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=120939 >


On Thu May 17 02:16:10 2018, SISYPHUS wrote:

> cpanm Win32::ODBC --configure-args="CC=g++"

I just tried this and got what looks like the same result: https://gist.github.com/wchristian/9c003bf4c92ceae8cf9bf2e82b2d2b58

I can however note that this only happens under x64 perl, not x86.

Christian Walde via RT

unread,
Jul 9, 2018, 1:30:02 PM7/9/18
to libw...@perl.org
Mon Jul 09 13:11:17 2018: Request 120939 was acted upon.
Transaction: Correspondence added by MITHALDU
Queue: Win32-ODBC
Subject: Build fails on Strawberry Perl 5.24.1.1 (64bit) Windows 10
Broken in: 0.035
Severity: (no value)
Owner: Nobody
Requestors: ja...@froebe.net
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=120939 >


Based on some notes by bulk88 i implemented some changes that seem to work under 32 and 64 bit: https://github.com/jandubois/win32-odbc/pull/5
0 new messages