[Chicago-talk] Trouble compiling DBD::Oracle for Fedora core 8

chris long cmlong at invisiblestreams.com
Fri Feb 29 15:10:39 PST 2008


Im trying to set up and configure a development environment based  
around Apache/mod_perl and Oracle on a Fedora Core 8 server. I have  
run into issues configuring the DBD::Oracle module for the Perl DBI.

Notes on the steps I've taken thus far:

I have successfully installed the rpm's for the oracle instant client,  
and the developers package with the necessary  library and header files.
I was able to successfully write the makefile for DBD::Oracle, but  
when I run make I experience a series of syntax errors and warnings  
related to the perl core.

[root at surveystars DBD-Oracle-1.20]# make
gcc -c  -I/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/ 
DBI -I/usr/include/oracle/11.1.0.1/client -O2 -g -pipe -m32 - 
march=i386 -mtune=pentium4   -DVERSION=\"1.20\" -DXS_VERSION=\"1.20\" - 
fPIC "-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE"  -Wall - 
Wcast-align -Wpointer-arith -DORA_OCI_VERSION=\"11.1.0.1\" Oracle.c
In file included from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/ 
CORE/op.h:487,
                  from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/ 
CORE/perl.h:2355,
                  from /usr/lib/perl5/site_perl/5.8.5/i386-linux- 
thread-multi/auto/DBI/DBIXS.h:19,
                  from Oracle.h:51,
                  from Oracle.xs:1:
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/reentr.h:611: error:  
field `_crypt_struct' has incomplete type
In file included from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/ 
CORE/perl.h:3565,
                  from /usr/lib/perl5/site_perl/5.8.5/i386-linux- 
thread-multi/auto/DBI/DBIXS.h:19,
                  from Oracle.h:51,
                  from Oracle.xs:1:
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/proto.h:199: error:  
syntax error before "off64_t"
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/proto.h:201: error:  
syntax error before "Perl_do_sysseek"
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/proto.h:201: error:  
syntax error before "off64_t"
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/proto.h:201:  
warning: type defaults to `int' in declaration of `Perl_do_sysseek'
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/proto.h:201:  
warning: data definition has no type or storage class
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/proto.h:202: error:  
syntax error before "Perl_do_tell"
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/proto.h:202:  
warning: type defaults to `int' in declaration of `Perl_do_tell'
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/proto.h:202:  
warning: data definition has no type or storage class
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/proto.h:1308: error:  
syntax error before "Perl_PerlIO_tell"
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/proto.h:1308:  
warning: type defaults to `int' in declaration of `Perl_PerlIO_tell'
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/proto.h:1308:  
warning: data definition has no type or storage class
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/proto.h:1309: error:  
syntax error before "off64_t"
Oracle.xs: In function `XS_DBD__Oracle__db_ora_lob_write':
Oracle.xs:209: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Oracle.xs: In function `XS_DBD__Oracle__db_ora_lob_append':
Oracle.xs:265: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Oracle.xs: In function `XS_DBD__Oracle__db_ora_lob_read':
Oracle.xs:333: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Oracle.xs: In function `XS_DBD__Oracle__db_ora_lob_length':
Oracle.xs:377: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
make: *** [Oracle.o] Error 1

Is there something wrong with the perl compiled on this distribution?  
If you are familiar with this, maybe you could suggest a Linux Distro  
that you have successfully compiled DBD::Oracle on for production use,  
or any other tips or suggestions you might have for setting up this  
environment.

Thanks-

Chris Long

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20080229/ee44f3e7/attachment.html 


More information about the Chicago-talk mailing list