[dbd-oracle-1.19] Problem with Makefile.PL & Oracle XE 10.2.0
am 07.03.2007 22:23:08 von GuillaumeHello,
I got errors when compiling dbd-oracle-1.19.
My server is running Linux Mandriva 2007 + Oracle Database 10g Express
Edition with Perl 5.8.8 and DBI 1.52.
Bellow you will find some more informations :
* uname -a
* perl -V
* perl Makefile.PL
* make
* make test
* make install
Thanks for your help,
Guillaume
===================
uname -a
===================
[root@oranux DBD-Oracle-1.19]# uname -a
Linux oranux 2.6.17-5mdv #1 SMP Wed Sep 13 14:32:31 EDT 2006 i686 Intel(R)
Pentium(R) M processor 2.00GHz GNU/Linux
===================
perl -V
===================
[root@oranux DBD-Oracle-1.19]# perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.12-12mdksmp, archname=i386-linux
uname='linux n4.mandriva.com 2.6.12-12mdksmp #1 smp fri sep 9 17:43:23
cest 2005 i686 intel(r) xeon(tm) cpu 2.80ghz gnulinux '
config_args='-des -Dinc_version_list=5.8.7 5.8.7/i386-linux 5.8.6
5.8.6/i386-linux 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.6.1
5.6.0 -Darchname=i386-linux -Dcc=gcc -Doptimize=-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fomit-frame-pointer -march=i586 -mtune=pentiumpro -fasynchronous-unwind-tables
-Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dsitebin=/usr/local/bin
-Dsiteman1dir=/usr/local/share/man/man1 -Dsiteman3dir=/usr/local/share/man/man3
-Dman3ext=3pm -Dcf_by=Mandriva -Dmyhostname=localhost -Dperladmin=root@localhost
-Dcf_email=root@localhost -Dd_dosuid -Ud_csh -Duseshrplib'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags
='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fomit-frame-pointer
-march=i586 -mtune=pentiumpro -fasynchronous-unwind-tables',
cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include
-I/usr/include/gdbm'
ccversion='', gccversion='4.1.1 20060724 (prerelease) (4.1.1-3mdk)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.4.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.4'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux/CORE'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
Locally applied patches:
Mandriva Linux patches
Built under linux
Compiled at Sep 8 2006 20:02:03
@INC:
/usr/lib/perl5/5.8.8/i386-linux
/usr/lib/perl5/5.8.8
/usr/lib/perl5/site_perl/5.8.8/i386-linux
/usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux
/usr/lib/perl5/vendor_perl/5.8.8
/usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl/5.8.7/i386-linux
/usr/lib/perl5/vendor_perl/5.8.6
/usr/lib/perl5/vendor_perl
.
===================
perl Makefile.PL
===================
[root@oranux DBD-Oracle-1.19]# perl Makefile.PL
Argument "6.30_01" isn't numeric in subroutine entry at Makefile.PL line 8
main::BEGIN() called at /usr/lib/perl5/5.8.8/ExtUtils/MakeMaker.pm
line 8
eval {...} called at /usr/lib/perl5/5.8.8/ExtUtils/MakeMaker.pm line
8
Using DBI 1.52 (for perl 5.008008 on i386-linux) installed in
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux/auto/DBI/
Argument "6.30_01" isn't numeric in numeric ge (>=) at Makefile.PL line 59.
Configuring DBD::Oracle for perl 5.008008 on linux (i386-linux)
Remember to actually *READ* the README file! Especially if you have any
problems.
Using Oracle in /usr/lib/oracle/xe/app/oracle/product/10.2.0/server
DEFINE _SQLPLUS_RELEASE = "1002000100" (CHAR)
Oracle version 10.2.0.1 (10.2)
Found
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/de mo/demo_xe.mk
Using
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/de mo/demo_xe.mk
Looks like Oracle XE
(/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/d emo/demo_xe.mk)
Reading
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/de mo/demo_xe.mk
Your LD_LIBRARY_PATH env var is set to
'/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib:'
Checking for functioning wait.ph
Constant subroutine __USE_POSIX undefined at
/usr/lib/perl5/5.8.8/i386-linux/features.ph line 8.
Constant subroutine __USE_POSIX2 undefined at
/usr/lib/perl5/5.8.8/i386-linux/features.ph line 9.
Constant subroutine __USE_POSIX199309 undefined at
/usr/lib/perl5/5.8.8/i386-linux/features.ph line 10.
Constant subroutine __USE_POSIX199506 undefined at
/usr/lib/perl5/5.8.8/i386-linux/features.ph line 11.
Constant subroutine __USE_LARGEFILE undefined at
/usr/lib/perl5/5.8.8/i386-linux/features.ph line 16.
Constant subroutine __USE_FILE_OFFSET64 undefined at
/usr/lib/perl5/5.8.8/i386-linux/features.ph line 18.
Constant subroutine __USE_BSD undefined at
/usr/lib/perl5/5.8.8/i386-linux/features.ph line 19.
Constant subroutine __USE_SVID undefined at
/usr/lib/perl5/5.8.8/i386-linux/features.ph line 20.
Constant subroutine __USE_MISC undefined at
/usr/lib/perl5/5.8.8/i386-linux/features.ph line 21.
Constant subroutine __GNU_LIBRARY__ undefined at
/usr/lib/perl5/5.8.8/i386-linux/features.ph line 156.
Constant subroutine __need_size_t undefined at
/usr/lib/perl5/5.8.8/i386-linux/stddef.ph line 148.
Unquoted string "typedef" may clash with future reserved word at (eval 160)
line 1.
Operator or semicolon missing before &typedef at (eval 160) line 1.
Ambiguous use of & resolved as operator & at (eval 160) line 1.
Scalar found where operator expected at (eval 191) line 1, near "'int'
$__val"
(Missing operator before $__val?)
Constant subroutine __need_timeval undefined at
/usr/lib/perl5/5.8.8/i386-linux/bits/time.ph line 23.
You have a wait.ph file generated by perl h2ph utility.
(I found it at /usr/lib/perl5/5.8.8/i386-linux/wait.ph)
It does not define a WCOREDUMP function. That's probably an error.
If a DBD::Oracle test fails then you will probably see a message
from Test::Harness about WCOREDUMP being undefined. You can either ignore
it or try to fix your wait.ph file. The message DOES NOT reflect the
cause of the test failure, it's just a problem interpreting the failure.
System: perl5.008008 linux n4.mandriva.com 2.6.12-12mdksmp #1 smp fri sep 9
17:43:23 cest 2005 i686 intel(r) xeon(tm) cpu 2.80ghz gnulinux
Compiler:
gcc -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fomit-frame-pointer -march=i586
-mtune=pentiumpro -fasynchronous-unwind-tables -fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
Linker: /usr/bin/ld
Sysliblist: -ldl -lm -lpthread -lnsl -lirc
Oracle makefiles would have used these definitions but we override them:
CC: /usr/bin/g++296
LDFLAGS: -g
[-g]
Linking
with -L/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/ -lclntsh -lpthread
WARNING: If you have problems you may need to rebuild perl with threading
enabled.
Checking if your kit is complete...
Looks good
LD_RUN_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/ser ver/lib
Using DBD::Oracle 1.19.
Using DBD::Oracle 1.19.
Using DBI 1.52 (for perl 5.008008 on i386-linux) installed in
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux/auto/DBI/
Writing Makefile for DBD::Oracle
*** If you have problems...
read all the log printed above, and the README and README.help.txt
files.
(Of course, you have read README by now anyway, haven't you?)
===================
make
===================
[root@oranux DBD-Oracle-1.19]# make
cp Oracle.pm blib/lib/DBD/Oracle.pm
cp mkta.pl blib/lib/DBD/mkta.pl
cp oraperl.ph blib/lib/oraperl.ph
cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h
cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h
cp Oraperl.pm blib/lib/Oraperl.pm
cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h
cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm
cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm
/usr/bin/perl5.8.8 -p -e "s/~DRIVER~/Oracle/g"
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux/auto/DBI/Driver. xst > Oracle.xsi
/usr/bin/perl5.8.8 /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap Oracle.xs >
Oracle.xsc && mv Oracle.xsc Oracle.c
make: *** Pas de règle pour fabriquer la cible «
/usr/lib/perl5/5.8.8/i386-linux/CORE/EXTERN.h », nécessaire pour «
Oracle.o ». Arrêt.
===================
Make test
===================
[root@oranux DBD-Oracle-1.19]# make test
make: *** Pas de règle pour fabriquer la cible «
/usr/lib/perl5/5.8.8/i386-linux/CORE/EXTERN.h », nécessaire pour «
Oracle.o ». Arrêt.
===================
Make install
===================
[root@oranux DBD-Oracle-1.19]# make install
make: *** Pas de règle pour fabriquer la cible «
/usr/lib/perl5/5.8.8/i386-linux/CORE/EXTERN.h », nécessaire pour «
Oracle.o ». Arrêt.