Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  yum update returns ' Symbol _GLOBAL__AIXI_libstdc___'

    Posted Fri October 25, 2019 05:36 PM

    Originally posted by: NITEESH DUBEY


    Hi, The 'yum update' on AIX 7.2 was giving some problems. So, I removed all the RPMS by using 'destroyRPMS' script, installed 'rpm.rte' and the ran 'updtvpkg'. Again, I ran 'yum update' after installing 'yum' using 'yum.sh'. It gave the following errors while updating 'ca-certificates-2019.01.10-2.ppc'.

    exec(): 0509-036 Cannot load program /usr/bin/p11-kit because of the following errors:
            0509-022 Cannot load module /usr/lib/libp11-kit.a(libp11-kit.so.0).
            0509-150   Dependent module /usr/gnu/lib/libgcc_s.a(shr.o) could not be loaded.
            0509-103   The module has an invalid magic number.
            0509-022 Cannot load module p11-kit_64.
            0509-150   Dependent module /usr/lib/libp11-kit.a(libp11-kit.so.0) could not be loaded.

     

    Now, for any yum command (e.g. yum install git; yum update; ...), it reports the following error.

    exec(): 0509-036 Cannot load program /opt/freeware/bin/python2 because of the following errors:
    rtld: 0712-001 Symbol _GLOBAL__AIXI_libstdc___so was referenced
          from module python2(), but a runtime definition
          of the symbol was not found.
    rtld: 0712-001 Symbol _GLOBAL__AIXD_libstdc___so was referenced
          from module python2(), but a runtime definition
          of the symbol was not found.
     

    Please let me know how can it be resolved. 

    Thanks

    Niteesh


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: yum update returns ' Symbol _GLOBAL__AIXI_libstdc___'

    Posted Mon October 28, 2019 04:22 AM

    Originally posted by: sanket


    After destroyRPMS and installing everything from scratch this should not happen.

    From error output it looks like gcc library issue. Were you having gcc installed before. 

    Both the errors are pointing out to libgcc and libstd++ libraries those are gcc libraries. 

    Could you please verify what level of gcc or these libraries are installed. 

    Please provide the output of "rpm -qa"

    I think if you move to latest level of gcc libraries the issue should be fixed. 

    libstdcplusplus-8.1.0-2.aix7.2.ppc.rpm

    libgcc-8.1.0-2.aix7.2.ppc.rpm


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: yum update returns ' Symbol _GLOBAL__AIXI_libstdc___'

    Posted Mon October 28, 2019 11:19 AM

    Originally posted by: NITEESH DUBEY


    Here is the output of 'rpm -qa' before installing the above gcc libraries.

    #rpm -qa
    AIX-rpm-7.2.0.1-2.ppc
    python-iniparse-0.4-1.noarch
    python-urlgrabber-3.10.1-1.noarch
    libgcc-8.1.0-2.ppc
    libffi-3.2.1-3.ppc
    ncurses-6.1-2.ppc
    gettext-0.19.8.1-3.ppc
    cyrus-sasl-2.1.26-3.ppc
    krb5-libs-1.16.1-2.ppc
    p11-kit-tools-0.23.16-1.ppc
    gdbm-1.18.1-1.ppc
    bash-5.0-1.ppc
    readline-8.0-2.ppc
    libssh2-1.8.2-1.ppc
    expat-2.2.6-1.ppc
    python-2.7.16-1.ppc
    python-pycurl-7.43.0-1.ppc
    python-tools-2.7.16-1.ppc
    yum-metadata-parser-1.1.4-2.ppc
    yum-3.4.3-7.noarch
    zlib-1.2.11-1.ppc
    libstdc++-8.1.0-2.ppc
    glib2-2.56.1-2.ppc
    db-6.2.32-2.ppc
    openldap-2.4.46-2.ppc
    p11-kit-0.23.16-1.ppc
    ca-certificates-2019.01.10-2.ppc
    libiconv-1.14-2.ppc
    info-6.4-1.ppc
    sqlite-3.28.0-1.ppc
    curl-7.65.1-1.ppc
    bzip2-1.0.6-3.ppc
    pysqlite-2.8.3-2.ppc
    python-devel-2.7.16-1.ppc

     

    Here is the output of 'rpm -qa' after installing the gcc libraries.

    #rpm -qa
    python-iniparse-0.4-1.noarch
    python-urlgrabber-3.10.1-1.noarch
    libgcc-8.1.0-2.ppc
    libffi-3.2.1-3.ppc
    ncurses-6.1-2.ppc
    gettext-0.19.8.1-3.ppc
    cyrus-sasl-2.1.26-3.ppc
    krb5-libs-1.16.1-2.ppc
    p11-kit-tools-0.23.16-1.ppc
    gdbm-1.18.1-1.ppc
    bash-5.0-1.ppc
    readline-8.0-2.ppc
    libssh2-1.8.2-1.ppc
    expat-2.2.6-1.ppc
    python-2.7.16-1.ppc
    python-pycurl-7.43.0-1.ppc
    python-tools-2.7.16-1.ppc
    yum-metadata-parser-1.1.4-2.ppc
    yum-3.4.3-7.noarch
    zlib-1.2.11-1.ppc
    libstdc++-8.1.0-2.ppc
    glib2-2.56.1-2.ppc
    db-6.2.32-2.ppc
    openldap-2.4.46-2.ppc
    p11-kit-0.23.16-1.ppc
    ca-certificates-2019.01.10-2.ppc
    libiconv-1.14-2.ppc
    info-6.4-1.ppc
    sqlite-3.28.0-1.ppc
    curl-7.65.1-1.ppc
    bzip2-1.0.6-3.ppc
    pysqlite-2.8.3-2.ppc
    python-devel-2.7.16-1.ppc
    AIX-rpm-7.2.0.1-3.ppc

     

    The 'yum update' still reports the same errors.

    #yum update
    exec(): 0509-036 Cannot load program /opt/freeware/bin/python2 because of the following errors:
    rtld: 0712-001 Symbol _GLOBAL__AIXI_libstdc___so was referenced
          from module python2(), but a runtime definition
          of the symbol was not found.
    rtld: 0712-001 Symbol _GLOBAL__AIXD_libstdc___so was referenced
          from module python2(), but a runtime definition
          of the symbol was not found.

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 4.  Re: yum update returns ' Symbol _GLOBAL__AIXI_libstdc___'

    Posted Mon October 28, 2019 11:46 AM

    Originally posted by: NITEESH DUBEY


    After changing the LIBPATH from '/opt/IBM/xlC/13.1.3/lib:/usr/lib:/usr/gnu/lib:/opt/freeware/lib:/jre/lib:/lib:/opt/IBM/xlf/15.1.3/lib:/usr/contrib/lib' to just '/opt/freeware/lib', the 'yum update' and 'yum install git' worked fine.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 5.  Re: yum update returns ' Symbol _GLOBAL__AIXI_libstdc___'

    Posted Tue October 29, 2019 12:44 AM

    Originally posted by: sanket


    Good to know things worked for you. 

    I am still wondering from where did you get /usr/gnu/lib ?


    #AIXOpenSource
    #AIX-Open-Source-Software