There are two bugs here:
1) Somehow include/sys/xmem.h is being included.
This file contains a #define of rem_addr.
rem_addr is used within the netcat source causing
the compile to fail. I'm not sure why xmem.h is
coming in, but it would probably be easier to
change all of the rem_addr's to something else.
2) The source contains calls to getsockname() in
udphelper.c and core.c . The third parameter is
causing compile errors. Specifically, the only
portable data type for this parameter is socklen_t *.
You can't just specify int * or size_t * or whatever!
This can be tricky, because you have to define
socklen_t *ONLY* if it is not provided by the
current environment. Hopefully newer autoconfs
will provide a reasonable value.
Just FYI, AIX51 defined the 3rd parameter as int *;
AIX52 as size_t *; and AIX53 as socklen_t *. On most
AIX boxes, size_t and int are different lengths.
Logged In: YES
user_id=1625208
In case point (2) above was unclear. The problem is that
the getsockname() calls contain a third parameter &foo,
where foo is not of socklen_t.