Hi, We have a C++ application which uses Perl 5.8.2, DBD-SQLite-1.13 and DBI-1.54. Due to a multithreading issue in perl which we are facing, we want to migrate to latest Perl.
We got the source of Perl 5.14.3, complied it and then got the latest source versions of DBD-SQLite and DBI which is DBD-SQLite-1.37 and DBI-1.623. In order to compile the source of DB-SQLite 1.37, we need to compile DBI 1.57. I tried compiling DBI 1.57 and got the below error c:\ltt_4.16\sst\thirdparty\source\perl\perl-5.14.3\ext\dbi-1.57\Driver_xst.h(35) : error C2065: 'sv_undef' : undeclared identifier c:\ltt_4.16\sst\thirdparty\source\perl\perl-5.14.3\ext\dbi-1.57\Driver_xst.h(35) : warning C4133: ':' : incompatible types - from 'SV *' to 'int *' c:\ltt_4.16\sst\thirdparty\source\perl\perl-5.14.3\ext\dbi-1.57\Driver_xst.h(35) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' c:\ltt_4.16\sst\thirdparty\source\perl\perl-5.14.3\ext\dbi-1.57\Driver_xst.h(41) : error C2065: 'sv_undef' : undeclared identifier c:\ltt_4.16\sst\thirdparty\source\perl\perl-5.14.3\ext\dbi-1.57\Driver_xst.h(41) : warning C4133: ':' : incompatible types - from 'int *' to 'SV *' c:\ltt_4.16\sst\thirdparty\source\perl\perl-5.14.3\ext\dbi-1.57\Driver_xst.h(94) : error C2065: 'sv_undef' : undeclared identifier c:\ltt_4.16\sst\thirdparty\source\perl\perl-5.14.3\ext\dbi-1.57\Driver_xst.h(94) : warning C4133: 'return' : incompatible types - from 'int *' to 'SV *' c:\ltt_4.16\sst\thirdparty\source\perl\perl-5.14.3\ext\dbi-1.57\Driver_xst.h(103 ) : error C2065: 'sv_undef' : undeclared identifier c:\ltt_4.16\sst\thirdparty\source\perl\perl-5.14.3\ext\dbi-1.57\Driver_xst.h(103 ) : warning C4133: 'return' : incompatible types - from 'int *' to 'SV *' Perl.xsi(44) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(44) : error C2065: 'sv_no' : undeclared identifier Perl.xsi(44) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(94) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(94) : error C2065: 'sv_no' : undeclared identifier Perl.xsi(94) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(246) : error C2065: 'sv_undef' : undeclared identifier Perl.xsi(246) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(259) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(259) : error C2065: 'sv_no' : undeclared identifier Perl.xsi(259) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(269) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(269) : error C2065: 'sv_no' : undeclared identifier Perl.xsi(269) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(282) : error C2065: 'dirty' : undeclared identifier Perl.xsi(289) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(289) : error C2065: 'sv_no' : undeclared identifier Perl.xsi(289) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(290) : error C2065: 'dirty' : undeclared identifier Perl.xsi(302) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(302) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(305) : error C2065: 'sv_no' : undeclared identifier Perl.xsi(305) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(326) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(326) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(329) : error C2065: 'dirty' : undeclared identifier Perl.xsi(336) : error C2065: 'dirty' : undeclared identifier Perl.xsi(358) : error C2065: 'dirty' : undeclared identifier Perl.xsi(364) : error C2065: 'dirty' : undeclared identifier Perl.xsi(382) : error C2065: 'sv_undef' : undeclared identifier Perl.xsi(382) : warning C4133: 'initializing' : incompatible types - from 'int * ' to 'SV *' Perl.xsi(431) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(431) : error C2065: 'sv_no' : undeclared identifier Perl.xsi(431) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(475) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(475) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(479) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(479) : error C2065: 'sv_no' : undeclared identifier Perl.xsi(479) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(481) : error C2065: 'sv_no' : undeclared identifier Perl.xsi(481) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(513) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(513) : error C2065: 'sv_no' : undeclared identifier Perl.xsi(513) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(548) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(548) : error C2065: 'sv_no' : undeclared identifier Perl.xsi(548) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(586) : error C2065: 'sv_undef' : undeclared identifier Perl.xsi(586) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(653) : error C2065: 'dirty' : undeclared identifier Perl.xsi(659) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(659) : error C2065: 'sv_no' : undeclared identifier Perl.xsi(659) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(691) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(691) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(694) : error C2065: 'sv_no' : undeclared identifier Perl.xsi(694) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(720) : error C2065: 'sv_yes' : undeclared identifier Perl.xsi(720) : warning C4133: '=' : incompatible types - from 'int *' to 'SV *' Perl.xsi(723) : error C2065: 'dirty' : undeclared identifier Perl.xsi(730) : error C2065: 'dirty' : undeclared identifier Perl.xsi(736) : error C2065: 'dirty' : undeclared identifier Perl.xsi(744) : error C2065: 'dirty' : undeclared identifier NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\ VC\BIN\cl.EXE"' : return code '0x2' Stop. So, I took the latest source of DBI which is DBI 1.623 and compiled it, this compiles and I installed also. But when I try to compile the SQLlite 1.37 source, it says DBI 1.57 is required to configure this module; please install it or upgrade your CPAN/CPANPLUS shell.\n.... But I cannot compile DBI 1.57 as I get the errors like above. Can you please suggest how I can resolve the errors of DBI 1.57 compilation or how can I compile DBD-SQLite-1.37 with DBI-1.623 Thanks, Tejaswi