Article View: gnu.utils.bug
Article #917Re: finger-1.36 minor bug on hpux
From: Minh Tran-Le
Date: Wed, 14 Oct 1992 17:15
Date: Wed, 14 Oct 1992 17:15
68 lines
2747 bytes
2747 bytes
neal@ctd.COMsat.COM (Neal Becker) writes:
>Thanks for finger-1.36! Installation was a lot easier than 1.35. One
>minor problem:
>On hpux 8.07 finger shows entries for terminal "co" (console, I guess)
>which all show idle time of 24 years! Anyone know why?
Oops, I posted a fix for the wrong problem the last time. The problem
is really in the `configure' script:
1) to check if the utmp.h defines a structure that contains ut_host
you need first to include <sys/types.h> otherwise just including
<utmp.h> on the hpux will fail because there is no typedef for
pid_t.
2) to check if a machine has a /dev/console, you need to use test -c
instead of test -f
Here is a diff of my changes to the configure script:
Minh Tran-Le
---------------------------------------------------------------------------
--- configure- Wed Oct 14 10:22:56 1992
+++ configure Wed Oct 14 10:21:12 1992
@@ -491,5 +491,6 @@
echo checking for ut_host in struct utmp
-echo "#include <utmp.h>
+echo "#include <sys/types.h>
+#include <utmp.h>
main() { exit(0); } t() { struct utmp ut; ut.ut_host; }" > conftest.c
if eval $compile; then
@@ -1024,5 +1025,5 @@
echo checking for /dev/console
- if test -f /dev/console; then DEFS="$DEFS -DHAVE_DEV_CONSOLE=1" ; fi
+ if test -c /dev/console; then DEFS="$DEFS -DHAVE_DEV_CONSOLE=1" ; fi
@@ -1029,5 +1030,5 @@
echo checking for /dev/kbd
- if test -f /dev/kbd ; then DEFS="$DEFS -DHAVE_DEV_KBD=1" ; fi
+ if test -c /dev/kbd ; then DEFS="$DEFS -DHAVE_DEV_KBD=1" ; fi
@@ -1034,5 +1035,5 @@
echo checking for /dev/keyboard
- if test -f /dev/keyboard ; then DEFS="$DEFS -DHAVE_DEV_KEYBOARD=1" ; fi
+ if test -c /dev/keyboard ; then DEFS="$DEFS -DHAVE_DEV_KEYBOARD=1" ; fi
@@ -1039,5 +1040,5 @@
echo checking for /dev/mouse
- if test -f /dev/mouse ; then DEFS="$DEFS -DHAVE_DEV_MOUSE=1" ; fi
+ if test -c /dev/mouse ; then DEFS="$DEFS -DHAVE_DEV_MOUSE=1" ; fi
@@ -1044,5 +1045,5 @@
echo checking for /dev/smf
- if test -f /dev/smf ; then DEFS="$DEFS -DHAVE_DEV_SMF=1" ; fi
+ if test -c /dev/smf ; then DEFS="$DEFS -DHAVE_DEV_SMF=1" ; fi
Technical Details
Message-ID:
<mtranle.719082937@paris>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!icmv.UUCP!mtranle%parisReferences:
<9210130933.aa07832@louie.udel.edu>Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!icmv.UUCP!mtranle%paris From: mtranle%paris@icmv.UUCP (Minh Tran-Le) Subject: Re: finger-1.36 minor bug on hpux Message-ID: <mtranle.719082937@paris> Sender: gnulists@ai.mit.edu Reply-To: icmv!tranle%caliph@uunet.uu.net Organization: IntelliCorp Inc. References: <9210130933.aa07832@louie.udel.edu> Distribution: gnu Date: Wed, 14 Oct 1992 17:15:37 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 70