Thanks to :-
R. Kevin Oberman
Richard Bemrose
Reg Beardsley
Vic Abell
Joel Gallun
for replying.
Richard and Kevin pointed me in the right direction to get a
precompiled version of lsof from
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof
and Richard sent me a copy of an older version.
Reg suggested adding the -std as a compiler option.
Kevin has in fact built a copy of lsof on a DU4.0d (patch kit 2) machine.
This is what we are running.
Now the odd bit - I had been attempting the make on an Alphaserver 1000 4/233 (4.0d + pk2)
(4.0d + pk2) on which it was failing.
I tried it on one of our Alphastation 250 4/266 and hey presto it compiles without
a problem (with -std or not)
The answer to this comes from Vic Abell who wrote :-
>I think you are trying to compile lsof on a system without an rpcent
>struct definition where lsof expects to find it, in <rpc/netdb.h>.
>The answer to this problem can be found in section 3.20 of the lsof
>00FAQ file -- that it's likely someone has allowed a BIND installation
>to over-write DU header files, and the rpcent structure definition
>has been lost in the process. BIND header file installations often
>overwrite netdb.h.
>Please look for a header file that defines the rpcent struct. If
>you find none, then the BIND replacement is the most likely
>explanation. If you find one, but not in <rpc/netdb.h>, let me
>know and we'll explore together why the definition isn't in the
>expected place.
Our Alphaserver has had a newer version of BIND installed
Thanks to everyone
John
---------------------------------------------------------------------
John Files Senior Systems Engineer (UNIX Group)
Faculty of Computing Sciences
and Engineering Tel: 0116-2551551 ext 8475
De Montfort University Fax: 0116-254 1891
The Gateway e-mail: jhf_at_dmu.ac.uk
Leicester LE1 9BH
England
---------------------------------------------------------------------
Received on Fri Jan 15 1999 - 16:57:32 NZDT