Informix

 View Only
  • 1.  Informix IDS system requirements regarding libncurses 5 vs 6

    Posted Mon September 11, 2023 06:16 AM

    Hello,

    Just seen this workaround in Informix Server System Requirements

    ** Following system libraries are needed for IBM Informix Dynamic Server version 14.10.FC9 and greater to run on Red Hat Linux 9. Higher versions of same libraries are installed on Red Hat Linux 9. As a workaround, symbolic links to those libraries need to be created.

         Libraries needed for IDS:
            libncurses.so.5
            libtinfo.so.5
         Libraries installed on Red Hat Linux 9:
            libncurses.so.6
            libtinfo.so.6
          Workaround:
                 Run following commands as root user from /usr/lib64 directory.
                       ln -s libncurses.so.6 libncurses.so.5

                       ln -s libtinfo.so.6 libtinfo.so.5

    To me, it is a dangerous practice to create such symbolic links to fake the shared lib dependencies.

    The shared library version is there for a good reason. Are you sure that this is 100% safe?

    Is it not better to install the libncurses V5 package when it's available or, build an Informix IDS package that uses libncurses V6?

    In fact, we have a similar issue here and I wonder how you ended up with this workaround...

    https://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/c_fgl_installation_019.html

    Seb



    ------------------------------
    Sebastien FLAESCH
    ------------------------------


  • 2.  RE: Informix IDS system requirements regarding libncurses 5 vs 6

    Posted Tue September 12, 2023 04:26 AM
    Hi Sebastian,

    yes, I agree with you. Installing the compatibility package for libncurses is the correct way of resolving this issue.

    Creating a symbolic link as described on that page is a quick-and-dirty method that may be "just good enough" on a developer's machine, but certainly neither should be recommended in general nor used on a production system.

    I'll try to get the description on that page changed accordingly.

    Regards, Martin

    --

    Martin Fuerderer (he/him)

    Software Engineer

    HCL Software

    hcl-software.com

    ::DISCLAIMER::

    The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.






  • 3.  RE: Informix IDS system requirements regarding libncurses 5 vs 6

    Posted Mon September 18, 2023 08:41 AM
    I stand corrected regarding the symbolic link workaround for the libncurses version 5 vs. version 6 issue:

    My colleagues informed me, that the libncurses compatibility package is available for RedHat Linux 8, but not for RedHat Linux 9.
    And it looks like RedHat Tech Support themselves have suggested the symbolic link workaround as viable solution for this problem:
    https://access.redhat.com/solutions/6907421. Click or tap if you trust this link." data-linkindex="0" style="font-size: 14.6667px; font-family: Calibri, Helvetica, sans-serif; margin: 0; background-color: #FFFFFF">https://access.redhat.com/solutions/6907421

    And thus it also is recommended by IBM for running Rational ClearCase on RedHat Linux 9:
    https://www.ibm.com/support/pages/how-configure-red-hat-enterprise-linux-9-run-rational-clearcase

    Whether this is a really clean solution probably is debatable. But - at least for the time being - this seems to be the only solution, and somehow acceptable as well.

    Sorry for the confusion!
    Martin

    --

    Martin Fuerderer (he/him)

    Software Engineer

    HCL Software

    hcl-software.com

    ::DISCLAIMER::

    The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.






  • 4.  RE: Informix IDS system requirements regarding libncurses 5 vs 6

    Posted Mon September 18, 2023 10:20 AM

    Hi Martin,

    Thanks for the update.

    IMO, the correct solution would be to have a dedicated build of Informix IDS for RHEL 9, with the dependency to libncurses.so.6 and libtinfo.so.6.

    This is what we plan for our product.

    Seb



    ------------------------------
    Sebastien FLAESCH
    ------------------------------



  • 5.  RE: Informix IDS system requirements regarding libncurses 5 vs 6

    IBM Champion
    Posted Fri September 22, 2023 08:54 AM

    But wouldn't this mean having multiple different 'flavors' of the same Informix version, for RHEL9+, for RHEL8-, for ..., creating even more potential confusion ("which flavor of 14.10.FC10 would I use for my particular Linux distribution and version?!?")



    ------------------------------
    Andreas Legner
    ------------------------------



  • 6.  RE: Informix IDS system requirements regarding libncurses 5 vs 6

    Posted Fri September 22, 2023 09:53 AM

    Andreas,

    Yes that's the dilemma: Have tailored IDS packages for any supported Linux platforms, or have less or one common package, with tricky workarounds to make it work on some Linux brands/versions.

    I understand it's more work, but that's the idea of shared libs versioning and Linux package dependencies.

    Here we ended up with platform codes in or package names (mainly with GLIBC version deps), for a given set of "compatible" Linux brands.

    https://4js.com//mirror/documentation.php?s=genero&f=fjs-genero-4.01.XX-PlatformsDb.pdf

    Seb



    ------------------------------
    Sebastien FLAESCH
    ------------------------------



  • 7.  RE: Informix IDS system requirements regarding libncurses 5 vs 6

    IBM Champion
    Posted Fri September 22, 2023 11:29 AM

    The biggest problem to my mind, is that even the latest of the ESQL/C libraries were built using GCCv5 or  v6 and GCC is up to v11 or v12 with internal library changes and code migrating from one library to another since GCC v7. The GCC 5 libraries are no longer available and v6 are hard to find.



    ------------------------------
    Art S. Kagel, President and Principal Consultant
    ASK Database Management Corp.
    www.askdbmgt.com
    ------------------------------