Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Matthias Welwarsky <dg2fef@afthd.tu-darmstadt.de>
To: Helmut Katzgraber <dummkopf@debussy.ucsc.edu>
Subject: Re: ssh-2.0.11 on RH 6.0
Date: 1999/05/30	[thread overview]
Message-ID: <3750F275.F2FDF70B@afthd.tu-darmstadt.de> (raw)
In-Reply-To: 374EE276.EEF68EE4@debussy.ucsc.edu

Helmut Katzgraber wrote:
> 
> has anybody tried to compile ssh-2.0.11 on rh 6.0? it does not work any
> longer (used to with rh 5.x)
> 
> here some output:
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I. -I. -I../.. -I../..
> -I../sshutil -I./../sshutil  -g -Wall -c wtmp.c
> wtmp.c: In function `ssh_user_record_login':
> wtmp.c:376: warning: flag `0' used with type `s'
> wtmp.c:380: warning: flag `0' used with type `s'
> wtmp.c:405: structure has no member named `ut_syslen'
> wtmp.c:406: structure has no member named `e_termination'
> wtmp.c:407: structure has no member named `e_exit'
> wtmp.c:419: warning: implicit declaration of function `updwtmpx'
> wtmp.c:419: `WTMPX_FILE' undeclared (first use in this function)
> wtmp.c:419: (Each undeclared identifier is reported only once
> wtmp.c:419: for each function it appears in.)

Check this: 
You need to set -D_GNU_SOURCE when compiling, otherwise utmpx has no
e_termination or e_exit member. GLIBC funnies. 

Concerning "ut_syslen": "configure" checks for ut_syslen in utmpx and
#defines HAVE_SYSLEN_IN_UTMPX, and its use is guarded by an #ifdef/endif
bracket within the source. But as of ssh-1.2.26 theres an extra access
to ut_syslen outside such a bracket and thus the compiler bailes out.
Here's a patch against login.c from ssh-1.2.26, maybe this error slipped
into wtmp.c of ssh-2.

--- login.c.orig        Sat May 29 12:39:42 1999
+++ login.c     Sat May 29 12:40:00 1999
@@ -434,7 +434,6 @@
     ux.ut_session = pid;
     strncpy(ux.ut_host, host, sizeof(ux.ut_host));
     ux.ut_host[sizeof(ux.ut_host) - 1] = 0;
-    ux.ut_syslen = strlen(ux.ut_host);
 #ifdef HAVE_SYSLEN_IN_UTMPX
     ux.ut_syslen = strlen(ux.ut_host);
 #endif

Gruss,
	Matthias



      parent reply	other threads:[~1999-05-30  4:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-28  4:00 ssh-2.0.11 on RH 6.0 Helmut Katzgraber
1999-05-28  4:00 ` Anthony J. Gabrielson
1999-05-31  4:00   ` Jones Begone
1999-05-31  4:00     ` Helmut Katzgraber
1999-05-30  4:00 ` Matthias Welwarsky
1999-05-30  4:00   ` Helmut Katzgraber
1999-05-30  4:00 ` Matthias Welwarsky [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox