Operating System - HP-UX
1837079 Members
2305 Online
110112 Solutions
New Discussion

lsof on (RISC) HP-UX 11.23

 
SOLVED
Go to solution
Mike Ingram_1
Frequent Advisor

lsof on (RISC) HP-UX 11.23

Hi,

I have a new RP8420 and want to load lsof on it, but am unable to locate a binary for it.
So I downloaded the source and attempted to compile it, but there is a compilation error.

Could anyone direct me to the lsof binary for 11.23 or alternatively assist with the compile error?

The error is:
(cd lib; make DEBUG="-O" CFGF="-DHAS_CONST -DHPUXV=1123 -D_PSTAT64 -DHASIPv6 -DLSOF_VSTR=\"B.11.23\"")
ar cr liblsof.a ckkv.o cvfs.o dvch.o fino.o isfn.o lkud.o pdvn.o prfp.o ptti.o rdev.o regex.o rmnt.o rnam.o rnch.o rnmh.o snpf.o
/usr/local/bin/gcc -DHAS_CONST -DHPUXV=1123 -D_PSTAT64 -DHASIPv6 -DLSOF_VSTR=\"B.11.23\" -O -c print.c
print.c: In function 'fill_portmap':
print.c:228: error: dereferencing pointer to incomplete type
print.c:228: error: dereferencing pointer to incomplete type
print.c:229: error: dereferencing pointer to incomplete type
*** Error exit code 1


print.c:
224 * Save the registration name or number.
225 */
226 cp = (char *)NULL;
227 if ((r = (struct rpcent *)getrpcbynumber(p->pml_map.pm_prog)
)) {
228 if (r->r_name && strlen(r->r_name))
229 cp = r->r_name;
230 }
231 if (!cp) {
232 (void) snpf(buf, sizeof(buf), "%lu",
233 (unsigned long)p->pml_map.pm_prog);
234 cp = buf;
235 }
236 if (!strlen(cp))
237 continue;


Many thanks,

Mike.
4 REPLIES 4
Arunvijai_4
Honored Contributor
Solution

Re: lsof on (RISC) HP-UX 11.23

Hi Mike,

Here is it, 4.76 RISC version for 11.23

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.76/

http://hpux.connect.org.uk/ftp/hpux/Sysadmin/lsof-4.76/lsof-4.76-hppa-11.23.depot.gz

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Arunvijai_4
Honored Contributor

Re: lsof on (RISC) HP-UX 11.23

Mike,

If you want to compile your own "lsof", here is a Readme for Installation.. Pay attention to files changed

http://hpux.connect.org.uk/hppd/cgi-bin/wwwtar?/hpux/Sysadmin/lsof-4.76/lsof-4.76-src-11.11.tar.gz+lsof-4.76/HPUX.Install+text

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: lsof on (RISC) HP-UX 11.23

You can get pre-compiled binaries in depot format from,

http://hpux.cs.utah.edu/hppd/cgi-bin/search?package=on&description=on&term=lsof

Two versions are available there.

See more informations from it's HOME url as,

ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/

--
Muthu

Easy to suggest when don't know about the problem!
Mike Ingram_1
Frequent Advisor

Re: lsof on (RISC) HP-UX 11.23

Many thanks guys.
I have downloaded the binary and it is working.
My google searches unfortunately did not pick up these sites, so I have now bookmarked them!