IBM Support

PDA odbc 64bits driver breaks ssh/yum and other commands when using LD_LIBRARY_PATH in Red Hat 7.4 and above

Troubleshooting


Problem

PDA odbc driver is not yet certified for higher versions than Red Hat 7.3 on x86. It can be installed but due to old versions of Kerberos libs it can break some tools like ssh/yum.

Symptom

After installing the driver, configuring it and exporting the LD_LIBRARY_PATH to the driver lib64 folder (default /usr/local/nz/lib64/) we can see errors like:

[root@host1 .ssh]$ ssh hostXXX
ssh: relocation error: /lib64/libgssapi_krb5.so.2: symbol k5_once,version krb5support_0_MIT not defined in file libkrb5support.so.0 with link time reference
  

Cause

Before exporting 

[root@host ~]$ ldd /usr/bin/ssh
        linux-vdso.so.1 =>  (0x00007ffc82da6000)
        ...
        libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007efd9b076000)
        libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007efd9ae96000)
        libk5crypto.so.3 => /libk5crypto.so.3 (0x00007efd9ad52000)
        ....
        libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007efd98dca000)
     

After export $LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/nz/lib64

[root@host ~]$ ldd /usr/bin/ssh
        linux-vdso.so.1 =>  (0x00007ffc82da6000)
        ...
        libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007efd9b076000)
        libkrb5.so.3 => /usr/local/nz/lib64/libkrb5.so.3 (0x00007efd9ae96000)
        libk5crypto.so.3 => /usr/local/nz/lib64/libk5crypto.so.3 (0x00007efd9ad52000)
        ....
        libkrb5support.so.0 => /usr/local/nz/lib64/libkrb5support.so.0 (0x00007efd98dca000)
        

Resolving The Problem

This is a workaround until a new driver is certified with higher Red Hat versions.

Copynthese 3 files from /usr/lib64/ 

libk5crypto.so.3.1

libkrb5.so.3.3

libkrb5support.so.0.1

And go to /usr/local/nz/lib64/ or your defined driver folder and put the files there overwriting the existing files in that folder.

Export the folder again

export $LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/nz/lib64

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSULQD","label":"IBM PureData System"},"Component":"PDA odbc driver","Platform":[{"code":"PF016","label":"Linux"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
17 October 2019

UID

ibm10737219