From owner-freebsd-current Thu Oct 18 11:21:55 2001 Delivered-To: freebsd-current@freebsd.org Received: from w250.z064001178.sjc-ca.dsl.cnc.net (w250.z064001178.sjc-ca.dsl.cnc.net [64.1.178.250]) by hub.freebsd.org (Postfix) with SMTP id D044F37B405 for ; Thu, 18 Oct 2001 11:21:52 -0700 (PDT) Received: (qmail 12150 invoked by uid 1000); 18 Oct 2001 18:22:14 -0000 Date: Thu, 18 Oct 2001 11:21:52 -0701 From: Jos Backus To: freebsd-current@freebsd.org Subject: Fix for pam_nologin.so runtime error Message-ID: <20011018112152.A12036@lizzy.bugworks.com> Reply-To: Jos Backus Mail-Followup-To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG After installing the KDE 2.2 port on yesterdays' -current, I ran into the following problem: traitor:/usr/src/lib/libpam/libpam# kcheckpass Password: /usr/libexec/ld-elf.so.1: /usr/lib/pam_nologin.so: Undefined symbol "login_getclass" traitor:/usr/src/lib/libpam/libpam# This thread mentions this same problem but does not offer a fix: http://groups.google.com/groups?hl=en&frame=right&th=4b5d292a59767617&seekm=5.1.0.14.2.20010912135613.00b65cc8%40208.141.46.254#link1 It appears that we are not adding a runtime dependency on libutil.so. With the following patch to /usr/src/lib/libpam/libpam/Makefile, kcheckpass works fine: --- Makefile.orig Thu Oct 18 11:18:32 2001 +++ Makefile Thu Oct 18 11:18:10 2001 @@ -38,6 +38,7 @@ CFLAGS+= -DDEFAULT_MODULE_PATH=\"${SHLIBDIR}/\" \ -DLIBPAM_VERSION_MAJOR=${LIBPAM_VERSION_MAJOR} \ -DLIBPAM_VERSION_MINOR=${LIBPAM_VERSION_MINOR} +LDADD= -lutil NOPROFILE= yes # Files from ${PAMDIR}/libpam: Should I file a PR? -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message