Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Can't install Win32::ODBC

by Thai Heng (Beadle)
on Sep 17, 2013 at 01:25 UTC ( #1054368=perlquestion: print w/ replies, xml ) Need Help??
Thai Heng has asked for the wisdom of the Perl Monks concerning the following question:

My OS is windows 7. I use the cmmand "cpanm Win32::ODBC", but failed. The output as folows:
cpanm (App::cpanminus) 1.6923 on perl 5.016003 built for MSWin32-x64-m +ulti-thread Work directory is C:\Users\hp/.cpanm/work/1379378792.8180 You have make C:\strawberry\c\bin\dmake.exe You have LWP 6.04 Falling back to Archive::Tar 1.90 You have E:\app\hp\product\11.2.0\dbhome_1\bin\unzip.exe Searching Win32::ODBC on cpanmetadb ... --> Working on Win32::ODBC Fetching http://www.cpan.org/authors/id/J/JD/JDB/Win32-ODBC-0.034.tar. +gz -> OK Unpacking Win32-ODBC-0.034.tar.gz Entering Win32-ODBC-0.034 Checking configure dependencies from META.yml Configuring Win32-ODBC-0.034 Running Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Win32::ODBC Writing MYMETA.yml and MYMETA.json 33285542 -> OK Checking dependencies from MYMETA.json ... Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.64) Building and testing Win32-ODBC-0.034 cp ODBC.pm blib\lib\Win32\ODBC.pm gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCR +IPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing + -mms-bitfields -s -O2 -DVERSION=\"0.034\" -DXS_VERSION=\"0 +.034\" "-IC:\strawberry\perl\lib\CORE" CMom.cpp CMom.cpp: In destructor 'CMom::~CMom()': CMom.cpp:113:10: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCR +IPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing + -mms-bitfields -s -O2 -DVERSION=\"0.034\" -DXS_VERSION=\"0 +.034\" "-IC:\strawberry\perl\lib\CORE" Constant.cpp gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCR +IPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing + -mms-bitfields -s -O2 -DVERSION=\"0.034\" -DXS_VERSION=\"0 +.034\" "-IC:\strawberry\perl\lib\CORE" CResults.cpp CResults.cpp: In constructor 'CResults::CResults(ODBC_TYPE*)': CResults.cpp:100:55: warning: deprecated conversion from string consta +nt to 'char*' [-Wwrite-strings] CResults.cpp:100:55: warning: deprecated conversion from string consta +nt to 'char*' [-Wwrite-strings] CResults.cpp:124:55: warning: deprecated conversion from string consta +nt to 'char*' [-Wwrite-strings] CResults.cpp:124:55: warning: deprecated conversion from string consta +nt to 'char*' [-Wwrite-strings] CResults.cpp: In member function 'char* CResults::operator[](int)': CResults.cpp:200:16: warning: deprecated conversion from string consta +nt to 'char*' [-Wwrite-strings] C:\strawberry\perl\bin\perl.exe -IC:\strawberry\perl\lib -IC:\strawber +ry\perl\lib C:\strawberry\perl\lib\ExtUtils\xsubpp -typemap C:\straw +berry\perl\lib\ExtUtils\typemap ODBC.xs >xstmp.c && C:\strawberry\per +l\bin\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_SCR +IPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing + -mms-bitfields -s -O2 -DVERSION=\"0.034\" -DXS_VERSION=\"0 +.034\" "-IC:\strawberry\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] 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] ODBC.xs:352:51: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'char* MapCloseType(UWORD)': ODBC.xs:576:22: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs:580:22: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs:584:22: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs:588:22: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs:592:22: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_Connect(PerlInterpreter*, CV +*)': ODBC.xs:645:110: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:645:110: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:645:110: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:653:100: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:653:100: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:661:66: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs:661:66: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs:678:44: error: cast from 'char*' to 'UDWORD {aka long unsigned + int}' loses precision [-fpermissive] ODBC.xs:683:66: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs:693:54: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] 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] ODBC.xs:712:58: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs:731:9: warning: deprecated conversion from string constant to +'char*' [-Wwrite-strings] 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] ODBC.xs:774:54: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs:792:9: warning: deprecated conversion from string constant to +'char*' [-Wwrite-strings] 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] 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] 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] 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] ODBC.xs:853:48: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs:868:9: warning: deprecated conversion from string constant to +'char*' [-Wwrite-strings] 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] 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] ODBC.xs:930:9: warning: deprecated conversion from string constant to +'char*' [-Wwrite-strings] ODBC.xs: In function 'RETCODE TableColList(PerlInterpreter*, int)': ODBC.xs:1033:55: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1033:55: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1058:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_MoreResults(PerlInterpreter* +, CV*)': ODBC.xs:1082:54: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1082:54: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1094:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_MaxBufSize(PerlInterpreter*, + CV*)': ODBC.xs:1125:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_GetDSN(PerlInterpreter*, CV* +)': ODBC.xs:1195:88: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1195:88: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1195:88: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1217:88: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1217:88: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1217:88: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1220:67: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1220:67: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1220:67: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1224:80: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1224:80: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1224:80: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1230:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_DataSources(PerlInterpreter* +, CV*)': ODBC.xs:1281:90: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1281:90: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1281:90: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1283:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_Drivers(PerlInterpreter*, CV +*)': ODBC.xs:1323:86: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1323:86: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1323:86: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1325:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_RowCount(PerlInterpreter*, C +V*)': ODBC.xs:1350:87: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1350:87: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1350:87: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1352:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_GetStmtCloseType(PerlInterpr +eter*, CV*)': ODBC.xs:1395:81: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1395:81: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1395:81: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1402:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_SetStmtCloseType(PerlInterpr +eter*, CV*)': ODBC.xs:1431:89: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1431:89: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1431:89: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1436:85: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1436:85: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1436:85: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1443:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_SetConnectOption(PerlInterpr +eter*, CV*)': ODBC.xs:1470:28: error: cast from 'char*' to 'UDWORD {aka long unsigne +d int}' loses precision [-fpermissive] ODBC.xs:1477:59: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1477:59: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1486:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_GetConnectOption(PerlInterpr +eter*, CV*)': ODBC.xs:1515:59: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1515:59: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1542:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_StmtOption(PerlInterpreter*, + CV*)': ODBC.xs:1571:32: error: cast from 'char*' to 'UDWORD {aka long unsigne +d int}' loses precision [-fpermissive] ODBC.xs:1583:57: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1583:57: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1589:57: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1589:57: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1618:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_GetFunctions(PerlInterpreter +*, CV*)': ODBC.xs:1657:55: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1657:55: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1682:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_Transact(PerlInterpreter*, C +V*)': ODBC.xs:1710:55: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1710:55: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1713:74: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1713:74: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1713:74: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1722:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_ConfigDSN(PerlInterpreter*, +CV*)': ODBC.xs:1763:98: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1763:98: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1763:98: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1771:99: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1771:99: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1771:99: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1796:97: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1796:97: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1796:97: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1814:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_GetInfo(PerlInterpreter*, CV +*)': ODBC.xs:1857:58: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1857:58: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1860:96: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1860:96: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1860:96: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1890:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_ColAttributes(PerlInterprete +r*, CV*)': ODBC.xs:1956:95: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1956:95: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1956:95: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1959:80: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1959:80: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1959:80: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:1966:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_Debug(PerlInterpreter*, CV*) +': ODBC.xs:2053:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_SetPos(PerlInterpreter*, CV* +)': ODBC.xs:2086:49: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2086:49: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2098:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_GetData(PerlInterpreter*, CV +*)': ODBC.xs:2169:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_DropCursor(PerlInterpreter*, + CV*)': ODBC.xs:2208:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_CursorName(PerlInterpreter*, + CV*)': ODBC.xs:2236:57: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2236:57: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2243:85: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2243:85: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2243:85: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2246:65: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2246:65: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2250:57: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2250:57: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2261:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] 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] 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 t +o 'char*' [-Wwrite-strings] ODBC.xs:2300:48: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2319:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_GetSQLState(PerlInterpreter* +, CV*)': ODBC.xs:2342:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_GetStats(PerlInterpreter*, C +V*)': ODBC.xs:2366:43: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2366:43: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2366:43: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2366:43: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2366:43: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2366:43: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2366:43: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2366:43: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2366:43: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2366:43: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2366:43: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2366:43: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2366:43: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2433:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void XS_WIN32__ODBC_GetTypeInfo(PerlInterpreter* +, CV*)': ODBC.xs:2445:26: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2467:62: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2467:62: warning: deprecated conversion from string constant t +o 'char*' [-Wwrite-strings] ODBC.xs:2489:9: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] ODBC.xs: In function 'void boot_Win32__ODBC(PerlInterpreter*, CV*)': ODBC.xs:2596:1: warning: deprecated conversion from string constant to + 'char*' [-Wwrite-strings] dmake.exe: Error code 129, while making 'ODBC.o' -> FAIL Installing Win32::ODBC failed. See C:\Users\hp\.cpanm\work\137 +9378792.8180\build.log for details. Retry with --force to force insta +ll it. Expiring 2 work directories.
Thanks for your help!

Comment on Can't install Win32::ODBC
Download Code
Re: Can't install Win32::ODBC
by bulk88 (Priest) on Sep 17, 2013 at 03:25 UTC
    C:\sperl\perl\bin\perl.exe -IC:\sperl\perl\lib -IC:\sperl\perl\lib C:\ +sperl\perl \lib\ExtUtils\xsubpp -typemap C:\sperl\perl\lib\ExtUtils\typemap ODBC. +xs >xstmp .c && C:\sperl\perl\bin\perl.exe -MExtUtils::Command -e mv -- xstmp.c +ODBC.cpp Didn't find a 'MODULE ... PACKAGE ... PREFIX' line gcc -c -ggdb -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPT +S -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno- +strict-ali asing -mms-bitfields -O2 -DVERSION=\"0.034\" -DXS_VERSION=\"0.034\" "-IC:\sperl\perl\lib\CORE" ODBC.cpp ODBC.xs: In function 'RETCODE ResetStmt(ODBC_TYPE*)': ODBC.xs:347: warning: deprecated conversion from string constant to 'c +har*' ............................... ODBC.xs: In function 'void XS_WIN32__ODBC_Connect(PerlInterpreter*, CV +*)': ODBC.xs:645: warning: deprecated conversion from string constant to 'c +har*' ...................................... ODBC.xs:661: warning: deprecated conversion from string constant to 'c +har*' ODBC.xs:678: error: cast from 'char*' to 'UDWORD' loses precision ODBC.xs:683: warning: deprecated conversion from string constant to 'c +har*' ...................................... ODBC.xs:2489: warning: deprecated conversion from string constant to ' +char*' ODBC.xs: In function 'void boot_Win32__ODBC(PerlInterpreter*, CV*)': ODBC.xs:2596: warning: deprecated conversion from string constant to ' +char*' dmake: Error code 129, while making 'ODBC.o' C:\Documents and Settings\Administrator\.cpan\build\Win32-ODBC-0.034-u +1YhI1>perl -V Summary of my perl5 (revision 5 version 14 subversion 2) configuration +: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x64-multi-thread uname='Win32 strawberryperl 5.14.2.1 #1 Tue Nov 22 22:40:59 2011 x +64' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und +ef use64bitint=define, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags =' -ggdb -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DP +ERL_TEXTMO DE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT +_SYS -fno- strict-aliasing -mms-bitfields', optimize=' -O2 ', cppflags='-DWIN32' ccversion='', gccversion='4.4.7', gccosandvers='' intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +2 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='lo +ng long', lseeksize=8 .............................
    Same here.
    UDWORD udValue; /////////////////////////////////////////////////// if (SvIOKp(ST(iTemp)) || SvNOKp(ST(iTemp))){ udValue = SvIV(ST(iTemp)); }else{ udValue = (UDWORD) SvPV(ST(iTemp), n_a); } retcode = SQLSetConnectOption(h->hdbc->hdbc, uType +, udValue);
    This module hasn't been updated in years, and its not 64 bit compliant. http://msdn.microsoft.com/en-us/library/ms716287%28v=vs.85%29.aspx, That "UDWORD" should now be "ULONG_PTR" or "DWORD_PTR" toi be 32 and 64 bit compliant. Even MS updated the OBDC API with "SQLULEN" instead of whatever was there before. Also read http://msdn.microsoft.com/en-us/library/windows/desktop/aa384242%28v=vs.85%29.aspx.
Re: Can't install Win32::ODBC
by ig (Vicar) on Sep 17, 2013 at 03:31 UTC

    It looks like you are trying to build Win32::ODBC on a 64bit version of Perl and failing on a cast of pointer to UDWORD. The udValue variable, which would take the cast of pointer if it were 32bit, is used as an argument to SQLSetConnectOption which is a deprecated function. This might be only the tip of the iceberg as far as getting Win32::ODBC to compile and work in a 64bit context.

    Can you use a 32bit version of Perl?

    Can you use DBI and DBD::ODBC rather than Win32::ODBC? This is what I do and I have had not trouble with either 32bit or 64bit versions of perl on Windows 7 64bit.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1054368]
Approved by sundialsvc4
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-08-01 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (257 votes), past polls