IBM Support

Required LD_PRELOAD settings for CS Linux

Question & Answer


Question

What LD_PRELOAD settings are required to allow applications or transaction programs (TPs) to run properly with Communications Server for Linux (CS Linux)?

Answer

Set the LD_PRELOAD environment variable for some applications or TPs to run properly with CS Linux:



    For example a 32bit JavaCPI-C application must have the following set before the 32bit Java Runtime Environment (JRE) is started:

       LD_PRELOAD=/usr/lib/libpLiS.so


    For a 64-bit application you might need:

       LD_PRELOAD=/usr/lib64/libpLiS.so


    Do not export or put the LD_PRELOAD environment variable into the system profile, especially on 64-bit (s390x, ppc64, and x86_64) systems.  Issuing the following command sets the value for all subsequent commands. 

       export LD_PRELOAD=...

    This can cause problems if LD_PRELOAD is pointing to a 32-bit library but a subsequent command is a 64-bit binary or visa-versa.  In that case, use the following syntax to only set the LD_PRELOAD environment variable for that binary:

       LD_PRELOAD=/usr/lib/libpLiS.so 32bitbinaryname
    or
       LD_PRELOAD=/usr/lib64/libpLiS.so 64bitbinaryname

    On a Linux s390x system the default shell ('/bin/bash') is a 64-bit binary, so issuing 'export LD_PRELOAD=32bitlibrary' causes all the subsequent shell commands to fail.  Issue the following command to recover:

       unset LD_PRELOAD


For more information on LD_PRELOAD, see the IBM Communications Server for Linux Technote SNAPATH message 16388 - 13, Subcode: 1 - 0. and the subsection "Environment Variables That Affect All Functions" in Appendix C ("Environment Variables") of the IBM Communications Server for Linux Version 6.4 Administration Command Reference (SC31-6770-03).

[{"Product":{"code":"SSHQLW","label":"Communications Server for Linux"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"All","Platform":[{"code":"PF016","label":"Linux"}],"Version":"6.2.1;6.2.2;6.2.3;6.2.3.1;6.2.3.2;6.2.3.3;6.4;6.4.0.1;6.4.0.2;6.4.0.3;6.4.0.4;7.0.0.0","Edition":"All Editions","Line of Business":{"code":"LOB35","label":"Mainframe SW"}},{"Product":{"code":"SSDMF3","label":"Communications Server for Linux on zSeries"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"All","Platform":[{"code":"","label":"Linux Red Hat - zSeries"},{"code":"","label":"Linux SUSE - zSeries"},{"code":"","label":"Linux zSeries"}],"Version":"6.2.1;6.2.2;6.2.3;6.2.3.1;6.4;6.2.3.2;6.4.0.1;6.4.0.2;6.4.0.3;6.4.0.4;7.0.0.0","Edition":"All Editions","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
02 August 2018

UID

swg21235665