libXau6 64-bit package is seemingly 32-bit

Hello,

I’m having some issues with an application that fails to start. It returned the error: error while loading shared libraries: libXau.so.6: wrong ELF class: ELFCLASS32.
This is a bit strange because I have a 64-bit system.

I used file to get some information about the library file, and it returned /usr/lib/libXau.so.6.0.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=79d0b3f648250455ca7663dc813fa1fa1916c178, stripped. I assume I must be missing something, but that seems like a 32-bit library to me.

Does anyone know why it reports that it’s 32-bit? I would love to know.

64 bit:

ich@laptop:~> file /usr/lib64/libXau.so.6.0.0
/usr/lib64/libXau.so.6.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=8e8ca4501ef27c0dcb7d0affad3b8b042fbbeaa1, stripped
/usr/lib64/libXau.so.6
/usr/lib64/libXau.so.6.0.0

32 bit:

ich@laptop:~> file /usr/lib/libXau.so.6.0.0
/usr/lib/libXau.so.6.0.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=79d0b3f648250455ca7663dc813fa1fa1916c178, stripped
/usr/lib/libXau.so.6
/usr/lib/libXau.so.6.0.0
1 Like

Because libraries in /usr/lib are 32-bit. 64-bit libraries are in /usr/lib64.

1 Like