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.  Cannot load program lzop because of the following errors:

    Posted Thu April 05, 2018 01:03 AM

    Originally posted by: worrad


    I have compiled lzo-2.10 and lzop1.4  on aix 7.2

    I get the following error when running lzop

     

    exec(): 0509-036 Cannot load program lzop because of the following errors:
            0509-150   Dependent module liblzo2.a(liblzo2.so.2) could not be loaded.
            0509-152   Member liblzo2.so.2 is not found in archive

    My process to compile lzo was as follows

     

    ./configure --prefix=/usr

    final result

    LZO configuration summary
       -------------------------
       LZO version                : 2.10
       configured for host        : powerpc-ibm-aix7.2.0.0
       source code location       : .
       compiler                   : gcc
       preprocessor definitions   : -DLZO_HAVE_CONFIG_H=1
       preprocessor flags         :
       compiler flags             : -g -O2
       build static library       : yes
       build shared library       : no
       enable i386 assembly code  : no


       LZO 2.10 configured.

    I then did make which completed with no errors and finished with

     

    Target "all-am" is up to date.

     

    i then did a "make test" with the everyting passing, summary of results below

     

    Done.
            ./tests/align
    Align init: 20000c38 ( 0x20000c38 )
    Alignment test passed.
            ./tests/chksum
    Checksum test passed.
            ./examples/simple

    LZO real-time data compression library (v2.10, Mar 01 2017).
    Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
    All Rights Reserved.

    compressed 131072 bytes into 593 bytes
    decompressed 593 bytes back into 131072 bytes
    Simple compression test passed.
            ./minilzo/testmini

    LZO real-time data compression library (v2.10, Mar 01 2017).
    Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
    All Rights Reserved.

    compressed 131072 bytes into 593 bytes
    decompressed 593 bytes back into 131072 bytes

    miniLZO simple compression test passed.

    ===== All tests passed. Now you are ready to install LZO. =====

     

    I then did a "make install" results below

     

    bash-4.3# make install
     autoconf/install-sh -c -d '/usr/lib'
     /bin/sh ./libtool   --mode=install autoconf/install-sh -c   src/liblzo2.la '/usr/lib'
    libtool: install: autoconf/install-sh -c src/.libs/liblzo2.lai /usr/lib/liblzo2.la
    libtool: install: autoconf/install-sh -c src/.libs/liblzo2.a /usr/lib/liblzo2.a
    libtool: install: chmod 644 /usr/lib/liblzo2.a
    libtool: install: ranlib /usr/lib/liblzo2.a
    Target "install-exec-am" is up to date.
     autoconf/install-sh -c -d '/usr/share/doc/lzo'
     autoconf/install-sh -c -m 644 AUTHORS COPYING NEWS THANKS doc/LZO.FAQ doc/LZO.TXT doc/LZOAPI.TXT '/usr/share/doc/lzo'
     autoconf/install-sh -c -d '/usr/lib/pkgconfig'
     autoconf/install-sh -c -m 644 lzo2.pc '/usr/lib/pkgconfig'
     autoconf/install-sh -c -d '/usr/include/lzo'
     autoconf/install-sh -c -m 644 include/lzo/lzo1.h include/lzo/lzo1a.h include/lzo/lzo1b.h include/lzo/lzo1c.h include/lzo/lzo1f.h include/lzo/lzo1x.h include/lzo/lzo1y.h include/lzo/lzo1z.h include/lzo/lzo2a.h include/lzo/lzo_asm.h include/lzo/lzoconf.h include/lzo/lzodefs.h include/lzo/lzoutil.h '/usr/include/lzo'
    Target "install-data-am" is up to date.
    Target "install" is up to date.

     

     

    lzop is in the following location

     

    /usr/bin/lzop

     

    my path is 

    bash-4.3# echo $PATH
    /run/pronto/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java7_64/jre/bin:/usr/java7_64/bin:/pro/informix/bin:/run/pronto/lbin:/pro/informix/bin:/usr/lib

     

    Any assistance would be appreciated.

     

    Cheers

     

    Mark

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: Cannot load program lzop because of the following errors:

    Posted Thu April 05, 2018 11:58 PM

    Originally posted by: sangameshm


    You could try to run some commands to check what lzo is looking and what we have it in the library.

     

    # ldd /usr/bin/lzop   <= To check what are share library lzop command needs.

    # ar -X32_64 -tv /usr/lib/liblzo2.a <= To check what shared members we have it in this archive.

    # dump -Hov /usr/lib/liblzo2.a <= To display header information like flags etc..

    From configuration summary it looks like libraries are built as static library.

     

    Thanks,

    Sangamesh


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: Cannot load program lzop because of the following errors:

    Posted Fri April 06, 2018 05:02 AM

    Originally posted by: T.Rex


    You can get it from here: http://www.bullfreeware.com/search.php?package=lzo

    It has been compiled with GCC.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 4.  Re: Cannot load program lzop because of the following errors:

    Posted Mon April 09, 2018 01:58 AM

    Originally posted by: worrad


    Thanks that did it. I compiled with GCC but may be it required a flag that i did not use.

     

    Thankyou


    #AIX-Open-Source-Software
    #AIXOpenSource