Subject: | Build problem with .mk files |
Date: | Mon, 22 Mar 2010 14:01:00 +0000 (GMT) |
To: | bug-DBD-Oracle [...] rt.cpan.org |
From: | Andrew Hill <rtcpan [...] welikegoats.com> |
CentOS 5.4
Perl 5.10.1
DBI 1.609
DBD::Oracle 1.24a
Oracle 10.2.0.4
This error appeared to be fixable by creating two symlinks:
ln -s $ORACLE_HOME/lib $ORACLE_HOME/lib32
ln -s $ORACLE_HOME/rdbms/lib $ORACLE_HOME/rdbms/lib32
[root@noc-backup DBD-Oracle-1.24]# export
LD_LIBRARY_PATH='/home/oracle/product/
10.2.0/db_1/lib'
[root@noc-backup DBD-Oracle-1.24]# export
ORACLE_HOME=/home/oracle/product/10.2.
0/db_1/
[root@noc-backup DBD-Oracle-1.24]# perl Makefile.PL
Using DBI 1.609 (for perl 5.010001 on i686-linux-thread-multi) installed
in /usr
/local/lib/perl5/site_perl/5.10.1/i686-linux-thread-multi/auto/DBI/
Argument "6.55_02" isn't numeric in numeric ge (>=) at Makefile.PL line
61.
Configuring DBD::Oracle for perl 5.010001 on linux
(i686-linux-thread-multi)
Remember to actually *READ* the README file! Especially if you have any
problems
.
Installing on a linux, Ver#2.6
Using Oracle in /home/oracle/product/10.2.0/db_1
DEFINE _SQLPLUS_RELEASE = "1002000400" (CHAR)
Oracle version 10.2.0.4 (10.2)
Found /home/oracle/product/10.2.0/db_1/rdbms/demo/demo_rdbms32.mk
Using /home/oracle/product/10.2.0/db_1/rdbms/demo/demo_rdbms32.mk
Your LD_LIBRARY_PATH env var is set to
'/home/oracle/product/10.2.0/db_1/lib'
Reading /home/oracle/product/10.2.0/db_1/rdbms/demo/demo_rdbms32.mk
Reading /home/oracle/product/10.2.0/db_1//rdbms/lib/env_rdbms.mk
cat: /home/oracle/product/10.2.0/db_1//lib32/sysliblist: No such file or
directo
ry
Attempting to discover Oracle OCI build rules
cc -c -o DBD_ORA_OBJ.o DBD_ORA_OBJ.c
by executing: [make -f
/home/oracle/product/10.2.0/db_1/rdbms/demo/demo_rdbms32.
mk build ECHODO=echo ECHO=echo GENCLNTSH='echo genclntsh' CC=true
OPTIMIZE= CCFL
AGS= EXE=DBD_ORA_EXE OBJS=DBD_ORA_OBJ.o]
WARNING: Oracle build rule discovery failed (512)
Oracle oci build command:
[]
WARNING: Unable to interpret Oracle build commands from
/home/oracle/product/10.
2.0/db_1/rdbms/demo/demo_rdbms32.mk.
(Will continue by using fallback approach.)
Please report this to dbi-users@perl.org. See README for what to include.
Found header files in /home/oracle/product/10.2.0/db_1/rdbms/public.
Checking for functioning wait.ph
System: perl5.010001 linux noc-backup.quadriga.com 2.6.18-164.6.1.el5 #1
smp tue
nov 3 16:18:27 est 2009 i686 i686 i386 gnulinux
Compiler: cc -O2 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack
-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
Linker: /usr/bin/ld
Sysliblist: -ldl -lm -lpthread -lnsl -lirc
Oracle makefiles would have used these definitions but we override them:
CC: $(COMPDIR)/bin/gcc
CFLAGS: $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(PFLAGS)\
$(SHARED_CFLAG) $(USRFLAGS)
[$(GFLAG) -O2 $(CDEBUG) $(CCFLAGS)
-I/home/oracle/product/10.2.0/db_1
//rdbms/demo -I/home/oracle/product/10.2.0/db_1//rdbms/public
-I/home/oracle/pro
duct/10.2.0/db_1//plsql/public
-I/home/oracle/product/10.2.0/db_1//network/publi
c -DLINUX -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1
-DSLTS_ENA
BLE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS $(LPFLAGS) $(USRFLAGS)]
build: $(BUILDEXE32)
[ $(BUILDEXE32)]
LDFLAGS: -o $@ $(LDPATHFLAG)$(PRODLIBHOME) $(LDPATHFLAG)$(LIBHOME)
$(LDPATHFL
AG)$(LIBHOME)stubs/ -L$(COMPDIR)/lib -lirc
[-o $@ -L/home/oracle/product/10.2.0/db_1//rdbms/lib32/
-L$(LIBHOME)
-L$(LIBHOME)stubs/ -L/usr/lib -lirc]
Linking with /home/oracle/product/10.2.0/db_1//rdbms/lib32/defopt.o
-lclntsh -l
dl -lm [from $(DEF_OPT) $(OCISHAREDLIBS)]
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lclntsh
LD_RUN_PATH=/home/oracle/product/10.2.0/db_1/lib:/home/oracle/product/10.2.0/db_
1/rdbms/lib
Using DBD::Oracle 1.24.
Using DBD::Oracle 1.24.
Using DBI 1.609 (for perl 5.010001 on i686-linux-thread-multi) installed
in /usr
/local/lib/perl5/site_perl/5.10.1/i686-linux-thread-multi/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?)
[root@noc-backup DBD-Oracle-1.24]# make
cp Oracle.pm blib/lib/DBD/Oracle.pm
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 lib/DBD/Oracle/Object.pm blib/lib/DBD/Oracle/Object.pm
cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm
cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm
/usr/local/bin/perl -p -e "s/~DRIVER~/Oracle/g"
/usr/local/lib/perl5/site_perl/5
.10.1/i686-linux-thread-multi/auto/DBI/Driver.xst > Oracle.xsi
/usr/local/bin/perl /usr/local/lib/perl5/5.10.1/ExtUtils/xsubpp -typemap
/usr/l
ocal/lib/perl5/5.10.1/ExtUtils/typemap -typemap typemap Oracle.xs >
Oracle.xsc
&& mv Oracle.xsc Oracle.c
cc -c -I/home/oracle/product/10.2.0/db_1/rdbms/public
-I/home/oracle/product/10
.2.0/db_1//rdbms/demo -I/home/oracle/product/10.2.0/db_1//rdbms/public
-I/home/o
racle/product/10.2.0/db_1//plsql/public
-I/home/oracle/product/10.2.0/db_1//netw
ork/public
-I/usr/local/lib/perl5/site_perl/5.10.1/i686-linux-thread-multi/auto/
DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/u
sr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"1.
24\" -DXS_VERSION=\"1.24\" -fPIC
"-I/usr/local/lib/perl5/5.10.1/i686-linux-threa
d-multi/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT
-DORA_OCI_VERSIO
N=\"10.2.0.4\" Oracle.c
cc -c -I/home/oracle/product/10.2.0/db_1/rdbms/public
-I/home/oracle/product/10
.2.0/db_1//rdbms/demo -I/home/oracle/product/10.2.0/db_1//rdbms/public
-I/home/o
racle/product/10.2.0/db_1//plsql/public
-I/home/oracle/product/10.2.0/db_1//netw
ork/public
-I/usr/local/lib/perl5/site_perl/5.10.1/i686-linux-thread-multi/auto/
DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/u
sr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"1.
24\" -DXS_VERSION=\"1.24\" -fPIC
"-I/usr/local/lib/perl5/5.10.1/i686-linux-threa
d-multi/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT
-DORA_OCI_VERSIO
N=\"10.2.0.4\" dbdimp.c
cc -c -I/home/oracle/product/10.2.0/db_1/rdbms/public
-I/home/oracle/product/10
.2.0/db_1//rdbms/demo -I/home/oracle/product/10.2.0/db_1//rdbms/public
-I/home/o
racle/product/10.2.0/db_1//plsql/public
-I/home/oracle/product/10.2.0/db_1//netw
ork/public
-I/usr/local/lib/perl5/site_perl/5.10.1/i686-linux-thread-multi/auto/
DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/u
sr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"1.
24\" -DXS_VERSION=\"1.24\" -fPIC
"-I/usr/local/lib/perl5/5.10.1/i686-linux-threa
d-multi/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT
-DORA_OCI_VERSIO
N=\"10.2.0.4\" oci8.c
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
LD_RUN_PATH="/home/oracle/product/10.2.0/db_1/lib:/home/oracle/product/10.2.0/db
_1/rdbms/lib" cc -shared -O2 -L/usr/local/lib -fstack-protector Oracle.o
dbdimp
.o oci8.o /home/oracle/product/10.2.0/db_1//rdbms/lib32/defopt.o -o
blib/arch/a
uto/DBD/Oracle/Oracle.so \
-ldl -lm \
cc: /home/oracle/product/10.2.0/db_1//rdbms/lib32/defopt.o: No such file
or dire
ctory
make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1
--