Re: mod_perl - DBD::Oracle exec format error for Oracle.sl

[prev] [thread] [next] [Date index for 2005/02/10]

From: Silvio Wanka
Subject: Re: mod_perl - DBD::Oracle exec format error for Oracle.sl
Date: 08:45 on 10 Feb 2005
jwarn2@xxxxxxx.xxx wrote:
> I spent quite a bit of time getting DBD::Oracle to install on this
> HP-UX B.11.00 E 9000/800 box.  I followed the instructions in
> README.hpux in the DBD::Oracle installation directory.  Within this
> readme is also instructions for getting Apache and mod_perl running.
> I ended up with a new perl (output below) which needed to be linked to
> libpthread (although the perl executable is not multithreaded).  I
> then built Apache and mod_perl.
> 
> In short, without mod_perl, everything works fine.  I can connect to
> Oracle, do queries, etc as a normal CGI process.  However, when I
> compile and install mod_perl, I get the following error in the apache
> error_log:
> 
> 
> [Tue Feb  8 14:21:05 2005] [error] install_driver(Oracle) failed: Can't load 
> '/post/opt/perl-5.8.0/lib/site_perl/5.8.0/PA-RISC2.0/auto/DBD/Oracle/Oracle.sl' 
> for module DBD::Oracle: Exec format error at 
> /post/opt/perl-5.8.0/lib/5.8.0/PA-RISC2.0/DynaLoader.pm line 229.\n at (eval 12) 
> line 3\nCompilation failed in require at (eval 12) line 3.\nPerhaps a required 
> shared library or dll isn't installed where expected\n at 
> /post/home/post/migr/pos/bin/db_test.cgi line 12\n
> 
> Perl, Apache, DBD::Oracle and mod_perl were all built with the same compiler / linker
> options so I am at a loss as to what could be causing this loader problem.
> 
> Since the database connection works until I installed mod_perl, I am
> thinking the compile of mod_perl is somehow unable or incompatbile
> with the Oracle DBD shared library.

if it works with perl but not with mod_perl then IMO the apache binary is not
proper build for H-UX Oracle. Please check via

  chattr <apache-sbin>/httpd

that you find in the "shared library list:" section

   /usr/lib/libpthread.1
and
   /usr/lib/libcl.1

if shared library list of

  chattr /post/opt/perl-5.8.0/lib/site_perl/5.8.0/PA-RISC2.0/auto/DBD/Oracle/Oracle.sl

also contains /usr/lib/libcl.1. Both library must be linked to the main-programm if a
shared lib or object needs it. Strange or simpler HP-UX ;-).

regards, Silvio

Re: mod_perl - DBD::Oracle exec format error for Oracle.sl
Silvio Wanka 08:45 on 10 Feb 2005

Generated at 17:56 on 01 Mar 2005 by mariachi v0.52