Bug 461765 - for module DBD::Oracle: libclntsh.so.10.1: wrong ELF class: ELFCLASS32
Summary: for module DBD::Oracle: libclntsh.so.10.1: wrong ELF class: ELFCLASS32
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Installation
Version: 0.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space03
TreeView+ depends on / blocked
 
Reported: 2008-09-10 13:42 UTC by Jesus M. Rodriguez
Modified: 2009-09-17 07:01 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-09-17 07:01:22 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.