libXaw.so.7: wrong ELF class: ELFCLASS64

General support questions
Post Reply
DrDave
Posts: 49
Joined: 2020/03/12 10:23:33

libXaw.so.7: wrong ELF class: ELFCLASS64

Post by DrDave » 2020/04/01 20:24:46

I'm trying to run a 64-bit application - the IBM Bootable Media Creator (BoMC)

https://www.ibm.com/support/pages/ibm-b ... eator-bomc

I got a message about being unable to open libXaw.so.7, so I installed libXaw. That did not help, as error message still persisted. As much as I think it's a bit of a hack, I set

Code: Select all

$ export LD_LIBRARY_PATH=/usr/lib64
Now the libraries are being found, but an error message

Code: Select all

cp: cannot create regular file `/var/log/IBM_Support/BoMC/SYSTEM_SUPPORT_LIST_9.64.xml': No such file or directory
/tmp/portable_install_00000001/gui/launchpad/splash/linuxx86/AZY_Splash: error while loading shared libraries: libXaw.so.7: wrong ELF class: ELFCLASS64
indicates they are of the wrong ELF class: ELFCLASS64

I thought I would check the IBM executable is 64-bit.

Code: Select all

[drkirkby@owl ~]$ file ./ibm_utl_bomc_v.r.m_rhel6_x86-64.bin
./ibm_utl_bomc_v.r.m_rhel6_x86-64.bin: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
That would indicate to me the binary is 64-bit, so needs 64-bit libraries. So I checked to see if the libraries are 64-bit, which one would expect given the directory containing them has lib64 in the name.

Code: Select all

[drkirkby@owl ~]$ file /usr/lib64/libXaw.so.7
/usr/lib64/libXaw.so.7: symbolic link to `libXaw7.so.7'
[drkirkby@owl ~]$ file /usr/lib64/libXaw7.so.7
/usr/lib64/libXaw7.so.7: symbolic link to `libXaw7.so.7.0.0'
[drkirkby@owl ~]$ file /usr/lib64/libXaw7.so.7.0.0
/usr/lib64/libXaw7.so.7.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
So I seem to have a 64-bit executable, that's looking and finding a 64-bit library, but then throws an error about it being the wrong ELF class: ELFCLASS64. I am used to similar error messages on Solaris, if one tries to link 32-bit and 64-bit code together. But I don't think I'm doing that - at least not intentionally.

The IBM file is a self-extracting file. I guess its not impossible it contains a 32-bit binary inside it.

DrDave
Posts: 49
Joined: 2020/03/12 10:23:33

Re: libXaw.so.7: wrong ELF class: ELFCLASS64

Post by DrDave » 2020/04/01 20:36:04

I just noticed the following in the manual for the IBM software

ftp://ftp.software.ibm.com/systems/supp ... rguide.pdf

on the supported operating systems. If I'm not mistaken, is supports some Redhat 4, 5, 6, and 7 versions, but for version 6, it says
– Red Hat Enterprise Linux AS, ES, and WS, version 6.0 with and without the
Xen Kernel (supports Update 1, 2, 3, 5)


Could that mean that me downloading the latest version of CentOS 6 (6.10), has given me an OS that the software does not support?

I'm beginning to think installing Windoze on this might be a quick fix to update the firmware, as IBM produce Windows versions of this software. Once the firmware is updated, I can install Linux.

Linux:
– Red Hat Enterprise Linux AS, ES, and WS, version 7.0 with and without the
Xen Kernel
– Red Hat Enterprise Linux AS, ES, and WS, version 6.0 with and without the
Xen Kernel (supports Update 1, 2, 3, 5)
– Red Hat Enterprise Linux AS, ES, and WS, version 5.0 with and without the
Xen Kernel (supports Updates 2-10)
– Red Hat Enterprise Linux AS, ES, and WS version 4.0 (supports Updates 7-9)
– SUSE Linux Enterprise Server 11 with or without the Xen Kernel (supports
Service Pack 1, 2, 3)
– SUSE Linux Enterprise Server 10 with or without the Xen Kernel (supports
Service Packs 2-4)

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: libXaw.so.7: wrong ELF class: ELFCLASS64

Post by TrevorH » 2020/04/01 22:27:51

Your app is apparently 32 bit so you need to explicitly install the .i686 package not the x86_64 one that gets installed by default.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

DrDave
Posts: 49
Joined: 2020/03/12 10:23:33

Re: libXaw.so.7: wrong ELF class: ELFCLASS64

Post by DrDave » 2020/04/01 22:41:06

So why does the "file" command report it is 64-bit LSB executable? In fact, the program even has 64-bit in its name,

Code: Select all

[drkirkby@owl ~]$ file ./ibm_utl_bomc_v.r.m_rhel6_x86-64.bin
./ibm_utl_bomc_v.r.m_rhel6_x86-64.bin: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not strippe

DrDave
Posts: 49
Joined: 2020/03/12 10:23:33

Re: libXaw.so.7: wrong ELF class: ELFCLASS64

Post by DrDave » 2020/04/01 22:52:29

I seem to be going around in circles with this server. I thought it would boot Windows 7 without any problems, but it will not. I'm now trying CentOS 5. With a bit of luck, I might be able to update the firmware with that. There's a Redhat 5 version of the software from IBM.

I'm expecting more problems later. The machine had 3 bad DIMMs - look how the replacements were sent, in bubble wrap, with no anti-static precautions. The image quality is due to the amount of compression I used in order not to exceed the limits on this server, which seem annoyingly small.
Attachments
ram.jpg
ram.jpg (193.47 KiB) Viewed 2623 times

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: libXaw.so.7: wrong ELF class: ELFCLASS64

Post by TrevorH » 2020/04/02 00:22:02

I'm guessing that the executable you ran file against is one that unpacks itself into /tmp and then execs that and the thing it execs it 32 bit, hence the error coming from /tmp/portable_install_00000001/gui/launchpad/splash/linuxx86/AZY_Splash
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

DrDave
Posts: 49
Joined: 2020/03/12 10:23:33

Re: libXaw.so.7: wrong ELF class: ELFCLASS64

Post by DrDave » 2020/04/02 00:50:33

Thank you.

The manual on the software doesn’t warn of this - in fact, it doesn’t say any particular libraries need to be installed.

IBM sure make life hard - or at least for someone like me that’s not an IT professional. The server will not even boot a windows operating system - one needs to download software to allow one to deploy Windows. It really is a PITA.

Dave

Post Reply