Dear fellow monks,
Recently I have aquired version 12.0 of Sybase OpenClient, and my old DBD does not work any more. Well to be more specific, the perl script prints the error message "Invalid context version" at the "use DBD::Sybase" clause, and proceed with the rest of the code without problem.
I have done some research on the net, and found out that the warning message gets printed when the version of the DBD::Sybase driver was compiled with earlier version of Sybase OCS.
So I have downloaded the latest version of DBD-Sybase from CPAN, and tried to build the new Sybase.dll. By the way, I am using Borland C++ 5.5 on my XP system.
I ran perl Makefile.PL and created a Makefile. However, most of the directives in the Makefile were really geared towards Microsoft Visual C that I do not have. I have modified the Makefile to compile with the Borland compiler. The compilation had many errors, which I fixed one by one, and finally it created an empty DLL of only 2K in size. This cann't be right. But the compiler reported success on the build?!
By the way, the linker has complained about
missing __turboFloat from root, which I have patched by adding
unsigned long _turboFloat; to the
dbimp.c file. And also it complained about the format of Perl58.lib and libct.lib etc., which I fixed by running the Borland
implib utility on the DLL's.
My question is, has anyone here ever compiled DBD::Sybase with Borland C++ compiler before? If so, could you please offer some expert advise on how to setup the Makefile and environment to compile the DLL properly? Am I missing some command-line switches?
Your comment and help are greatly appreciated!
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.