Subject: | Build error under win32 |
When building the package using the VanillaPerl package for win32, there
is an error in the gcc include path.
As configured, the makefile gives a value of:
DBI_INSTARCH_DIR=C:/vanilla-perl/perl/site/lib/auto/DBI/
for the DBI include files. Gcc barfs on this with "file not found"
errors for the headers, but removing the trailing slash:
DBI_INSTARCH_DIR=C:/vanilla-perl/perl/site/lib/auto/DBI
Fixes it all and causes it to work perfectly. There is a comment around
that line in the makefile saying that the value was generated from
DBI::DBD::dbd_postamble(). But I wasn unable to figure out how to fix it .
information of my install:
This is perl, v5.8.8 built for MSWin32-x86-multi-thread
DBD-SQLite-1.11
Windows XP, using the VanillaPerl distribution
The error message:
C:\DOCUME~1\andrew\LOCALS~1\Temp\cpan\build\DBD-SQ~1.11>gcc -c -I.
-IC:/vanilla-perl/perl/site/lib/auto/DBI/ -s -O2 -DWIN32
-DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-fno-strict-aliasing -DPERL_MSVCRT_READFIX -O2 -DVERSION=\"1.11\"
-DXS_VERSION=\"1.11\" "-IC:\vanilla-perl\perl\lib\CORE" -DNDEBUG=1
-DSQLITE_PTR_SZ=4 SQLite.c
In file included from SQLite.xs:3:
SQLiteXS.h:9:19: DBIXS.h: No such file or directory