----- Forwarded message from "Fisher, Shane" <[EMAIL PROTECTED]> -----

Delivered-To: [EMAIL PROTECTED]
Subject: Can't Build DBD::Oracle on XP/Cygwin/Oracle 9.2
Date: Mon, 7 Jul 2003 18:01:15 -0700
From: "Fisher, Shane" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
X-OriginalArrivalTime: 08 Jul 2003 01:01:16.0973 (UTC) FILETIME=[6F79CDD0:01C344EC]

Hello,

After searching through numerous posts regarding this combination of
Database/Platform, it seems like this should be possible.  However, when I
attempt to configure/build I get the following output (verbose):

[EMAIL PROTECTED] DBD-Oracle-1.14 <WAD11106678:7000/tcp:>
$ perl Makefile.PL -v
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.

Using Oracle in c:/oracle/ora92

WARNING: could not decode oracle version from
c:/oracle/ora92/orainst/inspdver, or c:/oracle/ora92/install/unix.rgs
or from ORACLE_HOME path c:/oracle/ora92.
Oracle version based logic in Makefile.PL may produce erroneous results.

Found header files in oci/include.
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.

MakeMaker (v6.05)
  ABSTRACT_FROM => q[Oracle.pm]
  AUTHOR => q[Tim Bunce ([EMAIL PROTECTED])]
  DEFINE => q[ -DUTF8_SUPPORT]
  DIR => []
  EXE_FILES => [q[ora_explain]]
  INC =>
q[-Ic:/oracle/ora92/oci/include -Ic:/oracle/ora92/rdbms/demo -I/usr/lib/perl
5/site_perl/5.8
.0/cygwin-multi-64int/auto/DBI]
  LIBS => [q[-L/c/downloads/DBD-Oracle-1.14 -loci]]
  NAME => q[DBD::Oracle]
  OBJECT => q[$(O_FILES)]
  PREREQ_PM => { DBI=>q[0] }
  VERSION_FROM => q[Oracle.pm]
  clean => { FILES=>q[Oracle.xsi dll.base dll.exp sqlnet.log libOracle.def
ora_explain mk.pm] }
  dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist],
COMPRESS=>q[gzip -v9], PREOP=>q[$(
MAKE) -f Makefile.old distdir], SUFFIX=>q[gz] }
Using PERL=/usr/bin/perl.exe
Potential libraries are '-L/c/downloads/DBD-Oracle-1.14 -loci':
'-loci' found at /c/downloads/DBD-Oracle-1.14/liboci.a
LD_RUN_PATH=/c/downloads/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?)


[EMAIL PROTECTED] DBD-Oracle-1.14 <WAD11106678:7000/tcp:>
$ make
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/c
to/DBI/Driver.xst > Oracle.xsi
/usr/bin/perl.exe /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/
ap  Oracle.xs > Oracle.xsc && mv Oracle.xsc Oracle.c
gcc -c  -Ic:/oracle/ora92/oci/include -Ic:/oracle/ora92/rdbms/demo -I/usr/li
b/pe
cygwin-multi-64int/auto/DBI -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUS
EIMP
ON=\"1.14\" -DXS_VERSION=\"1.14\"
"-I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CO
Oracle.c
gcc -c  -Ic:/oracle/ora92/oci/include -Ic:/oracle/ora92/rdbms/demo -I/usr/li
b/pe
cygwin-multi-64int/auto/DBI -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUS
EIMP
ON=\"1.14\" -DXS_VERSION=\"1.14\"
"-I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CO
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

[EMAIL PROTECTED] DBD-Oracle-1.14 <WAD11106678:7000/tcp:>
$ uname -a
CYGWIN_NT-5.1 WAD11106678 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown
unknown Cygwin

[EMAIL PROTECTED] DBD-Oracle-1.14 <WAD11106678:7000/tcp:>
$ perl -V
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="tty notitle glob ntsec"
  @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
    .


I should also mention that this is after hacking find_headers() in
Makefile.PL file to look in $ORACLE_HOME/oci/include instead of
$ORACLE_HOME/rdbms/demo because the configuration couldn't find anything
except rdbms/demo/oratypes.h without it.

Has anyone else encountered this problem?  Should I download and use Active
State Perl instead of the Cygwin distribution?

Thanks,
Shane



----- End forwarded message -----

Reply via email to