Re: wrong ELF class: ELFCLASS32

Hello Shankar,
Try this

ldd /usr/ucblib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/

You should also have:


ldd /usr/ucblib/sparcv9/ => /usr/lib/64/ => /usr/lib/64/ => /usr/lib/64/ => /usr/lib/64/ => /usr/lib/64/
/usr/platform/SUNW,Sun-Fire-V890/lib/sparcv9/ sort: fatal: /usr/ucblib/ wrong ELF class:

As you can see the message you are getting shows that you are pointing
to a 32 bit shared object.

The solution is to insure you compile with a compiler that is 64bit
capable or any shared object is 64 bit format.

file /usr/ucblib/sparcv9/
/usr/ucblib/sparcv9/ ELF 64-bit MSB dynamic lib
SPARCV9 Version 1, dynamically linked, not stripped

So you can edit your LD_LIBRARY_PATH to include /usr/ucblib/sparcv9
Try this:

setenv LD_LIBRARY_PATH /usr/ucblib/sparcv9:$LD_LIBRARY_PATH

Please be aware of these differences.



Relevant Pages

  • Re: Getting a C++ Application to compile on AIX 5.1 VACPP
    ... The current output of the compile is as follows. ... INSERT: Shared object libC.a: 398 symbols imported. ... RESOLVE: 0 of 4863 symbols were kept. ... MISMATCH: No type mismatches exist. ...
  • Re: [SLE] Downgrading packages with Yast2
    ... use ldd and apply some sed post-processing and you'll get a list ... of the shared object files required: ... Randall Schulz ...
  • Re: printk() with log level-Compilation error
    ... > lib/modules is WRONG engineering practice. ... > source headers, not at lib/modules. ... to the point where it is imposible to compile a module. ... The most reliable way is by pointing at them. ...
  • problems with gcc after running up2date
    ... When trying to compile a newer version of CVS I got the following errors. ... ent size in shared object, consider re-linking ...
  • Re: printk() with log level-Compilation error
    ... > how it is upposed to look in a shell script. ... Yep - and not having the sources that you used to compile the currently ... running kernel on the machine in question would also kill it. ... The most reliable way is by pointing at them. ...