From owner-freebsd-stable Sat May 17 10:22:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA02917 for stable-outgoing; Sat, 17 May 1997 10:22:56 -0700 (PDT) Received: from ns2.harborcom.net (root@ns2.harborcom.net [206.158.4.4]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA02909; Sat, 17 May 1997 10:22:53 -0700 (PDT) Received: from localhost (bradley@localhost) by ns2.harborcom.net (8.8.5/8.8.5) with SMTP id NAA17474; Sat, 17 May 1997 13:22:51 -0400 (EDT) Date: Sat, 17 May 1997 13:22:51 -0400 (EDT) From: Bradley Dunn X-Sender: bradley@ns2.harborcom.net To: freebsd-stable@freebsd.org, davidn@freebsd.org Subject: Bug in src/usr.bin/su/Makefile Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-stable@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Just in time for a -RELEASE! :) The patch below needs to be applied to src/usr.bin/su/Makefile. From what I can see, libskey needs some of the objects in libmd, therefore -lskey needs to come before -lmd since libmd is not a shared library This is from 2.2-STABLE...I guess the same patch probably needs to be applied to -CURRENT. Without this patch one will get errors similar to the following: host: {48} su s/key 9996 ho55865 Password: (null): Undefined symbol "_MD4Init" called from su:/usr/lib/libskey.so.2.0 at 0x8024214 Very annoying for people who have the root account protected by S/Key. :) --- Makefile Sat May 10 18:07:57 1997 +++ /home/dunn/Makefile Sat May 17 12:57:24 1997 @@ -3,13 +3,10 @@ PROG= su SRCS= su.c -LDADD= -lmd -DPADD= ${LIBMD} - #LC_AUTH=-DLOGIN_CAP_AUTH COPTS+= -DLOGIN_CAP $(LC_AUTH) -LDADD+= -lutil -DPADD+= ${LIBUTIL} +LDADD= -lutil +DPADD= ${LIBUTIL} .if !defined(LC_AUTH) COPTS+= -DSKEY @@ -29,6 +26,9 @@ LDADD+= -lkrb -ldes DISTRIBUTION= krb .endif + +LDADD+= -lmd +DPADD+= ${LIBMD} BINOWN= root BINMODE=4555 pbd -- You can make it illegal, but you can't make it unpopular.