From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,ec559aabb038c2cd X-Google-Attributes: gid111c93,public From: Matthias Welwarsky Subject: Re: ssh-2.0.11 on RH 6.0 Date: 1999/05/30 Message-ID: <3750F275.F2FDF70B@afthd.tu-darmstadt.de>#1/1 X-Deja-AN: 483685401 Content-Transfer-Encoding: 7bit References: <374EE276.EEF68EE4@debussy.ucsc.edu> To: Helmut Katzgraber X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: FlexNet-Gruppe Darmstadt Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha 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