<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: About lsof in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555573#M886879</link>
    <description>Check whether the current working directory has the file  lib/liblsof.a !&lt;BR /&gt;&lt;BR /&gt;$ll lib/liblsof.a&lt;BR /&gt;&lt;BR /&gt;Note : you should go to the lsof-4.55 directory and run Configure&lt;BR /&gt;&lt;BR /&gt;$cd /home/user/lsof-4.55&lt;BR /&gt;$./Configure hpux</description>
    <pubDate>Mon, 23 Jul 2001 08:16:51 GMT</pubDate>
    <dc:creator>Frank Li</dc:creator>
    <dc:date>2001-07-23T08:16:51Z</dc:date>
    <item>
      <title>About lsof</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555570#M886876</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have downloaded the lsof 4.55 source code and want to compile in my machine as my system runs 64bit HP-UX 11.0.&lt;BR /&gt;However, it comes out the following error and the installation failed. Does anyone know what was happening ? Am I missing some environment variable ?&lt;BR /&gt;&lt;BR /&gt;root@hp01:/ *) ./Configure hpux&lt;BR /&gt;Configuring /dev/kmem-based HP-UX lsof&lt;BR /&gt;&lt;BR /&gt;*****************************************&lt;BR /&gt;*                                       *&lt;BR /&gt;* NOTICE!  Configuring for 64 bit HP-UX *&lt;BR /&gt;*                                       *&lt;BR /&gt;*****************************************&lt;BR /&gt;&lt;BR /&gt;Looking for ipis_s with /usr/contrib/bin/q4 ...&lt;BR /&gt;&lt;BR /&gt;!!!ERROR!!! /usr/contrib/bin/q4 failed and produced the following output.&lt;BR /&gt;&lt;BR /&gt;q4: (warning) no modules in the crashdump or no INDEX file&lt;BR /&gt;nm: invalid option -- h&lt;BR /&gt;Usage: nm [-aABCDglnopPrsuvV] [-t radix] [--radix=radix] [--target=bfdname]&lt;BR /&gt;       [--debug-syms] [--extern-only] [--print-armap] [--print-file-name]&lt;BR /&gt;       [--numeric-sort] [--no-sort] [--reverse-sort] [--size-sort]&lt;BR /&gt;       [--undefined-only] [--portability] [-f {bsd,sysv,posix}]&lt;BR /&gt;       [--format={bsd,sysv,posix}] [--demangle] [--no-demangle] [--dynamic]&lt;BR /&gt;       [--defined-only] [--line-numbers]&lt;BR /&gt;       [--version] [--help]&lt;BR /&gt;       [file...]&lt;BR /&gt;nm: supported targets: som srec symbolsrec tekhex binary ihex hpux-core&lt;BR /&gt;q4: (error) nm command exited, but not cleanly (status==0x100)&lt;BR /&gt;&lt;BR /&gt;!!!ERROR!!!     !!!ERROR!!!     !!!ERROR!!!     !!!ERROR!!!&lt;BR /&gt;Configure can't use /usr/contrib/bin/q4 to examine the ipis_s&lt;BR /&gt;structure.  You must do that yourself, report the result in&lt;BR /&gt;the HPUX_IPC_S_PATCH environment variable, then repeat the&lt;BR /&gt;Configure step.  Consult the Configure script's use of&lt;BR /&gt;/usr/contrib/bin/q4 and the 00XCONFIG file for information&lt;BR /&gt;on ipis_s testing and the setting of HPUX_IPC_S_PATCH.&lt;BR /&gt;!!!ERROR!!!     !!!ERROR!!!     !!!ERROR!!!     !!!ERROR!!!&lt;BR /&gt;&lt;BR /&gt;root@hp01:/ *) echo $HPUX_IPC_S_PATCH&lt;BR /&gt;sh: HPUX_IPC_S_PATCH: Parameter not set.&lt;BR /&gt;root@hp01:/ *) echo $ipis_s&lt;BR /&gt;sh: ipis_s: Parameter not set.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patrick</description>
      <pubDate>Mon, 23 Jul 2001 05:17:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555570#M886876</guid>
      <dc:creator>Patrick Chim</dc:creator>
      <dc:date>2001-07-23T05:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: About lsof</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555571#M886877</link>
      <description>Check out the file Configure.cln of the lsof package and search for "q4". You will find the test that is done by the configure script to set the environment variable HPUX_IPC_S_PATCH. &lt;BR /&gt;&lt;BR /&gt;The 00FAQ file gives more info: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;9.2.6 Why does Configure complain about q4 for /dev/kmem-based lsof&lt;BR /&gt; for HP-UX 11?&lt;BR /&gt;&lt;BR /&gt; When you run Configure on an HP-UX 11 system, it may complain:&lt;BR /&gt;&lt;BR /&gt;   !!!ERROR!!!     !!!ERROR!!!     !!!ERROR!!!     !!!ERROR!!!&lt;BR /&gt;   Configure can't use /usr/contrib/bin/q4 to examine the ipis_s&lt;BR /&gt;   structure.  You must do that yourself, report the result in&lt;BR /&gt;   the HPUX_IPC_S_PATCH environment variable, then repeat the&lt;BR /&gt;   Configure step.  Consult the Configure script's use of&lt;BR /&gt;   /usr/contrib/bin/q4 and the 00XCONFIG file for information&lt;BR /&gt;   on ipis_s testing and the setting of HPUX_IPC_S_PATCH.&lt;BR /&gt;   !!!ERROR!!!     !!!ERROR!!!     !!!ERROR!!!     !!!ERROR!!!&lt;BR /&gt;&lt;BR /&gt; This message states that Configure cannot use q4 from&lt;BR /&gt; /usr/contrib/bin to examine the kernel's boot image for&lt;BR /&gt; the ipis_s structure.  That structure was introduced in&lt;BR /&gt; early 1999.  Patch bundle B.11.00.43 and patches PHNE_20008&lt;BR /&gt; and PHNE_20735 appear to be responsible for ipis_s.&lt;BR /&gt;&lt;BR /&gt; Note: q4 may also fail if it can't execute nm -- e.g., it&lt;BR /&gt; can't find /usr/bin/nm, or you have a conflicting, private&lt;BR /&gt; version of nm earlier in your path.&lt;BR /&gt;&lt;BR /&gt; The ipis_s structure isn't described in any header file&lt;BR /&gt; HP-UX releases with HP-UX 11.  It appears in the private&lt;BR /&gt; lsof header file .../dialects/hpux/kmem/hpux11/ipc_s.h.&lt;BR /&gt; I had to create ipc_s.h during the lsof port to HP-UX 11&lt;BR /&gt; by using q4.  Lsof gets local and remote connection addresses&lt;BR /&gt; (IP and port numbers) from ipc_s, so an incorrect ipc_s&lt;BR /&gt; definition will cause incorrect reporting of TCP/IP connection&lt;BR /&gt; addresses.&lt;BR /&gt;&lt;BR /&gt; Over the long run -- e.g., after the current patch has been&lt;BR /&gt; replaced by yet another one -- using q4 is the most reliable&lt;BR /&gt; way to tell if ipis_s exists and what it contains.&lt;BR /&gt;&lt;BR /&gt; Unfortunately, q4 needs to be installed in /usr/contrib/bin&lt;BR /&gt; and the kernel boot image, /stand/vmunix, needs to be&lt;BR /&gt; processed with pxdb.  If either is untrue, lsof issues the&lt;BR /&gt; above error message, perhaps preceded by q4 messages.  For&lt;BR /&gt; example, if /stand/vmunix hasn't been processed by pxdb,&lt;BR /&gt; the q4 messages will include:&lt;BR /&gt;&lt;BR /&gt;     q4: (error) vmunix not pxdb'd&lt;BR /&gt; or&lt;BR /&gt;     q4: (warning) /stand/vmunix has not been processed by pxdb.&lt;BR /&gt;&lt;BR /&gt; To be able to complete HP-UX configuration of lsof, you&lt;BR /&gt; must determine if the ipis_s structure is defined in your&lt;BR /&gt; kernel, if the ipis_s structure of your kernel has an&lt;BR /&gt; ipis_msgsqueued member, and if the ipc_s structure of your&lt;BR /&gt; kernel uses has an ipc_ipis member.  That means you may&lt;BR /&gt; have to process /stand/vmunix with pxdp, and perhaps install&lt;BR /&gt; q4 and run it on /stand/vmunix.&lt;BR /&gt;&lt;BR /&gt; If you must run q4 to determine the state of ipis_s and&lt;BR /&gt; ipc_s, use these q4 commands:&lt;BR /&gt;&lt;BR /&gt;     $ /usr/contrib/bin/q4 /stand/vmunix&lt;BR /&gt;     ...&lt;BR /&gt;     q4&amp;gt; fields -c struct ipis_s&lt;BR /&gt;     ...&lt;BR /&gt;     q4&amp;gt; fields -c struct ipc_s&lt;BR /&gt;&lt;BR /&gt; Look in the q4 output for the ipc_ipis member of the ipc_s&lt;BR /&gt; structure, and look in the ipis_s structure for the&lt;BR /&gt; ipis_msgsqueued member.  If ipc_s has ipc_ipis but ipis_s&lt;BR /&gt; lacks ipis_msgsqueued, set HPUX_IPC_S_PATCH environment&lt;BR /&gt; variable to "1".  If ipc_s has ipc_ipis and ipis_s has&lt;BR /&gt; ipis_msgsqueued, set HPUX_IPC_S_PATCH to "2" -- e.g.,&lt;BR /&gt;&lt;BR /&gt;     $ HPUX_IPC_S_PATCH=1 Configure -n hpux&lt;BR /&gt;   or&lt;BR /&gt;     $ HPUX_IPC_S_PATCH=2 Configure -n hpux&lt;BR /&gt;   or&lt;BR /&gt;     % setenv HPUX_IPC_S_PATCH 1&lt;BR /&gt;     % Configure -n hpux&lt;BR /&gt;   or&lt;BR /&gt;     % setenv HPUX_IPC_S_PATCH 2&lt;BR /&gt;     % Configure -n hpux&lt;BR /&gt;&lt;BR /&gt; (Use setenv if your shell is csh.)&lt;BR /&gt;&lt;BR /&gt; If ipc_s has no ipc_ipis member, set HPUX_IPC_S_PATCH&lt;BR /&gt; to "N" -- e.g., use this Configure step:&lt;BR /&gt;&lt;BR /&gt;     $ HPUX_IPC_S_PATCH=N Configure -n hpux&lt;BR /&gt; or&lt;BR /&gt;     % setenv HPUX_IPC_S_PATCH N&lt;BR /&gt;     % Configure -n hpux&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Carsten</description>
      <pubDate>Mon, 23 Jul 2001 05:36:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555571#M886877</guid>
      <dc:creator>Carsten Krege</dc:creator>
      <dc:date>2001-07-23T05:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: About lsof</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555572#M886878</link>
      <description>Carsten,&lt;BR /&gt;&lt;BR /&gt;The previous part is ok but I encounter the following error&lt;BR /&gt;&lt;BR /&gt;/bin/cc  -Ae -DHPUXV=1100 -DHASVXFS -DHPUXKERNBITS=64 -I/tempdir/swbackup/lsof-4.55/dialects/hpux/kmem/hpux11 +DD64 -I/tempdir/swbac&lt;BR /&gt;kup/lsof-4.55/dialects/hpux/kmem -DLSOF_VSTR=\"B.11.00\"  -O  -c proc.c&lt;BR /&gt;/bin/cc  -Ae -DHPUXV=1100 -DHASVXFS -DHPUXKERNBITS=64 -I/tempdir/swbackup/lsof-4.55/dialects/hpux/kmem/hpux11 +DD64 -I/tempdir/swbac&lt;BR /&gt;kup/lsof-4.55/dialects/hpux/kmem -DLSOF_VSTR=\"B.11.00\"  -O  -c store.c&lt;BR /&gt;Constructing version.h&lt;BR /&gt;/bin/cc  -Ae -DHPUXV=1100 -DHASVXFS -DHPUXKERNBITS=64 -I/tempdir/swbackup/lsof-4.55/dialects/hpux/kmem/hpux11 +DD64 -I/tempdir/swbac&lt;BR /&gt;kup/lsof-4.55/dialects/hpux/kmem -DLSOF_VSTR=\"B.11.00\"  -O  -c usage.c&lt;BR /&gt;/bin/cc -o lsof  -Ae -DHPUXV=1100 -DHASVXFS -DHPUXKERNBITS=64 -I/tempdir/swbackup/lsof-4.55/dialects/hpux/kmem/hpux11 +DD64 -I/tempd&lt;BR /&gt;ir/swbackup/lsof-4.55/dialects/hpux/kmem -DLSOF_VSTR=\"B.11.00\"  -O dfile.o dmnt.o dnode.o dnode1.o dnode2.o dproc.o dsock.o  dstor&lt;BR /&gt;e.o  arg.o main.o misc.o node.o print.o proc.o store.o usage.o -L./lib -llsof  -lelf -lnsl&lt;BR /&gt;ld: Missing library symbol table in ./lib/liblsof.a&lt;BR /&gt;Fatal error.&lt;BR /&gt;*** Error code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;&lt;BR /&gt;Do you know what is the problem ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patrick</description>
      <pubDate>Mon, 23 Jul 2001 07:52:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555572#M886878</guid>
      <dc:creator>Patrick Chim</dc:creator>
      <dc:date>2001-07-23T07:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: About lsof</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555573#M886879</link>
      <description>Check whether the current working directory has the file  lib/liblsof.a !&lt;BR /&gt;&lt;BR /&gt;$ll lib/liblsof.a&lt;BR /&gt;&lt;BR /&gt;Note : you should go to the lsof-4.55 directory and run Configure&lt;BR /&gt;&lt;BR /&gt;$cd /home/user/lsof-4.55&lt;BR /&gt;$./Configure hpux</description>
      <pubDate>Mon, 23 Jul 2001 08:16:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555573#M886879</guid>
      <dc:creator>Frank Li</dc:creator>
      <dc:date>2001-07-23T08:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: About lsof</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555574#M886880</link>
      <description>may be this is a stupid answer that&lt;BR /&gt;are you sure that you got 64 bits version of lsof ?</description>
      <pubDate>Mon, 23 Jul 2001 08:21:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555574#M886880</guid>
      <dc:creator>Printaporn_1</dc:creator>
      <dc:date>2001-07-23T08:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: About lsof</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555575#M886881</link>
      <description>I tried to build it myself and it worked in all different flavours (HPUX_IPC_S_PATCH=N,1,2). If you post your email address and your HPUX_IPC_S_PATCH value, I can send you the version that you need. &lt;BR /&gt;&lt;BR /&gt;I did noting else, but&lt;BR /&gt;&lt;BR /&gt;# cd /tmp/lsof-4.55&lt;BR /&gt;# ./Configure hpux&lt;BR /&gt;# make&lt;BR /&gt;&lt;BR /&gt;Carsten</description>
      <pubDate>Mon, 23 Jul 2001 09:42:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555575#M886881</guid>
      <dc:creator>Carsten Krege</dc:creator>
      <dc:date>2001-07-23T09:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: About lsof</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555576#M886882</link>
      <description>hi all,&lt;BR /&gt;&lt;BR /&gt;I have corrected the mistake and can compile the lsof successfully.&lt;BR /&gt;&lt;BR /&gt;Previous someone has installed other version of make, nm, ranlib, ... in /usr/local/bin and so cause the error.&lt;BR /&gt;&lt;BR /&gt;I remove the linkage and compile OK then.&lt;BR /&gt;&lt;BR /&gt;Sorry for any inconvience cause but I really appreciate for all your help.&lt;BR /&gt;&lt;BR /&gt;Patrick</description>
      <pubDate>Tue, 24 Jul 2001 01:22:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-lsof/m-p/2555576#M886882</guid>
      <dc:creator>Patrick Chim</dc:creator>
      <dc:date>2001-07-24T01:22:10Z</dc:date>
    </item>
  </channel>
</rss>

