Operating System - HP-UX
1837262 Members
2426 Online
110115 Solutions
New Discussion

Re: lsof was built for a 32 bit kernel but this is a 64 bit kernel

 
SOLVED
Go to solution
Jdamian
Respected Contributor

lsof was built for a 32 bit kernel but this is a 64 bit kernel

Hi

Every depot of 'lsof' downloaded from HP-UX Porting Centre reports the same error mesage when running lsof command:

# /usr/local/bin/lsof
lsof: FATAL: lsof was built for a 32 bit kernel, but this
is a 64 bit kernel


# getconf KERNEL_BITS
64

Where can I get lsof for 64 bit ?

6 REPLIES 6
Pete Randall
Outstanding Contributor
Solution

Re: lsof was built for a 32 bit kernel but this is a 64 bit kernel

Karthik S S
Honored Contributor

Re: lsof was built for a 32 bit kernel but this is a 64 bit kernel

Did you try this?

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

If it didn't work better you complile it from the source,

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

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Pete Randall
Outstanding Contributor

Re: lsof was built for a 32 bit kernel but this is a 64 bit kernel

Matti_Kurkela
Honored Contributor

Re: lsof was built for a 32 bit kernel but this is a 64 bit kernel

Download the source package and compile it. Lsof can be compiled even with HP-UX's default compiler (cc). In fact, it is recommended that lsof should always be built from source at the machine it will be used on.

The source package at the Porting Archive is named "lsof-470-ss-11.00.tar.gz" but I just compiled it successfully on 64-bit 10.20 with no GCC nor GNU make. After extracting the package, the necessary commands were

./Configure hpux
make

and I got a working lsof binary.
MK
Jdamian
Respected Contributor

Re: lsof was built for a 32 bit kernel but this is a 64 bit kernel

I downloaded source files but configure reports an Q4 error.
rick jones
Honored Contributor

Re: lsof was built for a 32 bit kernel but this is a 64 bit kernel

Matti - I suspect you had a typo - there is no such thing as a 64-bit 10.20 kernel. HP-UX 10.20 was strictly a 32-bit (addressing) kernel. There was a now-obsolete 11.20 kernel on IPF that was 64-bit only.
there is no rest for the wicked yet the virtuous have no pillows