From nobody  Sun Apr 20 09:44:44 1997
Received: (from nobody@localhost)
          by freefall.freebsd.org (8.8.5/8.8.5) id JAA00192;
          Sun, 20 Apr 1997 09:44:44 -0700 (PDT)
Message-Id: <199704201644.JAA00192@freefall.freebsd.org>
Date: Sun, 20 Apr 1997 09:44:44 -0700 (PDT)
From: noroi@mob.or.jp
To: freebsd-gnats-submit@freebsd.org
Subject: su(1) cannot call MD4Init(3) from libskey
X-Send-Pr-Version: www-1.0

>Number:         3360
>Category:       bin
>Synopsis:       su(1) cannot call MD4Init(3) from libskey
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 20 09:50:01 PDT 1997
>Closed-Date:    Thu Aug 7 23:48:45 PDT 1997
>Last-Modified:  Thu Aug  7 23:53:30 PDT 1997
>Originator:     IKEDA Kenji
>Release:        3.0-970209-SNAP
>Organization:
home
>Environment:
FreeBSD kamui.mob.or.jp 3.0-970209-SNAP FreeBSD 3.0-970209-SNAP #0: Wed Mar 26 00:42:54 JST 1997     noroi@kamui.mob.or.jp:/usr/src/sys/compile/JULIA  i386
>Description:
su(1) cannot call MD4 library in libmd.a.  Libmd.a linked before -lskey.

>How-To-Repeat:
# root has S/KEY password.

$ su
s/key 98 ka48855
Password:
 (turning echo on)
Password:GALL OWL NOUN PAR RIG CAR
/usr/libexec/ld.so: Undefined symbol "_MD4Init" called from su:/usr/lib/libskey.so.2.0 at 0x8029204

>Fix:
su-2.00# pwd
/usr/src/usr.bin/su
su-2.00# diff -u Makefile.orig Makefile
--- Makefile.orig       Mon Jan 13 15:39:19 1997
+++ Makefile    Mon Apr 21 01:33:49 1997
@@ -3,8 +3,8 @@
 PROG=  su
 SRCS=  su.c
 
-LDADD= -lmd
-DPADD= ${LIBMD} 
+#LDADD=        -lmd
+#DPADD=        ${LIBMD} 
 
 #LC_AUTH=-DLOGIN_CAP_AUTH
 COPTS+= -DLOGIN_CAP $(LC_AUTH)
@@ -16,6 +16,9 @@
 LDADD+= -lskey -lcrypt
 DPADD+= ${LIBSKEY} ${LIBCRYPT}
 .endif
+
+LDADD+=        -lmd
+DPADD+=        ${LIBMD} 
 
 .if defined(WHEELSU)
 COPTS+=        -DWHEELSU
su-2.00# 

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: itojun 
State-Changed-When: Thu Aug 7 23:48:45 PDT 1997 
State-Changed-Why:  
	Patch was already applied May 23, 1997 (see revision 1.13 and 1.11.2.2)

>Unformatted:
