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.  Symbol resolution failed for /opt/freeware/lib/libpython2.7.so

    Posted Fri July 16, 2021 01:17 AM
    I'm trying to fix this issue and been searching for possible solutions. Please provide suggestions.

    $ yum list
    Could not load program /opt/freeware/bin/python2:
    Symbol resolution failed for /opt/freeware/lib/libpython2.7.so because:
    Symbol _GLOBAL__AIXI_libexpat_so (number 213) is not exported from dependent
    module /usr/lib/libexpat.a(libexpat.so.1).
    Symbol _GLOBAL__AIXD_libexpat_so (number 214) is not exported from dependent
    module /usr/lib/libexpat.a(libexpat.so.1).

    $ ldd /opt/freeware/bin/python2
    /opt/freeware/bin/python2 needs:
    /opt/freeware/lib/libpython2.7.so
    /opt/freeware/lib/libexpat.a(libexpat.so.1)
    /opt/freeware/lib/libffi.a(libffi.so.6)
    /opt/freeware/lib/libncurses.so
    /opt/freeware/lib/libsqlite3.so
    /opt/freeware/lib/libstdc++.a(libstdc++.so.6)
    /opt/freeware/lib/libgcc_s.a(shr.o)
    /usr/lib/libc.a(shr.o)
    /usr/lib/librtl.a(shr.o)
    /usr/lib/libdl.a(shr.o)
    /usr/lib/libpthreads.a(shr_comm.o)
    /usr/lib/libpthreads.a(shr_xpg5.o)
    /usr/lib/libpthread.a(shr_xpg5.o)
    /unix
    /usr/lib/libcrypt.a(shr.o)

    ------------------------------
    Adrian Soriano
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Symbol resolution failed for /opt/freeware/lib/libpython2.7.so

    Posted Tue July 20, 2021 12:58 PM
    Do you have LIBPATH set ? 
    Probably you are using older libexpat or wrong libexpat. 
    Can you please share output of following commands.

    $ ls -l /usr/lib/libexpat.a

    $ rpm -qi expat

    $ echo $LIBPATH



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



  • 3.  RE: Symbol resolution failed for /opt/freeware/lib/libpython2.7.so

    Posted Sun November 21, 2021 11:02 PM
    Hello Sanket,

    Please see below.

    # ls -l /usr/lib/libexpat.a
    lrwxrwxrwx 1 root system 33 Mar 16 2021 /usr/lib/libexpat.a -> ../../opt/freeware/lib/libexpat.a

    # rpm -qi expat
    Name : expat
    Version : 2.2.4
    Release : 1
    Architecture: ppc
    Install Date: Tue Mar 16 19:19:03 2021
    Group : System Environment/Libraries
    Size : 1906871
    License : MIT
    Signature : (none)
    Source RPM : expat-2.2.4-1.src.rpm
    Build Date : Thu Apr 12 17:38:53 2018
    Build Host : pokndd10.pok.stglabs.ibm.com
    URL : http://www.libexpat.org/
    Summary : An XML parser library
    Description :
    This is expat, the C library for parsing XML, written by James Clark. Expat
    is a stream oriented XML parser. This means that you register handlers with
    the parser prior to starting the parse. These handlers are called when the
    parser discovers the associated structures in the document being parsed. A
    start tag is an example of the kind of structures for which you may
    register handlers.

    The library is available as 32-bit and 64-bit.

    # echo $LIBPATH


    ------------------------------
    Adrian Soriano
    ------------------------------



  • 4.  RE: Symbol resolution failed for /opt/freeware/lib/libpython2.7.so

    Posted Mon November 22, 2021 07:26 AM
    The expat rpm is pretty old. Please update to atleast 2.2.9 version to fix the issue.

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



  • 5.  RE: Symbol resolution failed for /opt/freeware/lib/libpython2.7.so

    Posted Tue November 23, 2021 12:49 AM

    Update of expat rpm fixed the issue. Thank you for the help!

    ------------------------------
    Adrian Soriano
    ------------------------------