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 install Samba 4.10.6 on AIX 7.1TL5SP4

    Posted Wed December 04, 2019 12:25 PM

    Originally posted by: 5SRJ_c_b


    Hi, 

    I see errors when trying to install samba 4.10.6 from toolbox. 

     

    rpm --rebuilddb
    rpm_share: 0645-007 ATTENTION: whichfs() returned an unexpected result.
    rpm_share: 0645-007 ATTENTION: get_rpm_inst_root_list() returned an unexpected result.
    rpm_share: 0645-007 ATTENTION: update_inst_root() returned an unexpected result.

    I'm using rpm.rte 4.13.0.3

    After opening an IBM support call I was told that the file 

    rpm -qf /etc/rc.d/rc2.d/Knmbd

    is causing troubles - it actually links to some ${i} construct (which seems not to be working - roght now I do not have access to the system)

     

    Besides the above error I also see other errors which I cannot resolve properly: 

    testparm
    exec(): 0509-036 Cannot load program testparm because of the following errors:
    0509-022 Cannot load module /opt/freeware/lib/libsmbconf.so.
    0509-150 Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
    0509-152 Member libiconv.so.2 is not found in archive
    0509-022 Cannot load module testparm.
    0509-150 Dependent module /opt/freeware/lib/libsmbconf.so could not be loaded.
    0509-022 Cannot load module .

     

    Any ideas?

     

    Best regards

    Christoph 


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: cannot install Samba 4.10.6 on AIX 7.1TL5SP4

    Posted Thu December 05, 2019 03:38 PM

    Originally posted by: Edward Davignon


    I would try

    
    export LIBPATH=/opt/freeware/lib
    rpm --rebuilddb
    

    or

    
    sudo ODMDIR=/etc/objrepos LIBPATH=/opt/freeware/lib rpm --rebuilddb
    

     

    I would also recommend trying to upgrade rpm.rte (installp package) to version 4.13.0.4 or higher.  It makes the rpm.rte package less dependent on /opt/freeware

    lslpp -l rpm.rte
    

     

    From the README file from rpm.rte:

    Current version of rpm.rte is 4.13.0.11

     

    Beginning sections  […] talks about the major changes introduced from rpm.rte-4.13.0.4.

    […]

    rpm.rte older than 4.13.0.4 ships binaries and libraries in

    /usr/opt/freeware/lib and /usr/opt/freeware/bin paths.

     

    rpm.rte-4.13.0.x is dependent on libraries from the below mentioned minimal

    versioned rpm packages. rpm.rte-3.0.5.x has a slightly lesser dependency than

    rpm.rte-4.13.0.x. So as to mention, rpm.rte ships libraries extracted from

    below mentioned rpm packages.

    […]


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: cannot install Samba 4.10.6 on AIX 7.1TL5SP4

    Posted Fri December 06, 2019 05:42 AM

    Originally posted by: AyappanP


    Looks like there is a bug with the symbolic creation for /etc/rc.d/rc2.d/Knmbd ( other similar files ) in the new spec file.

    We will fix this in the next release.

    And about testparm failure, do you have libiconv rpm installed ? It's a requirement for samba rpms. 

    I see testparm ( and libsmbconf.so ) has proper library search path set. 

    dump -Hov /opt/freeware/bin/testparm

                            ***Import File Strings***
    INDEX  PATH                          BASE                MEMBER
    0      /opt/freeware/lib/samba:/opt/freeware/lib:/usr/vac/lib:/usr/lib:/lib

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 4.  Re: cannot install Samba 4.10.6 on AIX 7.1TL5SP4

    Posted Tue December 10, 2019 05:01 AM

    Originally posted by: 5SRJ_c_b


    Thanks for your answer. 

    libiconf ist installed: 

    rpm -qa | grep iconv

    libiconv-1.14-2.ppc


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 5.  Re: cannot install Samba 4.10.6 on AIX 7.1TL5SP4

    Posted Tue December 10, 2019 05:25 AM

    Originally posted by: AyappanP


    Do you have LIBPATH exported ? 

    echo $LIBPATH 

    Share me the output of the below

    dump -Hov /opt/freeware/bin/testparm


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 6.  Re: cannot install Samba 4.10.6 on AIX 7.1TL5SP4

    Posted Wed December 11, 2019 05:04 AM

    Originally posted by: 5SRJ_c_b


    LIBPATH was indeed incorrectly set on the machine - Samba is now working (after correcting the links in  /etc/rc.d/rc2.d/ )

     

    But I still get the whichfs error - I also tried Edwards command:

     

    ODMDIR=/etc/objrepos LIBPATH=/opt/freeware/lib rpm --rebuilddb
    rpm_share: 0645-007 ATTENTION: whichfs() returned an unexpected result.
    rpm_share: 0645-007 ATTENTION: get_rpm_inst_root_list() returned an unexpected result.
    rpm_share: 0645-007 ATTENTION: update_inst_root() returned an unexpected result.

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 7.  Re: cannot install Samba 4.10.6 on AIX 7.1TL5SP4

    Posted Wed December 11, 2019 01:37 PM

    Originally posted by: Edward Davignon


    
    
    ODMDIR=/etc/objrepos LIBPATH=/opt/freeware/lib:/usr/lib rpm --rebuilddb -vv
    # LIBPATH for 32-bit
    # -vv for more verbose output
    
    

    #AIXOpenSource
    #AIX-Open-Source-Software


  • 8.  Re: cannot install Samba 4.10.6 on AIX 7.1TL5SP4

    Posted Wed December 11, 2019 01:50 PM

    Originally posted by: Edward Davignon


    You could also try:

    
    ODMDIR=/etc/objrepos LIBPATH=/opt/freeware/lib:/usr/lib rpm -Va --nofiles --nodigest -vv
    

    to see if it looks reasonable, or to compare it to another machine.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 9.  Re: cannot install Samba 4.10.6 on AIX 7.1TL5SP4

    Posted Thu December 12, 2019 03:05 AM

    Originally posted by: ejk


    I've copied below the shell script I made, from Samba update to 4.10.6 creates broken symbolic links thread that I used, when I fixed this symlink issue.

    cd /etc/rc.d/rc2.d && for i in winbindd nmbd smbd
    do
    for j in S K
    do
    ln -sf "../init.d/${i}" "${j}${i}"
    done
    done
    

    #AIXOpenSource
    #AIX-Open-Source-Software