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.  please fix lsof

    Posted Tue November 28, 2023 11:44 AM

    Hi,

    I am getting this with lsof on AIX 7.3:

    [root@crilssa1 ~]# lsof /projects
    lsof: WARNING: compiled for AIX version 7.2.0.0; this is 7.3.0.0.
    [root@crilssa1 ~]#

    The LPAR in question is AIX 7300-01-02-2320 and lsof is the latest.  This seems to be a perineal problem with lsof.  Can someone please put a version on the MRS site that doesn't do this?  It's an annoying time-waster.  Thanks.

    Mike



    ------------------------------
    Michael Metts
    ------------------------------

    #AIXOpenSource


  • 2.  RE: please fix lsof

    Posted yesterday

    Hi,

    Thanks for posting your concern.

    This is expected and harmless. It does not indicate any problem with the fix or the binary. Let me explain why it appears:-

    This warning comes from a build-time flag which is set in the lsof Makefile during compilation. Since we are compiling it in 7.2 system, we are getting this warning. But this version compilation is supported For AIX 7.3 as well.

    We can suppress this warning using "-w" as shown below :

    # /usr/sbin/lsof -w /testfs/testfile. -------> warning suppressed

    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

    sleep 7340336 root 0r VREG 39,1 9 4 /testfs/testfile

    ksh 10223990 root 0r VREG 39,1 9 4 /testfs/testfile

    Thanks !



    ------------------------------
    Santanu Pandey
    ------------------------------