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
Expand all | Collapse all

rpm fails on 64-bit nss libintl in 64-bit object mode

  • 1.  rpm fails on 64-bit nss libintl in 64-bit object mode

    Posted Wed August 29, 2018 10:40 AM

    Originally posted by: Edward Davignon


    Missing libintl.so.8 in lib64 from nss-3.34.1-1 causes RPM 4.13.0.3 for AIX to fail in a 64-bit build environment.

     

    $ OBJECT_MODE=64 LIBPATH=/opt/freeware/lib64:/usr/lib64:/opt/freeware/lib:/usr/lib:/lib /usr/bin/rpm

    Could not load program /usr/opt/freeware/bin/rpm:

            Dependent module /opt/freeware/lib64/libintl.a(libintl.so.8) could not be loaded.

            The module has an invalid magic number.

    $ OBJECT_MODE=64 LIBPATH=/opt/freeware/lib64:/usr/lib64:/opt/freeware/lib:/usr/lib:/lib ldd /usr/opt/freeware/bin/rpm

    /usr/opt/freeware/bin/rpm needs:

             /opt/freeware/lib/librpm.so

             /opt/freeware/lib/libdb.so

             /opt/freeware/lib/librpmio.so

             /opt/freeware/lib64/libnss3.so

    dump: /opt/freeware/lib64/libnss3.so: 0654-108 file is not valid in the current object file mode.

            Use the -X option to specify the desired object mode.

             /opt/freeware/lib/libpopt.so

             /opt/freeware/lib64/libintl.a(libintl.so.8)

    ar: 0707-109 Member name libintl.so.8 does not exist.

    dump: /tmp/tmpdir15860042/extract/libintl.so.8: 0654-106 Cannot open the specified file.

             /usr/lib/libc.a(shr.o)

             /usr/lib/libpthread.a(shr_xpg5.o)

             /usr/lib/librtl.a(shr.o)

             /opt/freeware/lib/liblua.a(liblua-5.1.so)

             /opt/freeware/lib/libbz2.a(libbz2.so.1)

             /opt/freeware/lib/libz.a(libz.so.1)

             /unix

             /usr/lib/libcrypt.a(shr.o)

             /usr/lib/libpthreads.a(shr_comm.o)

    $ rpm -qf /opt/freeware/lib64/libnss3.so

    nss-3.34.1-1.ppc

    $ rpm -qi $(rpm -qf /opt/freeware/lib64/libnss3.so) | grep Build

    Build Date  : Mon Apr  2 04:09:58 2018

    Build Host  : pokndd5.pok.stglabs.ibm.com

    $ lslpp -l rpm.rte

      Fileset                      Level  State      Description

      ----------------------------------------------------------------------------

    Path: /usr/lib/objrepos

      rpm.rte                   4.13.0.3  COMMITTED  RPM Package Manager

     

    Path: /etc/objrepos

      rpm.rte                   4.13.0.3  COMMITTED  RPM Package Manager

    $ oslevel -s

    7200-02-02-1832

    $


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: rpm fails on 64-bit nss libintl in 64-bit object mode

    Posted Wed August 29, 2018 10:56 AM

    Originally posted by: AyappanP


    There is no need (don't set) to export any LIBPATH. 

    /usr/opt/freeware/bin/rpm is a 32-bit application. 

    # file /usr/opt/freeware/bin/rpm
    /usr/opt/freeware/bin/rpm: executable (RISC System/6000) or object module not stripped

     


    #AIXOpenSource
    #AIX-Open-Source-Software