I'm using the Oracle Windows client 9.0.1. Is that a problem? Should I use 9.2?
I have a brand new Cygwin install. I noticed its gcc is a strange version, different from the one reported by its perl -V:
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-3/configure --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin
Thread model: posix
gcc version 3.2 20020927 (prerelease)
I get this warning on the make:
WARNING: could not decode oracle version from C:/oracle/ora90/orainst/inspdver, or C:/oracle/ora90/install/unix.rgs or from ORACLE_HOME path C:/oracle/ora90. Oracle version based logic in Makefile.PL may produce erroneous results.
I haven't actually set ORACLE_HOME, so that path came from the registry.
Then, it says this: Found header files in rdbms/demo.
********************************************************* I can't find the header files I need in your Oracle installation. You probably need to install some more Oracle components. I'll keep going, but the compile will probably fail. See README.clients for more information.^G *********************************************************
Found oci directory Using OCI directory 'oci'
This is all attached...
It doesn't appear to find everything.
Then, the make fails, horribly:
dbdimp.c: In function `ora_db_login6': dbdimp.c:291: warning: cast to pointer from integer of different size dbdimp.c: In function `pp_exec_rset': dbdimp.c:1193: internal error: Segmentation fault
(Which is why I was looking at the gcc versions.)
Any ideas?
Kevin
Using DBI 1.37 installed in /usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/auto/DBI
Configuring DBD::Oracle ...
>>> Remember to actually *READ* the README file!
Especially if you have any problems.
Use of uninitialized value in subroutine entry at
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/Win32/Registry.pm line 452.
Use of uninitialized value in subroutine entry at
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/Win32/Registry.pm line 452.
Use of uninitialized value in subroutine entry at
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/Win32/Registry.pm line 452.
Use of uninitialized value in subroutine entry at
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/Win32/Registry.pm line 452.
Use of uninitialized value in subroutine entry at
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/Win32/Registry.pm line 452.
Use of uninitialized value in subroutine entry at
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/Win32/Registry.pm line 452.
Use of uninitialized value in subroutine entry at
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/Win32/Registry.pm line 452.
Use of uninitialized value in subroutine entry at
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/Win32/Registry.pm line 452.
Use of uninitialized value in subroutine entry at
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/Win32/Registry.pm line 452.
Use of uninitialized value in subroutine entry at
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/Win32/Registry.pm line 452.
Use of uninitialized value in subroutine entry at
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/Win32/Registry.pm line 452.
Using Oracle in C:/oracle/ora90
WARNING: could not decode oracle version from
C:/oracle/ora90/orainst/inspdver, or C:/oracle/ora90/install/unix.rgs
or from ORACLE_HOME path C:/oracle/ora90.
Oracle version based logic in Makefile.PL may produce erroneous results.
Found header files in rdbms/demo.
*********************************************************
I can't find the header files I need in your Oracle installation.
You probably need to install some more Oracle components.
I'll keep going, but the compile will probably fail.
See README.clients for more information.
*********************************************************
Found oci directory
Using OCI directory 'oci'
System: perl5.008 cygwin_nt-4.0 iokaste 1.3.22(0.7832) 2003-03-18 09:20 i686 unknown
unknown cygwin
Compiler: gcc -O3 -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
Linker: /usr/bin/ld
Sysliblist:
Warning: If you have problems you may need to rebuild perl with -Uusemymalloc.
Checking if your kit is complete...
Looks good
LD_RUN_PATH=/cygdrive/c/build2/DBD-Oracle-1.14
Using DBD::Oracle 1.14.
Using DBD::Oracle 1.14.
Using DBI 1.37 installed in /usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/auto/DBI
Writing Makefile for DBD::Oracle
*** If you have problems...
read all the log printed above, and the README and README.help files.
(Of course, you have read README by now anyway, haven't you?)
cp Oracle.pm blib/lib/DBD/Oracle.pm cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h cp oraperl.ph blib/lib/oraperl.ph cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h cp Oraperl.pm blib/lib/Oraperl.pm cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm /usr/bin/perl.exe -p -e "s/~DRIVER~/Oracle/g" < /usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/auto/DBI/Driver.xst > Oracle.xsi /usr/bin/perl.exe /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap Oracle.xs > Oracle.xsc && mv Oracle.xsc Oracle.c gcc -c -IC:/oracle/ora90/oci/include -IC:/oracle/ora90/rdbms/demo -I/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/auto/DBI -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O3 -DVERSION=\"1.14\" -DXS_VERSION=\"1.14\" "-I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE" -DUTF8_SUPPORT Oracle.c gcc -c -IC:/oracle/ora90/oci/include -IC:/oracle/ora90/rdbms/demo -I/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/auto/DBI -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O3 -DVERSION=\"1.14\" -DXS_VERSION=\"1.14\" "-I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE" -DUTF8_SUPPORT dbdimp.c dbdimp.c: In function `ora_db_login6': dbdimp.c:291: warning: cast to pointer from integer of different size dbdimp.c: In function `pp_exec_rset': dbdimp.c:1193: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make: *** [dbdimp.o] Error 1
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs Configured with: /netrel/src/gcc-3.2-3/configure --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin Thread model: posix gcc version 3.2 20020927 (prerelease)
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=cygwin, osvers=1.3.22(0.7832), archname=cygwin-multi-64int
uname='cygwin_nt-4.0 iokaste 1.3.22(0.7832) 2003-03-18 09:20 i686 unknown unknown
cygwin '
config_args='-de -Dmksymlinks -Dusemultiplicity -Duse64bitint -Doptimize=-O3
-Dman3ext=3pm'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=y, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing',
optimize='-O3',
cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing'
ccversion='', gccversion='3.2.3 (home grown)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
alignbytes=8, prototype=define
Linker and Libraries:
ld='ld2', ldflags =' -s -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib /lib
libs=-lgdbm -ldb -lcrypt -lutil -lgdbm_compat
perllibs=-lcrypt -lutil -lgdbm_compat
libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
cccdlflags=' ', lddlflags=' -s -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_64_BIT_INT USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Built under cygwin
Compiled at Jun 2 2003 13:55:45
%ENV:
CYGWIN=""
@INC:
/usr/lib/perl5/5.8.0/cygwin-multi-64int
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
.
