Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Can't install Win32::ODBC

by bulk88 (Priest)
on Sep 17, 2013 at 03:25 UTC ( #1054377=note: print w/ replies, xml ) Need Help??


in reply to Can't install Win32::ODBC

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.


Comment on Re: Can't install Win32::ODBC
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (15)
As of 2014-07-10 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (208 votes), past polls