Operating System - HP-UX
1833144 Members
3244 Online
110051 Solutions
New Discussion

Re: error running 32 bit app on 64 bit OS

 
SOLVED
Go to solution
Kim Kendall
Regular Advisor

error running 32 bit app on 64 bit OS

Just built a new 11.11 system.

Installed the latest version of lsof, but when I try to run it, I get the error:

#./lsof
lsof: WARNING: compiled for HP-UX release B.11.00; this is B.11.11.
lsof: FATAL: lsof was built for a 32 bit kernel, but this
is a 64 bit kernel.

Any idea why it wont run a 32 bit app? I understand that the 64 bit OS is "supposed" to be backward compatible.
6 REPLIES 6
Navin Bhat_2
Trusted Contributor
Solution

Re: error running 32 bit app on 64 bit OS

That is because probably lsof was built on a PA 1.1 and not a PA 2.0 32 bit system and compiled with 32 bit options.
Navin Bhat_2
Trusted Contributor

Re: error running 32 bit app on 64 bit OS

Bill Hassell
Honored Contributor

Re: error running 32 bit app on 64 bit OS

lsof is a VERY big exception to 32bit app compatibility. The reason is that lsof needs deeply imbedded structures and highly unique values in the kernel to track down all the special files (including directories, network sockets, NFS, etc). Think of lsof as a kernel process. 64bit HP-UX handles internal values differently between 64bit and 32bit. lsof did not originally work on 64bit HP-UX due to all the changes, and early versions that did work required compiling/linking on the actual opsystem--lsof 64bits was not always portable between 64bit systems.


Bill Hassell, sysadmin
Joseph Loo
Honored Contributor

Re: error running 32 bit app on 64 bit OS

hi,

i got mine working on a 64-bit machine running HP-UX 11.11. However, i install the one meant for 11.00 but it works like a charm:

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

# gunzip -d /tmp/lsof-4.70-sd-11.00.depot.gz
# swinstall -s /tmp/lsof-4.70-sd-11.00.depot

regards.
what you do not see does not mean you should not believe
Kim Kendall
Regular Advisor

Re: error running 32 bit app on 64 bit OS

FYI - I downloaded the source and compiled my own. I have a working binary now. Thx.
Kim Kendall
Regular Advisor

Re: error running 32 bit app on 64 bit OS

P.S. to Joseph... I could install it, too. But it wouldn't run.