PATCH: login reporting (utmp?) problem on Linux

Garrick James garrick at james.net
Sat Jun 17 18:15:57 EST 2000


After quite a while trying to track down what was going wrong, I
discovered that the configure script is what is causing the problem.  The
tests that configure runs for checking for various struct members in
utmp.h do not work properly:

checking for struct sockaddr_in6... no
checking for struct in6_addr... no
checking for struct addrinfo... yes
checking for ut_host field in utmp.h... ossh_cv_utmp_h_has_ut_host
checking for ut_host field in utmpx.h... ossh_cv_utmpx_h_has_ut_host
checking for syslen field in utmpx.h... ossh_cv_utmpx_h_has_syslen
checking for ut_pid field in utmp.h... ossh_cv_utmp_h_has_ut_pid
checking for ut_type field in utmp.h... ossh_cv_utmp_h_has_ut_type
checking for ut_type field in utmpx.h... ossh_cv_utmpx_h_has_ut_type
checking for ut_tv field in utmp.h... ossh_cv_utmp_h_has_ut_tv
checking for ut_id field in utmp.h... ossh_cv_utmp_h_has_ut_id
checking for ut_addr field in utmp.h... ossh_cv_utmp_h_has_ut_addr
checking for ut_addr field in utmpx.h... ossh_cv_utmpx_h_has_ut_addr
checking for ut_addr_v6 field in utmp.h... ossh_cv_utmp_h_has_ut_addr_v6
checking for ut_addr_v6 field in utmpx.h... ossh_cv_utmpx_h_has_ut_addr_v6
checking for ut_exit field in utmp.h... ossh_cv_utmp_h_has_ut_exit
checking for ut_time field in utmp.h... ossh_cv_utmp_h_has_ut_time
checking for ut_time field in utmpx.h... ossh_cv_utmpx_h_has_ut_time
checking for ut_tv field in utmpx.h... ossh_cv_utmpx_h_has_ut_tv
checking for ss_family field in struct sockaddr_storage... no
checking for __ss_family field in struct sockaddr_storage... no
checking if libc defines __progname... yes

All those ossh_cv_SOMTHING-OR-OTHERs should all be simple "yes"es or
"no"s.  As a result, a number of #defines never get set in config.h.

Anyway, to fix the problem apply the following patch and run autoreconf
before running configure.  I hope this doesn't break configure for other
platforms, though...  :-)

Thanks, Emily, for responding and letting me know I wasn't the only one
with the problem!

-Garrick James



--------- cut here -----------
*** aclocal.m4.orig	Sat Jun 17 00:11:58 2000
--- aclocal.m4	Sat Jun 17 00:34:33 2000
***************
*** 22,28 ****
  			eval "$ossh_varname=no" dnl
  		]) dnl
  	])
! 	ossh_result=`eval "echo "$"$ossh_varname"`
  	if test -n "`echo $ossh_varname`"; then
  		AC_MSG_RESULT($ossh_result)
  		if test "x$ossh_result" = "xyes"; then
--- 22,28 ----
  			eval "$ossh_varname=no" dnl
  		]) dnl
  	])
! 	ossh_result=`eval 'echo $'"$ossh_varname"`
  	if test -n "`echo $ossh_varname`"; then
  		AC_MSG_RESULT($ossh_result)
  		if test "x$ossh_result" = "xyes"; then






More information about the openssh-unix-dev mailing list