Calling custom application fails with error "libetpki2.so: wrong ELF class: ELFCLASS32".
search cancel

Calling custom application fails with error "libetpki2.so: wrong ELF class: ELFCLASS32".

book

Article ID: 51181

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) CA Single Sign-On

Issue/Introduction

Description:

Following error is being logged when running custom application:

FATAL ERROR: Exception from System.loadLibraryjava.lang.UnsatisfiedLinkError:/opt/netegrity/siteminder/webagent/sdk/bin64/libsmjavaagentapi.so:libetpki2.so: wrong ELF class: ELFCLASS32 

OS: Red Hat 5 64bit
SDK installer: smsdk-12.0-sp2-linux

Solution:

The issue occurs if 64-bit ETPKI was not installed and therefore 32-bit libraries are loaded.

Resolution:
On a fresh machine, or after uninstalling SDK + ETPKI, ensuring there are no directories left, redo installation as per following example:

  • install the sdk files by submitting the command "./ca-sdk-12.0-sp2-linux.bin -i console".
  • install the etPKI package by submitting the command "/root/CA/sdk/bin64/setup install caller=dummy instdir=/root/etPKI verbose env=none" (replace "dummy" with whatever ID you would like to use).

Environment

Release:
Component: SMSDK