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
  • 1.  nmap Dependent module /usr/lib/liblua.a(liblua-5.4.so) could not be loaded.

    Posted Tue September 26, 2023 08:31 AM

    Dear community, neither reinstalling nmap nor reinstalling lua solved the issue.

    09:21:02 root@girsm07x: /home/root 
    # nmap
    exec(): 0509-036 Cannot load program nmap because of the following errors:
            0509-150   Dependent module /usr/lib/liblua.a(liblua-5.4.so) could not be loaded.
            0509-152   Member liblua-5.4.so is not found in archive 
    09:21:06 root@girsm07x: /home/root 
    # rpm -qi lua
    Name        : lua
    Version     : 5.4.4
    Release     : 1
    Architecture: ppc
    Install Date: Tue Sep 26 09:18:41 CEST 2023
    Group       : Development/Languages
    Size        : 6371647
    License     : MIT
    Signature   : (none)
    Source RPM  : lua-5.4.4-1.src.rpm
    Build Date  : Tue Apr  4 12:29:13 CEST 2023
    Build Host  : pokndd5.pok.stglabs.ibm.com
    Packager    : IBM AIX Toolbox  <https://ibm.biz/AIXToolbox>" title="https://ibm.biz/aixtoolbox%3e" href="https://ibm.biz/AIXToolbox>" rel="noreferrer noopener" target="_blank" class="fui-Link ___10kug0w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" style="overflow-wrap: break-word">https://ibm.biz/AIXToolbox>
    URL         : http://www.lua.org/" title="http://www.lua.org/" href="http://www.lua.org/" rel="noreferrer noopener" target="_blank" class="fui-Link ___10kug0w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" style="overflow-wrap: break-word">http://www.lua.org/
    Bug URL     : https://ibm.biz/aixoss_forum" title="https://ibm.biz/aixoss_forum" href="https://ibm.biz/aixoss_forum" rel="noreferrer noopener" target="_blank" class="fui-Link ___10kug0w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" style="overflow-wrap: break-word">https://ibm.biz/aixoss_forum
    Summary     : Powerful light-weight programming language
    Description :
    Lua is a powerful light-weight programming language designed for
    extending applications. Lua is also frequently used as a
    general-purpose, stand-alone language. Lua is free software.
    Lua combines simple procedural syntax with powerful data description
    constructs based on associative arrays and extensible semantics. Lua
    is dynamically typed, interpreted from bytecodes, and has automatic
    memory management with garbage collection, making it ideal for
    configuration, scripting, and rapid prototyping.
    09:25:45 root@girsm07x: /home/root 
    # ar -X32_64 -tv /opt/freeware/lib/liblua.a
    rwxr-xr-x   203/1     610894 Apr 04 12:29 2023 liblua-5.4.so
    rwxr-xr-x   203/1     420352 Apr 04 12:29 2023 liblua-5.1.so
    rwxr-xr-x   203/1     461205 Apr 04 12:29 2023 liblua-5.1.so
    rwxr-xr-x   203/1     533344 Apr 04 12:29 2023 liblua-5.3.so
    rwxr-xr-x   203/1     568833 Apr 04 12:29 2023 liblua-5.3.so
    rwxr-xr-x   203/1     651828 Apr 04 12:29 2023 liblua-5.4.so
    09:26:19 root@girsm07x: /home/root 



    ------------------------------
    Jan Karpíšek
    ------------------------------


  • 2.  RE: nmap Dependent module /usr/lib/liblua.a(liblua-5.4.so) could not be loaded.

    Posted Tue September 26, 2023 09:00 AM

    Looks like you have LIBPATH exported with /usr/lib. If so, what is the need to export LIBPATH ?
    LIBPATH should not be exported for a platform like AIX because of same named libraries coming from different sources in different paths. 
    Please unset LIBPATH and try again. 



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



  • 3.  RE: nmap Dependent module /usr/lib/liblua.a(liblua-5.4.so) could not be loaded.

    Posted Wed September 27, 2023 03:06 AM

    Thanks for this hint but unfortunately not the root cause.  Same error with no LIBPATH as well as with previously set LIBPATH for more directories including the freeware one:

    09:01:16 root@girsm07x: /home/root 
    # echo $LIBPATH
    /usr/lib:/opt/freeware/lib
    09:01:25 root@girsm07x: /home/root 
    # nmap
    exec(): 0509-036 Cannot load program nmap because of the following errors:
            0509-150   Dependent module /usr/lib/liblua.a(liblua-5.4.so) could not be loaded.
            0509-152   Member liblua-5.4.so is not found in archive 
    09:01:43 root@girsm07x: /home/root 



    ------------------------------
    Jan Karpíšek
    ------------------------------



  • 4.  RE: nmap Dependent module /usr/lib/liblua.a(liblua-5.4.so) could not be loaded.

    Posted Fri September 29, 2023 02:41 AM

    # dump -X64 -H /opt/freeware/bin/nmap

    /opt/freeware/bin/nmap:

                            ***Loader Section***
                          Loader Header Information
    VERSION#         #SYMtableENT     #RELOCent        LENidSTR
    0x00000001       0x000001d5       0x00001404       0x00000119       

    #IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
    0x0000000b       0x00016c70       0x000021f4       0x00016d89       


                            ***Import File Strings***
    INDEX  PATH                          BASE                MEMBER              
    0      /opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib                                         
    1                                    libssh2.a           libssh2.so.1        
    2                                    libpcre.a           libpcre.so.1        
    3                                    libpcap.a           shr_64.o            
    4                                    libssl.a            libssl.so.1.1       
    5                                    libcrypto.a         libcrypto.so.1.1    
    6                                    libz.a              libz.so.1           
    7                                    liblua.a            liblua-5.4.so       
    8                                    libstdc++.a         libstdc++.so.6      
    9                                    libgcc_s.a          shr.o               
    10                                   libc.a              shr_64.o        

    As you can see from the above output , nmap search path is /opt/freeware/lib64:/opt/freeware/lib:/usr/lib , so if you have lua-5.4.1 installed in the system and LIBPATH not set, then you won't see this problem. Please re-check the two things. 



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



  • 5.  RE: nmap Dependent module /usr/lib/liblua.a(liblua-5.4.so) could not be loaded.

    Posted Fri September 29, 2023 04:54 AM

    When I unset LIBPATH I received an error for another library (libssl).
    Also yum stopped working. When I set all required paths to LIBPATH, I'm still having the libssl error:

    10:38:38 root@girsm07x: /home/root 
    # nmap
    exec(): 0509-036 Cannot load program nmap because of the following errors:
            0509-150   Dependent module /opt/freeware/lib/libssl.a(libssl.so.1.1) could not be loaded.
            0509-152   Member libssl.so.1.1 is not found in archive 
    10:38:39 root@girsm07x: /home/root 
    # ar -X32_64 -tv /opt/freeware/lib/libssl.a
    rwxr-xr-x     0/0     702316 May 30 09:19 2019 libssl.so.1.0.2
    rwxr-xr-x     0/0     786707 May 30 09:14 2019 libssl.so.1.0.2
    rw-r--r--     0/0     362538 May 30 09:20 2019 libssl.so.0.9.7
    rw-r--r--     0/0     528217 May 30 09:20 2019 libssl.so.0.9.8
    rw-r--r--     0/0     580716 May 30 09:20 2019 libssl.so.1.0.0
    rw-r--r--     0/0     629701 May 30 09:20 2019 libssl.so.1.0.1
    rw-r--r--     0/0     414263 May 30 09:20 2019 libssl.so.0.9.7
    rw-r--r--     0/0     605942 May 30 09:20 2019 libssl.so.0.9.8
    rw-r--r--     0/0     663384 May 30 09:20 2019 libssl.so.1.0.0
    rw-r--r--     0/0     703344 May 30 09:20 2019 libssl.so.1.0.1
    10:39:23 root@girsm07x: /home/root 
    # echo $LIBPATH
    /opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib
    10:39:43 root@girsm07x: /home/root 


    Any suggestions please? Thank you.



    ------------------------------
    Jan Karpíšek
    ------------------------------



  • 6.  RE: nmap Dependent module /usr/lib/liblua.a(liblua-5.4.so) could not be loaded.

    Posted Fri September 29, 2023 05:13 AM

    Your openssl libraries are coming from openssl rpm. Please remove openssl rpms from the system. AIX toolbox packages works only with system installed openssl lpp fileset.



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



  • 7.  RE: nmap Dependent module /usr/lib/liblua.a(liblua-5.4.so) could not be loaded.

    Posted Fri September 29, 2023 05:27 AM

    Problem solved! Thank you so much. Have a great day.



    ------------------------------
    Jan Karpíšek
    ------------------------------