Re: Problem compiling Oracle::OCI 0.06 under DBI 1.46

From: csg (csgerdan_at_gmail.com)
Date: 01/28/05


Date: 28 Jan 2005 06:01:02 -0800

Hello!

I've got a similar problem - it seems to me. Environment:
- Windows XP
- Perl 5.8.6 (MinGW compiled)
- DBI 1.46
- DBD::Oracle 1.16

Steps:
- 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:

gcc (3.4.2 mingw-special) liable for this error.
However, I fixed this problem by fixing 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 a test on both platform:

linux_prompt$ gcc -o my_test my_test.c -I./ -Wall
included my_inc.h successfully

win_prompt > gcc -o my_test my_test.c -I./ -Wall
my_test.c:2:17: my_inc.h: No such file or directory
etc.

win_prompt > gcc -o my_test my_test.c -I. -Wall
my_test.exe created successfully

csg



Relevant Pages