From nobody@FreeBSD.org  Sat Mar  4 15:02:43 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id 5EB1C37B8D3
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  4 Mar 2000 15:02:43 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id PAA41913;
	Sat, 4 Mar 2000 15:02:43 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200003042302.PAA41913@freefall.freebsd.org>
Date: Sat, 4 Mar 2000 15:02:43 -0800 (PST)
From: pam@polynet.lviv.ua
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: pam_ssh.so is not linked against libssh.a thus missing couple of functions
X-Send-Pr-Version: www-1.0

>Number:         17191
>Category:       bin
>Synopsis:       pam_ssh.so is not linked against libssh.a thus missing couple of functions
>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:   Sat Mar  4 15:10:01 PST 2000
>Closed-Date:    Mon Mar 6 14:19:27 PST 2000
>Last-Modified:  Mon Mar  6 14:20:10 PST 2000
>Originator:     Adrian Pavlykevych
>Release:        4.0-CURRENT-2000027
>Organization:
Lviv State University "Lvivska Polytechnica"
>Environment:
FreeBSD rameau.coda.cs.cmu.edu 4.0-CURRENT FreeBSD 4.0-CURRENT #4: Fri Mar  3 14:25:42 EST 2000     pam@rameau.coda.cs.cmu.edu:/usr/src/sys/compile/Rameau  i386
>Description:
pam_ssh.so module incorporated into FreeBSD distribution together with OpenSSH, is not linked against libssh.a,
but relies upon functions like ssh_get_authentication_connection(). 
Attempt to use this module will result in:
login: unable to dlopen(/usr/lib/pam_ssh.so)
login: [dlerror: /usr/lib/pam_ssh.so: Undefined symbol "ssh_get_authentication_connection"]
syslog messages	
>How-To-Repeat:
add:
login	auth 	sufficient	pam_ssh.so
to the /etc/pam.conf and try to login
>Fix:
*** Makefile.orig	Sat Mar  4 17:59:10 2000
--- Makefile	Sat Mar  4 18:01:26 2000
***************
*** 8,14 ****
  SRCS=		log-client.c pam_ssh.c
  CFLAGS+=	-Wall -I${SSHSRC}
  DPADD+=		${LIBCRYPTO} ${LIBCRYPT} ${LIBUTIL} ${LIBZ} ${LIBGCC_PIC}
! LDADD+=		-lcrypto -lcrypt -lutil -lz -lgcc_pic
  INTERNALLIB=	yes
  INTERNALSTATICLIB=yes
  
--- 8,14 ----
  SRCS=		log-client.c pam_ssh.c
  CFLAGS+=	-Wall -I${SSHSRC}
  DPADD+=		${LIBCRYPTO} ${LIBCRYPT} ${LIBUTIL} ${LIBZ} ${LIBGCC_PIC}
! LDADD+=		-L${.OBJDIR}/../../../../secure/lib/libssh/ -lssh -lcrypto -lcrypt -lutil -lz -lgcc_pic
  INTERNALLIB=	yes
  INTERNALSTATICLIB=yes

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed  
State-Changed-By: cpiazza 
State-Changed-When: Mon Mar 6 14:19:27 PST 2000 
State-Changed-Why:  
peter committed your patch, thanks! 
>Unformatted:
