jk2addict has asked for the wisdom of the Perl Monks concerning the following question:
Ok, this is basically a blatent plea for help from a monk who also knows his stuff when compiling modules under win32.
In hopes of testing a new project under 5.005, 5.6.1, and 5.8.4, I've installed those ActiveState versions of perl on my laptop running XP with Visual c++ installed. Now normally, one could just use their ppm utility to install prcompiled versions of modules. Unfortunately , their 5.005 only has DBI 1.14 available.
My goal was/is to install 1.37 on all three versions so I'm testing on a somewhat level playing field as far as DBI/Class::DBI, etc are concerned, and because it's the last version to support 5.005.
So far, perl Makefile.PL, nmake, and nmake test run just fine on 5.6.1 and 5.8.4. Unfortunately under 5.005, nmake completely craps out with stuff I'll never understand. Any monks out there know of a precompiled DBI for 5.005 win32?
Here's the output:
C:\WINDOWS\perl5\bin\perl.exe -Ic:\windows\perl5\lib -Ic:\windows +\perl5\lib -MExtUtils::Command -e mkpath blib\lib\DBI mkdir blib mkdir blib\lib mkdir blib\lib\DBI C:\WINDOWS\perl5\bin\perl.exe -Ic:\windows\perl5\lib -Ic:\windows +\perl5\lib -MExtUtils::Command -e rm_f blib\lib\DBI\Changes.pm C:\WINDOWS\perl5\bin\perl.exe -Ic:\windows\perl5\lib -Ic:\windows\ +perl5\lib -MExtUtils::Command -e cp Changes blib\lib\DBI\Changes.pm rem mkdir blib\arch mkdir blib\arch\auto mkdir blib\arch\auto\DBI mkdir blib\lib\auto mkdir blib\lib\auto\DBI mkdir blib\man1 mkdir blib\man3 cp lib/DBI/Profile.pm blib\lib\DBI\Profile.pm cp Driver_xst.h blib\arch\auto\DBI\Driver_xst.h cp lib/DBI/W32ODBC.pm blib\lib\DBI\W32ODBC.pm cp lib/DBD/ExampleP.pm blib\lib\DBD\ExampleP.pm cp lib/DBI/FAQ.pm blib\lib\DBI\FAQ.pm cp lib/DBI/ProxyServer.pm blib\lib\DBI\ProxyServer.pm cp lib/DBI/DBD/Metadata.pm blib\lib\DBI\DBD\Metadata.pm cp lib/Bundle/DBI.pm blib\lib\Bundle\DBI.pm cp lib/DBI/Const/GetInfo/ANSI.pm blib\lib\DBI\Const\GetInfo\ANSI.pm cp lib/DBD/Proxy.pm blib\lib\DBD\Proxy.pm cp lib/DBI/ProfileDumper.pm blib\lib\DBI\ProfileDumper.pm cp DBIXS.h blib\arch\auto\DBI\DBIXS.h cp lib/DBI/Const/GetInfoReturn.pm blib\lib\DBI\Const\GetInfoReturn.pm cp dbd_xsh.h blib\arch\auto\DBI\dbd_xsh.h cp lib/DBI/Const/GetInfoType.pm blib\lib\DBI\Const\GetInfoType.pm cp dbi_sql.h blib\arch\auto\DBI\dbi_sql.h cp lib/DBD/NullP.pm blib\lib\DBD\NullP.pm cp lib/DBD/Sponge.pm blib\lib\DBD\Sponge.pm cp lib/DBI/Const/GetInfo/ODBC.pm blib\lib\DBI\Const\GetInfo\ODBC.pm cp lib/DBI/DBD.pm blib\lib\DBI\DBD.pm cp Driver.xst blib\arch\auto\DBI\Driver.xst cp lib/DBI/ProfileData.pm blib\lib\DBI\ProfileData.pm cp DBI.pm blib\lib\DBI.pm cp lib/Win32/DBIODBC.pm blib\lib\Win32\DBIODBC.pm cp dbipport.h blib\arch\auto\DBI\dbipport.h cp lib/DBI/ProfileDumper/Apache.pm blib\lib\DBI\ProfileDumper\Apache.p +m cp lib/DBI/PurePerl.pm blib\lib\DBI\PurePerl.pm rem rem C:\WINDOWS\perl5\bin\perl.exe -p -e "s/~DRIVER~/Perl/g" < blib\arc +h\auto\DBI/Driver.xst > Perl.xsi C:\WINDOWS\perl5\bin\perl.exe -Ic:\windows\perl5\lib -Ic:\windows\ +perl5\lib C:\windows\perl5\lib\ExtUtils/xsubpp -typemap C:\windows\p +erl5\lib\ExtUtils\typemap -typemap typemap Perl.xs >xstmp.c && C:\WIN +DOWS\perl5\bin\perl.exe -Ic:\windows\perl5\lib -Ic:\windows\perl5\lib + -MExtUtils::Command -e mv xstmp.c Perl.c cl.exe -c -Od -MD -DNDEBUG -TP -GX -DWIN32 -D_CONSOLE -DNO_STRICT + -DHAVE_DES_FCRYPT -DPERL_OBJECT -Od -MD -DNDEBUG -TP -GX -DVERSI +ON=\"1.37\" -DXS_VERSION=\"1.37\" -IC:\windows\perl5\lib\CORE -DDBI +_NO_THREADS Perl.c Perl.c C:\WINDOWS\perl5\bin\perl.exe -Ic:\windows\perl5\lib -Ic:\windows\ +perl5\lib C:\windows\perl5\lib\ExtUtils/xsubpp -typemap C:\windows\p +erl5\lib\ExtUtils\typemap -typemap typemap DBI.xs >xstmp.c && C:\WIND +OWS\perl5\bin\perl.exe -Ic:\windows\perl5\lib -Ic:\windows\perl5\lib +-MExtUtils::Command -e mv xstmp.c DBI.c cl.exe -c -Od -MD -DNDEBUG -TP -GX -DWIN32 -D_CONSOLE -DNO_STRICT + -DHAVE_DES_FCRYPT -DPERL_OBJECT -Od -MD -DNDEBUG -TP -GX -DVERSI +ON=\"1.37\" -DXS_VERSION=\"1.37\" -IC:\windows\perl5\lib\CORE -DDBI +_NO_THREADS DBI.c DBI.c DBI.xs(51) : warning C4273: 'getpid' : inconsistent dll linkage. dlle +xport assumed. DBI.xs(66) : error C2951: template declarations are only permitted at +global or namespace scope DBI.xs(66) : error C2143: syntax error : missing ')' before 'newline' DBI.xs(66) : error C2143: syntax error : missing ';' before 'newline' DBI.xs(66) : error C2143: syntax error : missing ';' before 'newline' DBI.xs(66) : error C2059: syntax error : ')' DBI.xs(709) : error C2951: template declarations are only permitted at + global or namespace scope DBI.xs(709) : error C2143: syntax error : missing ')' before 'newline' DBI.xs(709) : error C2143: syntax error : missing ';' before 'newline' DBI.xs(709) : error C2143: syntax error : missing ';' before 'newline' DBI.xs(709) : error C2059: syntax error : ')' DBI.xs(710) : error C2143: syntax error : missing ';' before '{' DBI.xs(710) : error C2447: missing function header (old-style formal l +ist?) DBI.xs(974) : error C2350: 'CPerlObj::dump' is not a static member DBI.xs(1015) : error C2248: 'dump' : cannot access protected member de +clared in class 'CPerlObj' C:\windows\perl5\lib\CORE\proto.h(814) : see declaration of 'd +ump' DBI.xs(1015) : error C2659: '=' : overloaded function as left operand DBI.xs(1021) : error C2248: 'dump' : cannot access protected member de +clared in class 'CPerlObj' C:\windows\perl5\lib\CORE\proto.h(814) : see declaration of 'd +ump' DBI.xs(1021) : error C2659: '=' : overloaded function as left operand DBI.xs(1027) : error C2248: 'dump' : cannot access protected member de +clared in class 'CPerlObj' C:\windows\perl5\lib\CORE\proto.h(814) : see declaration of 'd +ump' DBI.xs(1027) : error C2659: '=' : overloaded function as left operand DBI.xs(1031) : warning C4551: function call missing argument list DBI.xs(1031) : error C2248: 'dump' : cannot access protected member de +clared in class 'CPerlObj' C:\windows\perl5\lib\CORE\proto.h(814) : see declaration of 'd +ump' DBI.xs(1121) : error C2143: syntax error : missing ',' before '->' DBI.xs(1121) : error C2059: syntax error : '->' DBI.xs(1123) : error C2039: 'Perl_hv_fetch' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1123) : error C2039: 'PL_modglobal' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1126) : error C2039: 'Perl_sv_2iv' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1130) : error C2065: 'attribs' : undeclared identifier DBI.xs(1131) : error C2039: 'Perl_croak' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1136) : error C2039: 'Perl_ref' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1136) : error C2227: left of '->sv_flags' must point to class/s +truct/union DBI.xs(1136) : error C2039: 'Perl_ref' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1136) : error C2227: left of '->sv_any' must point to class/str +uct/union DBI.xs(1136) : error C2227: left of '->xrv_rv' must point to class/str +uct/union DBI.xs(1136) : error C2227: left of '->sv_flags' must point to class/s +truct/union DBI.xs(1137) : error C2039: 'Perl_croak' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1138) : error C2039: 'Perl_ref' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1144) : error C2039: 'fprintf' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1145) : error C2039: 'Perl_ref' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1148) : error C2039: 'Perl_croak' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1153) : error C2039: 'Perl_av_store' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1153) : error C2039: 'PL_Sv' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1153) : error C2039: 'Perl_ref' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1153) : error C2227: left of '->sv_any' must point to class/str +uct/union DBI.xs(1153) : error C2227: left of '->xrv_rv' must point to class/str +uct/union DBI.xs(1153) : error C2039: 'PL_Sv' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1153) : error C2039: 'PL_Sv' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1153) : error C2227: left of '->sv_refcnt' must point to class/ +struct/union DBI.xs(1153) : error C2039: 'PL_Sv' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(1262) : warning C4518: '$S6 ' : storage-class or type specifier +(s) unexpected here; ignored DBI.xs(1262) : error C2059: syntax error : '=' DBI.xs(1272) : error C2226: syntax error : unexpected type '$S7' DBI.xs(1277) : error C2144: syntax error : missing ')' before type '$S +8' DBI.xs(1277) : error C2660: 'Perl_newSVpv' : function does not take 0 +parameters DBI.xs(1277) : error C2059: syntax error : ')' DBI.xs(1292) : error C2144: syntax error : missing ')' before type '$S +9' DBI.xs(1292) : error C2660: 'perl_require_pv' : function does not take + 0 parameters DBI.xs(1292) : error C2059: syntax error : ')' DBI.xs(1293) : error C2144: syntax error : missing ')' before type '$S +10' DBI.xs(1293) : error C2660: 'Perl_gv_stashpv' : function does not take + 0 parameters DBI.xs(1293) : error C2059: syntax error : ')' DBI.xs(2407) : error C2198: 'void (__cdecl *)(struct cv *,class CPerlO +bj *)' : too few actual parameters DBI.c(3183) : warning C4518: '$S11 ' : storage-class or type specifier +(s) unexpected here; ignored DBI.c(3183) : error C2059: syntax error : '=' DBI.xs(3191) : error C2513: 'class XS_DBI__install_method::$S12' : no +variable declared before '=' DBI.xs(3191) : error C2226: syntax error : unexpected type '$S13' DBI.c(3639) : error C2143: syntax error : missing ';' before '->' DBI.c(3639) : error C2143: syntax error : missing ';' before '->' DBI.c(3645) : error C2039: 'PL_stack_base' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(3515) : error C2039: 'Perl_croak' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(3515) : error C2039: 'Perl_sv_2pv' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(3515) : error C2039: 'Perl_sv_2pv' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(3516) : error C2039: 'PL_stack_base' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(3516) : error C2039: 'Perl_ref' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(3516) : error C2660: 'dbih_sth_bind_col' : function does not ta +ke 4 parameters DBI.xs(3516) : error C2039: 'PL_sv_yes' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(3516) : error C2039: 'PL_sv_no' : is not a member of 'sv' C:\windows\perl5\lib\CORE\sv.h(35) : see declaration of 'sv' DBI.xs(3544) : error C2660: 'dbih_sth_bind_col' : function does not ta +ke 4 parameters
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI Compile Under Win32 Perl 5.005_03
by PodMaster (Abbot) on Aug 22, 2004 at 04:09 UTC | |
by jk2addict (Chaplain) on Aug 22, 2004 at 14:00 UTC | |
by jk2addict (Chaplain) on Aug 23, 2004 at 20:32 UTC |