[2881] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5-build/552: typo in src/util/libupdate.sh

daemon@ATHENA.MIT.EDU (Peter Jensen)
Sun Feb 22 17:35:09 1998

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: tlyu@MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, peter@dillinger.lbjhs.austin.isd.tenet.edu
Date: Sun, 22 Feb 1998 16:34:05 -0600
From: Peter Jensen <peter@dillinger.lbjhs.austin.isd.tenet.edu>
Reply-To: peter@dillinger.lbjhs.austin.isd.tenet.edu
To: krb5-bugs@MIT.EDU
Cc: leverich@stac.org, jon@stac.org, chedlin@stac.org


>Number:         552
>Category:       krb5-build
>Synopsis:       A typo obstructs the proper creation of libpty.a
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    tlyu
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Sun Feb 22 17:35:03 EST 1998
>Last-Modified:
>Originator:     Peter Jensen
>Organization:
STAC, Lyndon Baines Johnson High School
>Release:        krb5-1.0.5
>Environment:
System: Linux dillinger 2.0.33 #5 Mon Feb 9 10:23:11 CST 1998 i586 unknown
Architecture: i586
Shell interpreter is GNU bash, version 2.00.0(1)-release
(i586-debian-linux).
Make is GNU Make version 3.75.
>Description:
Line 44 off krb5-1.0.5/src/util/libupdate.sh appears to be missing a
semicolon immediately before "done". The original line is:
                sed -e "s;^\([^ ]*\);$dir/\1;g" -e "s; \([^ ]*\); $dir/\1;g") done
  And the corrected statement is:
                sed -e "s;^\([^ ]*\);$dir/\1;g" -e "s; \([^ ]*\); $dir/\1;g"); done

When compiling Kerberos, the libupdate utility fails to stop the make when
it fails, thus generating an 8 byte "libpty.a". Later on, the bsd utilities
depend on stuff found in libpty.a (and it dies complaining about undefined
references to "init_pty()" and such.)

  I'm not sure if this problem is universal or if my shell is just broken.
Please advise me if I'm confused. Thanks.
>How-To-Repeat:
make ;)
>Fix:
*** krb5-1.0.5/src/util/libupdate.sh.orig       Sun Feb 22 16:05:48 1998
--- krb5-1.0.5/src/util/libupdate.sh    Sun Feb 22 16:06:00 1998
***************
*** 41,44 ****

  $rmcmd
  $arcmd $library `for dir do (cd $dir; cat $oblist | \
!               sed -e "s;^\([^ ]*\);$dir/\1;g" -e "s; \([^ ]*\); $dir/\1;g") done`
--- 41,44 ----

  $rmcmd
  $arcmd $library `for dir do (cd $dir; cat $oblist | \
!               sed -e "s;^\([^ ]*\);$dir/\1;g" -e "s; \([^ ]*\); $dir/\1;g"); done`
>Audit-Trail:
>Unformatted:

home help back first fref pref prev next nref lref last post