The PPM for DBD::Sybase-1.07 is at:
http://www.peppler.org/downloads/ActiveState/
I understand that 1.08 and 1.09 do not have PPM's. Can anyone
contribute these?
Meanwhile, my build with:
- MS Vista
- DBD::Sybase-1.08
- Perl 5.10
- Sybase 15.0
- MS Visual C++ (Microsoft Visual Studio 2008 x86 tools)
fails with:
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\cl.EXE"' : return code '0x2'
The gory details are below. I'd be grateful for help.
Thanks,
Steve
--------------------------------------------------------------------
C:\Users\Steve\tmp\DBD-Sybase-1.08>"%VS90COMNTOOLS%vsvars32.bat"
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
--------------------------------------------------------------------
C:\Users\Steve\tmp\DBD-Sybase-1.08>perl Makefile.PL
--accept_test_defaults --chained {Y, N} --threaded_libs {Y, N}
Unknown Client Library version - assuming FreeTDS.
By default DBD::Sybase 1.05 and later use the 'CHAINED' mode (where
available)
when 'AutoCommit' is turned off. Versions 1.04 and older instead managed
the transactions explicitly with a 'BEGIN TRAN' before the first DML
statement. Using the 'CHAINED' mode is preferable as it is the way that
Sybase implements AutoCommit handling for both its ODBC and JDBC
drivers.
Use 'CHAINED' mode by default (Y/N) [Y]:
* Writing login information, including password, to file PWD.
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -llibct.lib
Note (probably harmless): No library found for -llibcs.lib
Note (probably harmless): No library found for -llibtcl.lib
Note (probably harmless): No library found for -llibcomn.lib
Note (probably harmless): No library found for -llibintl.lib
Note (probably harmless): No library found for -llibblk.lib
Note (probably harmless): No library found for -lm
Using DBI 1.604 (for perl 5.010000 on MSWin32-x86-multi-thread)
installed in C:/Perl/lib/auto/DBI/
Writing Makefile for DBD::Sybase
--------------------------------------------------------------------
C:\Users\Steve\tmp\DBD-Sybase-1.08>nmake
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
Math::BigInt: couldn't load specified math lib(s), fallback to
Math::BigInt::FastCalc at C:/Perl/lib
/Win32API/File.pm line 20
cp dbd-sybase.pod blib\lib\DBD\dbd-sybase.pod
cp Sybase.pm blib\lib\DBD\Sybase.pm
C:\Perl\bin\perl.exe -p -e "s/~DRIVER~/Sybase/g"
C:\Perl\lib\auto\DBI\Driver.xst > Sybase.xs
i
C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -typemap
C:\Perl\lib\ExtUtils\typemap Syb
ase.xs > Sybase.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e mv
Sybase.xsc Sybase.c
cl -c -IC:\sybase/OCS-15_0/include -DNO_CHAINED_TRAN=1
-IC:/Perl/lib/auto/DBI -nologo -GF
-W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIV
LIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO
-DPERL_MSVCRT_READFIX -MD -
Zi -DNDEBUG -O1 -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\"
"-IC:\Perl\lib\CORE" Sybase.c
Sybase.c
Sybase.xs(83) : warning C4013: 'syb_ping' undefined; assuming extern
returning int
Sybase.xs(95) : warning C4013: 'syb_st_cancel' undefined; assuming
extern returning int
Sybase.xs(202) : warning C4996: 'strcat': This function or variable may
be unsafe. Consider using st
rcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See
online help for details.
C:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\string.h(79) : see declaration of 's
trcat'
Sybase.xs(203) : warning C4996: 'strcat': This function or variable may
be unsafe. Consider using st
rcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See
online help for details.
C:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\string.h(79) : see declaration of 's
trcat'
C:\Perl\lib\auto\DBI\Driver_xst.h(65) : warning C4996: 'sprintf': This
function or variable may be u
nsafe. Consider using sprintf_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See on
line help for details.
C:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\stdio.h(366) : see declaration of 's
printf'
C:\Perl\lib\auto\DBI\Driver_xst.h(92) : warning C4996: 'sprintf': This
function or variable may be u
nsafe. Consider using sprintf_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See on
line help for details.
C:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\stdio.h(366) : see declaration of 's
printf'
cl -c -IC:\sybase/OCS-15_0/include -DNO_CHAINED_TRAN=1
-IC:/Perl/lib/auto/DBI -nologo -GF
-W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIV
LIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO
-DPERL_MSVCRT_READFIX -MD -
Zi -DNDEBUG -O1 -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\"
"-IC:\Perl\lib\CORE" dbdimp.c
dbdimp.c
dbdimp.c(293) : warning C4996: 'sprintf': This function or variable may
be unsafe. Consider using sp
rintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
See online help for details.
C:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\stdio.h(366) : see declaration of 's
printf'
dbdimp.c(296) : warning C4996: 'sprintf': This function or variable may
be unsafe. Consider using sp
rintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
See online help for details.
C:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\stdio.h(366) : see declaration of 's
printf'
dbdimp.c(299) : warning C4996: 'sprintf': This function or variable may
be unsafe. Consider using sp
rintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
See online help for details.
C:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\stdio.h(366) : see declaration of 's
printf'
dbdimp.c(423) : warning C4996: 'strcpy': This function or variable may
be unsafe. Consider using str
cpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See
online help for details.
C:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\string.h(74) : see declaration of 's
trcpy'
dbdimp.c(513) : warning C4996: 'sprintf': This function or variable may
be unsafe. Consider using sp
rintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
See online help for details.
C:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\stdio.h(366) : see declaration of 's
printf'
dbdimp.c(516) : warning C4996: 'sprintf': This function or variable may
be unsafe. Consider using sp
rintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
See online help for details.
C:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\stdio.h(366) : see declaration of 's
printf'
dbdimp.c(694) : warning C4018: '>' : signed/unsigned mismatch
dbdimp.c(746) : error C2065: 'sigset_t' : undeclared identifier
dbdimp.c(746) : error C2146: syntax error : missing ';' before
identifier 'set'
dbdimp.c(746) : error C2065: 'set' : undeclared identifier
dbdimp.c(3915) : warning C4244: 'function' : conversion from 'CS_BIGINT'
to 'NV', possible loss of d
ata
dbdimp.c(3920) : warning C4244: 'function' : conversion from
'CS_UBIGINT' to 'NV', possible loss of
data
dbdimp.c(4926) : warning C4244: '=' : conversion from 'long' to
'CS_BINARY', possible loss of data
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\cl.EXE"' : return c
ode '0x2'
Stop.
C:\Users\Steve\tmp\DBD-Sybase-1.08>
--------------------------------------------------------------------
-----Original Message-----
From: Douglas Wilson [mailto:[email protected]]
Sent: Friday, March 27, 2009 10:58 AM
To: Livingston, Stephen
Cc: [email protected]
Subject: Re: DBD-Sybase-1.07_01 -> PPM Install
I should have saidI have DBD-Sybase 1.08 working with perl 5.10
On Fri, Mar 27, 2009 at 8:56 AM, Douglas Wilson
<[email protected]> wrote:
> Where did you get the ppd from?
>
> I don't see any PPMs listed here:
> http://cpan.uwinnipeg.ca/search?query=dbd-sybase&mode=dist
>
> I do have DBD::Sybase working with 5.10 on Unix, so it does
> work. On Windows I can't compile it due to no client library, so
> I use ODBC.
>
> On Thu, Mar 26, 2009 at 10:40 AM, Livingston, Stephen
> <[email protected]> wrote:
>> The usual incantation for ppm-install for DBD-Sybase-1.07_01 does not
>> work for my:
>>
>>
>>
>> XP / Perl v5.10.0
>>
>>
>>
>> Error:
>>
>> C:\livins \DBD-Sybase-1.07_01>ppm install DBD-Sybase.ppd
>>
>> ppm install failed: The PPD does not provide code to install for this
>> platform
>>
>>
>>
>> Is DBD-Sybase compatible with Perl 10?
>>
>>
>>
>> Thanks,
>>
>> Steve
>>
>>
>>
>>
>>
>>
>>
>> ****************************************************************
>> Confidentiality Note: The information contained in this message, and
any attachments, may contain confidential and/or privileged material.
It is intended solely for the person(s) or entity to which it is
addressed. Any review, retransmission, dissemination, or taking of any
action in
>> reliance upon this information by persons or entities other than the
intended recipient(s) is prohibited. If you received this in error,
please contact the sender and delete the material from any computer.
>> ****************************************************************
>>
>