Bug 461765

Summary: for module DBD::Oracle: libclntsh.so.10.1: wrong ELF class: ELFCLASS32
Product: [Community] Spacewalk Reporter: Jesus M. Rodriguez <jesusr>
Component: InstallationAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.2CC: cperry
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-17 07:01:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 456551    

Description Jesus M. Rodriguez 2008-09-10 13:42:04 UTC
Description of problem:
Running spacewalk-setup on a 64-bit (x86_64) installation of rhel, will generate 
an error (see below). The error complains about a library being of the wrong
ELF class. This typically indicates a 32-bit library was found instead of the 64-bit one.

Both libraries are installed:

[root@test12-64 ~]# locate libclntsh.so.10.1
/usr/lib/oracle/10.2.0.4/client64/lib/libclntsh.so.10.1
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

We should setup the ld.conf.d correctly when we install the spacewalk rpms.

---- error ----
Could not connect to the database.  Your connection information may be
incorrect.  Error: install_driver(Oracle) failed: Can't load
'/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so'
for module DBD::Oracle: libclntsh.so.10.1: wrong ELF class: ELFCLASS32 at
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230, <STDIN>
line 6.
 at (eval 784) line 3
 Compilation failed in require at (eval 784) line 3, <STDIN> line 6.
 Perhaps a required shared library or dll isn't installed where expected
  at /usr/bin/spacewalk-setup line 1492
---- error ----

Comment 1 Jesus M. Rodriguez 2008-09-10 13:42:40 UTC
WORK AROUND
-------------
echo  "/usr/lib/oracle/10.2.0.4/client64/lib/" > /etc/ld.so.conf.d/spacewalk.conf

Comment 2 Jesus M. Rodriguez 2008-09-10 13:43:12 UTC
Recommended fix, add /etc/ld.so.conf.d/spacewalk.conf to oracle-lib-compat rpm.

Comment 3 Michael Mráka 2008-10-22 13:50:38 UTC
Fixed in git
commit 6caccf13802aa5224bd71a11fd87b0df86eda596
    461765 - added oracle libs to ldconfig path

oracle-lib-compat-10.2-13

Comment 4 Jesus M. Rodriguez 2008-11-04 15:52:38 UTC
verified changes /etc/ld.so.conf.d/oracle-lib-compat.conf

Comment 5 Miroslav Suchý 2009-09-17 07:01:22 UTC
Spacewalk has been released for some time.