Hi Perl Monks

I am a total newbie when it comes to Perl and I am currently trying (without success!) to compile the DBD::Sybase (OCS 15.7) using Strawberry Perl 5.18.2001 on a Windows 2008 R2 server.

Warnings and errors I am seeing are shown below starting with the makefile:-

Warning (mostly harmless): No library found for -llibsybtcl.lib
Warning (mostly harmless): No library found for -llibsybcomn.lib
Warning (mostly harmless): No library found for -llibsybintl.lib

Then the dmake comes up with a number of issues:-

dbdimp.c:3906:4: warning: passing argument 2 of 'ct_results' from incompatible pointer type enabled by default
In file included from Sybase.h:19:0,
from dbdimp.c:11:
C:\Progra~1\Sybase/OCS-15_0/include/ctpublic.h:374:29: note: expected 'CS_INT *' but argument is of type 'int *'
dbdimp.c:3930:7: warning: passing argument 5 of 'ct_bind' from incompatible pointer type enabled by default
In file included from Sybase.h:19:0,
from dbdimp.c:11:
C:\Progra~1\Sybase/OCS-15_0/include/ctpublic.h:113:29: note: expected 'CS_INT *' but argument is of type 'int *'

dbdimp.o:dbdimp.c:(.text+0x202): undefined reference to `blk_done'
dbdimp.o:dbdimp.c:(.text+0x8e9): undefined reference to `ct_con_props'
dbdimp.o:dbdimp.c:(.text+0xef4): undefined reference to `ct_con_props'
dbdimp.o:dbdimp.c:(.text+0x14d3): undefined reference to `ct_cancel'
dbdimp.o:dbdimp.c:(.text+0x1788): undefined reference to `blk_drop'

c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.7.3/../../../../x86_64-w64-mingw32/bin/ld.exe: dbdimp.o: bad reloc address 0 x20 in section `.data'
c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.7.3/../../../../x86_64-w64-mingw32/bin/ld.exe: final link failed: Invalid op eration
collect2.exe: error: ld returned 1 exit status
dmake: Error code 129, while making 'blib\arch\auto\DBD\Sybase\Sybase.dll'

Any help is much appreciated


In reply to Problems Compiling DBD::Sybase by PerlNM

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.