Hello!
I'm reacting to an old message:
http://www.nntp.perl.org/group/perl.dbi.users/24851
(alternate link: http://www.mail-archive.com/[email protected]/msg23002.html)
I had got a similar problem - it seems to me. Environment:
- Windows XP
- Perl 5.8.6 (MinGW compiled)
- DBI 1.46
- DBD::Oracle 1.16
Compile steps and results:
- perl Makefile.PL - ok
- dmake - failed
main error message:
In file included from Oracle.xs:1:
Oracle.h:18:54: DBIXS.h: No such file or directory
In file included from Oracle.h:20,
from Oracle.xs:1:
I think gcc (3.4.2 mingw-special) liable for this error...
Quick workaround: modifying Makefile.PL (at line 39.):
my $dbi_arch_dir = dbd_dbi_arch_dir();
$dbi_arch_dir =~ s{DBI/$}{DBI}; # inserted by csg
gcc (3.4.3 linux) doesn't confused by slash at the end of
dbi_arch_dir. I made tests on both platform:
# with slash:
linux_prompt$ gcc -o my_test my_test.c -I./ -Wall
# result: my_inc.h included successfully
REM with slash:
win_prompt > gcc -o my_test my_test.c -I./ -Wall
REM result: my_test.c:2:17: my_inc.h: No such file or directory etc.
REM without slash:
win_prompt > gcc -o my_test my_test.c -I. -Wall
my_test.exe created successfully
csg