Operating System - HP-UX
1827459 Members
3695 Online
109965 Solutions
New Discussion

Re: 64 bit lsof compiling

 
SOLVED
Go to solution
Richard Mertz
Regular Advisor

64 bit lsof compiling

I am running 11i 64 bit OS
I have installed the 64 bit version of gcc
I have installed gmake and binutils
When I try to gmake for lsof, I get the following:

/usr/local/pa20_64/bin/gcc -DHAS_CONST -DHPUXV=1111 -D_PSTAT64 +DD32 -DLSOF_ARC
H="9000/800" -DLSOF_VSTR="B.11.11" -O -c -o dvch.o dvch.c
gcc: cannot specify -o with -c or -S and multiple compilations
gmake[1]: *** [dvch.o] Error 1

Unfortunately, I am not a "c guy"

Any ideas?
What anybody thinks of me is none of my business.
11 REPLIES 11
Michael Tully
Honored Contributor

Re: 64 bit lsof compiling

Hi,

If your really having problems and get it sorted, why try and just get an already compiled version from the porting centre. Here is the link

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/

Michael
(Not a C person either)
Anyone for a Mutiny ?
Richard Mertz
Regular Advisor

Re: 64 bit lsof compiling

I would just use the depot, unfortunately, it only works on the 32 bit version of HP-UX.

Richard
What anybody thinks of me is none of my business.
H.Merijn Brand (procura
Honored Contributor

Re: 64 bit lsof compiling

I just build the latest, but with the /tmp version of the cache. +DD32 selects 32bit env.

gcc -mpa-risc-2-0 might help (check that option with gcc --help -v)

-mpa-risc-2-0 Generate PA2.0 code. This option requires binutils 2.10 or later

Should I make my 64bit build available to you?
Enjoy, Have FUN! H.Merijn
Tore_1
Regular Advisor

Re: 64 bit lsof compiling

The truth is out there. Actually somebody has
built a binary for 64 bit 11i, but i dont
remember where it is. However if you search this site(how?) for old articles you will find it.
Richard Mertz
Regular Advisor

Re: 64 bit lsof compiling

procura:

I would appreciate it if you made them available to me.

Richard
What anybody thinks of me is none of my business.
Richard Mertz
Regular Advisor

Re: 64 bit lsof compiling

I would still like to know why I can't compile lsof. What am I missing?

I have binutils 2.11.2 with the bin directory in my path.

I have 64 bit gcc installed

I can't figure out what I am doing wrong.

Richard
What anybody thinks of me is none of my business.
Alex Glennie
Honored Contributor

Re: 64 bit lsof compiling

see attached binary ... lifted off UKRC Programming support system running hpux 11.11

Unfortuantly they're all at lunch so not able to ask why the problems building it from scratch .....

looks like I can't post it do you have an email I can send it to .....
H.Merijn Brand (procura
Honored Contributor

Re: 64 bit lsof compiling

http://home.hccnet.nl/h.m.brand/lsof

# chmod 2555 lsof
Enjoy, Have FUN! H.Merijn
Richard Mertz
Regular Advisor

Re: 64 bit lsof compiling

Thanks guys:

email: rmertz@cityofevanston.org

Richard
What anybody thinks of me is none of my business.
H.Merijn Brand (procura
Honored Contributor

Re: 64 bit lsof compiling

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

All that you want from the official channels :)
Enjoy, Have FUN! H.Merijn
harry d brown jr
Honored Contributor
Solution

Re: 64 bit lsof compiling

Interesting, because I downloaded mine onto 11i 64bit and it works fine!


Here's the version info:

# /usr/local/bin/lsof -v
lsof version information:
revision: 4.57
latest revision: ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/
latest FAQ: ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/FAQ
latest man page: ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/lsof_man
configuration info: PSTAT-based
constructed: Tue Jul 17 08:28:49 PDT 2001
constructed by and on: abe@hpux
compiler: /bin/cc
compiler flags: -DHPUXV=1111 -D_PSTAT64 -Ae +DD32 -DLSOF_VSTR="B.11.11" -O
loader flags: -L./lib -llsof -lnsl
system info: HP-UX hpux B.11.11 U 9000/893 807805111 unlimited-user license
#


Here's a download site:
http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/binaries/hpux/B.11.11/

README file:
All lsof support for HP-UX 11.11 is PSTAT-based. (See the 00FAQ file in the lsof distribution for an explanation.) The lsof binary
mode is 32 bits, and it uses -D_PSTAT64 to acquire kernel information via pstat(2) in 64 bit mode.

Vic Abell
November 5, 2000

Live Free or Die