AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

AIX 7.2 library search path of expat library ? RPM package versus AIX perl.rte filest

  • 1.  AIX 7.2 library search path of expat library ? RPM package versus AIX perl.rte filest

    Posted Wed June 24, 2020 06:44 AM
    Edited by christophe derouet Wed June 24, 2020 06:44 AM


    Hello,

    We are working on AIX 7.2 LPAR admmi013

    YUM has been successfully installed yesterday (thanks to Ayappan and Sangamesh).

    Today our development team has troubles below :



    [ERROR] 24/06/2020 11:09:07 Admin Can't load '/usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: Could not load module /opt/freeware/lib/libexpat.a(libexpat.so.1).
    [ERROR] 24/06/2020 11:09:07 Admin Dependent module libgcc_s.a(shr.o) could not be loaded.
    [ERROR] 24/06/2020 11:09:07 Admin Could not load module libgcc_s.a(shr.o).
    [ERROR] 24/06/2020 11:09:07 Admin System error: No such file or directory
    [ERROR] 24/06/2020 11:09:07 Admin Could not load module /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/Parser/Expat/Expat.so.
    [ERROR] 24/06/2020 11:09:07 Admin Dependent module /opt/freeware/lib/libexpat.a(libexpat.so.1) could not be loaded. at /usr/opt/perl5/lib/5.28.1/aix-thread-multi/DynaLoader.pm line 193.
    [ERROR] 24/06/2020 11:09:07 Admin at /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/XML/Parser.pm line 18.
    [ERROR] 24/06/2020 11:09:07 Admin Compilation failed in require at /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/XML/Parser.pm line 18.
    [ERROR] 24/06/2020 11:09:07 Admin BEGIN failed--compilation aborted at /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/XML/Parser.pm line 22.
    [ERROR] 24/06/2020 11:09:07 Admin Compilation failed in require at /opt/rsd/COMMON/lib/rsdPatchFunc.pm line 5.
    [ERROR] 24/06/2020 11:09:07 Admin BEGIN failed--compilation aborted at /opt/rsd/COMMON/lib/rsdPatchFunc.pm line 5.
    [ERROR] 24/06/2020 11:09:07 Admin Compilation failed in require at /opt/rsd/COMMON/script/rsdpatch.pl line 7.
    [ERROR] 24/06/2020 11:09:07 Admin BEGIN failed--compilation aborted at /opt/rsd/COMMON/script/rsdpatch.pl line 7.
    [ERROR] 24/06/2020 11:09:07 Admin No RSD products found (environment not initailised?), stop



    Sangamesh suggested we open a specific case for this "search path of expat library" problem.

    Please find the Sangamesh's message below :

    There is a problem with library search path of expat library. As a workaround you an export LIBPATH=/opt/freeware/lib.

    This file "/usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/Parser/Expat/Expat.so" is from perl.rte fileset.
    It links to expat library which only comes through expat rpm which i think is not good. You can open a case for the above issue.




    I understand we should use the library coming from the AIX perl.rte fileset not from the RPM package.

    How can we solve this problem ?

    We thank you very much for your help,

    ------------------------------
    christophe derouet
    ------------------------------


  • 2.  RE: AIX 7.2 library search path of expat library ? RPM package versus AIX perl.rte filest

    Posted Wed June 24, 2020 10:11 AM
    We have uploaded the fixed expat (2.2.9-2) in AIX Toolbox just now.  This will fix the issue.
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/expat/expat-2.2.9-2.aix6.1.ppc.rpm
    yum repo update will take some time.

    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: AIX 7.2 library search path of expat library ? RPM package versus AIX perl.rte filest

    Posted Wed June 24, 2020 11:55 AM
    Newest package  expat   has been manually installed as it was not yet available on IBM AIXTOOL BOX site.

    Our development team says that applications are starting without any troubles now.

    We thank you very much for your help.

    ------------------------------
    christophe derouet
    ------------------------------



  • 4.  RE: AIX 7.2 library search path of expat library ? RPM package versus AIX perl.rte filest

    Posted Thu June 25, 2020 03:15 AM
    Hello,

    It seems that the newest package   expat   is not yet available on the    IBM AIX TOOL BOX  site...

    Can you have a look please,

    Have a nice day,

    ------------------------------
    christophe derouet
    ------------------------------



  • 5.  RE: AIX 7.2 library search path of expat library ? RPM package versus AIX perl.rte filest

    Posted Fri June 26, 2020 01:56 AM
    Probably you were looking at the AIX Toolbox web page. We are in process of updating that.
    Meanwhile you can  get the latest expat from following location. This is our repo. Also if you use YUM then that will reflect that newer version is available.

    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/expat/?C=M;O=D

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 6.  RE: AIX 7.2 library search path of expat library ? RPM package versus AIX perl.rte filest

    Posted Fri June 26, 2020 05:07 AM
    Hello Sanket,

    Thank you very much for this information.

    Have a nice day,

    ------------------------------
    christophe derouet
    ------------------------------



  • 7.  RE: AIX 7.2 library search path of expat library ? RPM package versus AIX perl.rte filest

    Posted Tue November 08, 2022 09:24 AM
    Hello Ayappan,

    We upgraded today AIX 7200-05-04-2220

    and expat (with yum update) :

    Installed Packages
    Name : expat
    Arch : ppc
    Version : 2.4.6
    Release : 1
    Size : 3.5 M
    Repo : installed
    From repo : AIX_Toolbox


    we have the error:

    ---- D▒marrage des serveurs
    Can't load '/usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: Could not load module /usr/opt/perl5/lib/site_perl   /5.28.1/aix-thread-multi/auto/XML/Parser/Expat/Expat.so.
            Dependent module libexpat.a(libexpat.so.1) could not be loaded.
    Could not load module libexpat.a(libexpat.so.1).
    System error: No such file or directory
    Could not load module /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/Parser/Expat/Expat.so.
            Dependent module /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/Parser/Expat/Expat.so could not be loaded. at /usr/opt/perl5/lib/5.28.1/aix-thread-multi/Dy   naLoader.pm line 193.
    at /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/XML/Parser.pm line 18.
    Compilation failed in require at /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/XML/Parser.pm line 18.
    BEGIN failed--compilation aborted at /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/XML/Parser.pm line 22.
    Compilation failed in require at /opt/rsd/COMMON/lib/rsdPatchFunc.pm line 5.
    BEGIN failed--compilation aborted at /opt/rsd/COMMON/lib/rsdPatchFunc.pm line 5.
    Compilation failed in require at /opt/rsd/COMMON/script/rsdpatch.pl line 7.
    BEGIN failed--compilation aborted at /opt/rsd/COMMON/script/rsdpatch.pl line 7.
    No RSD products found (environment not initailised?), stop



    Does it mean we should downgrade to  expat (2.2.9-2 )?
    or you will fix the new expat version ( expat (2.2.9-2).1) ?

    thank you

    Regards


    ------------------------------
    Nicolas KAPLIN
    ------------------------------



  • 8.  RE: AIX 7.2 library search path of expat library ? RPM package versus AIX perl.rte filest

    Posted Tue November 08, 2022 11:17 AM
    Edited by Nicolas KAPLIN Tue November 08, 2022 11:33 AM

    ------------------------------
    Nicolas KAPLIN
    ------------------------------



  • 9.  RE: AIX 7.2 library search path of expat library ? RPM package versus AIX perl.rte filest

    Posted Fri December 02, 2022 01:03 AM
    Hi Nicolas,

    Sorry for delay in response.

    It's not able to find the libexpat.a library.
    Please verify if you have set the LIBPATH and /opt/freeware/lib/libexpat.a is present with archive members as below.
    # ar -X32_64 -tv /opt/freeware/lib/libexpat.a
    rwxr-xr-x 205/1 819778 Mar 05 08:10 2022 libexpat.so.1
    rwxr-xr-x 205/1 937233 Mar 05 08:11 2022 libexpat.so.1
    rwxr-xr-x 205/1 288715 Mar 05 08:11 2022 libexpat.so.0
    rwxr-xr-x 205/1 248815 Mar 05 08:11 2022 libexpat.so.0

    ------------------------------
    SANGAMESH
    ------------------------------