I am trying to get DBD::Sybase working on a Windows platform with Activestate perl 5.8. I could not find a PPM module already compiled for the platform that works with Sybase 15.0. All the errors are "Can't find libct". In Sybase 15, the libraries are all renamed to libsybct, libsybdb, libsybblk, and so on.
So I downloaded all of the programs from http://www.perlmonks.org/index.pl?node_id=387070, downloaded DBD::Sybase 1.08, modified the Makefile.PL to reference the new library names and attempted to compile. It's not working (note, this is only part of the error messages):
dbdimp.c(513) : warning C4996: 'sprintf' was declared deprecated
C:\msvs8\VC\INCLUDE\stdio.h(345) : see declaration of 'sprintf
+'
Message: 'This function or variable may be unsafe. Consider us
+ing sprin
f_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
+ online h
lp for details.'
dbdimp.c(516) : warning C4996: 'sprintf' was declared deprecated
C:\msvs8\VC\INCLUDE\stdio.h(345) : see declaration of 'sprintf
+'
Message: 'This function or variable may be unsafe. Consider us
+ing sprin
f_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
+ online h
lp for details.'
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 identif
+ier 'set'
dbdimp.c(746) : error C2065: 'set' : undeclared identifier
dbdimp.c(3915) : warning C4244: 'function' : conversion from 'CS_BIGIN
+T' to 'NV
, possible loss of data
dbdimp.c(3920) : warning C4244: 'function' : conversion from 'CS_UBIGI
+NT' to 'N
', possible loss of data
dbdimp.c(4926) : warning C4244: '=' : conversion from 'long' to 'CS_BI
+NARY', po
sible loss of data
NMAKE : fatal error U1077: 'C:\msvs8\VC\BIN\cl.EXE' : return code '0x2
+'
Stop.
Does anyone have this working? Any help or tips?
Thanks
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|