lsof 4.74 fails to compile on AIX 5.3 ( 64 bit )

From: Amit Singh (
Date: 02/23/05

Date: 22 Feb 2005 23:27:16 -0800

Hi All,
I downloaded lsof 4.74 from
and tried to compile it on AIX 5.3 ( 64 bit ) machine but it failed
with some compilation errors.

The configuration claims that lsof 4.74 has been tested for AIX 5.3.
See below

# ./Configure -d
lsof 4.74 has been *tested* on these UNIX dialect versions:
        AIX 5.[123]
        Apple Darwin 6.x and 7.x for Power Macintosh systems
        BSDI BSD/OS 4.3.1 for x86-based systems
        DEC OSF/1, Digital UNIX, Tru64 UNIX 4.0, and 5.1
        FreeBSD 4.[2-9], 4.1[01], 5.[012] and 6.0 for x86-based systems
        FreeBSD 5.[012] and 6.0 for Alpha, AMD64 and Sparc64 based
        HP-UX 11.00 and 11.11
        Linux 2.1.72 and above for x86-based systems
        NetBSD 1.[456] and 2.x for Alpha, x86, and SPARC-based systems
        NEXTSTEP 3.[13] for NEXTSTEP architectures
        OpenBSD 2.[89] and 3.[0123456] for x86-based systems
        OPENSTEP 4.x
        Caldera OpenUNIX 8
        SCO OpenServer Release 5.0.6 for x86-based systems
        SCO|Caldera UnixWare 7.1.4 for x86-based systems
        Solaris 2.6, 8, 9 and 10
Although 4.74 hasn't been tested on other versions of these dialects,
it may work. Try `Configure <dialect>` and `make` to see.

# ./Configure aixgcc

The configuration succeeded smoothly.


In file included from /usr/include/procinfo.h:49,
                 from ../dlsof.h:70,
                 from ../lsof.h:183,
                 from dvch.c:43:
/usr/include/sys/user.h:385: parse error before `uinfo_t'
/usr/include/sys/user.h:385: warning: no semicolon at end of struct or
/usr/include/sys/user.h:386: warning: data definition has no type or
storage class
/usr/include/sys/user.h:559: parse error before `}'
/usr/include/sys/user.h:640: field `ub_user' has incomplete type
/usr/include/sys/user.h:641: sizeof applied to an incomplete type
make: 1254-004 The error code from the last command is 1.

make: 1254-004 The error code from the last command is 2.

Could anyone tell the reason for the failure of make and the above
errors ?