From owner-freebsd-current@FreeBSD.ORG Mon Feb 1 12:58:03 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41D2B1065679 for ; Mon, 1 Feb 2010 12:58:03 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id F3C668FC13 for ; Mon, 1 Feb 2010 12:58:02 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 0673C1FFC28; Mon, 1 Feb 2010 12:58:02 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id D61BF84498; Mon, 1 Feb 2010 13:58:01 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Jilles Tjoelker References: <4D59045B-6B03-440C-BCCC-C9C171621475@iem.pw.edu.pl> <20100131125805.GA44187@stack.nl> <861vh56rre.fsf@ds4.des.no> Date: Mon, 01 Feb 2010 13:58:01 +0100 In-Reply-To: <861vh56rre.fsf@ds4.des.no> ("Dag-Erling =?utf-8?Q?Sm=C3=B8rg?= =?utf-8?Q?rav=22's?= message of "Mon, 01 Feb 2010 13:54:13 +0100") Message-ID: <86wryx5d0m.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Piotr =?utf-8?Q?Buli=C5=84ski?= , freebsd-current@freebsd.org Subject: Re: Problem with sftp server, static linking, pam and nss_ldap. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2010 12:58:03 -0000 Dag-Erling Sm=C3=B8rgrav writes: > Jilles Tjoelker writes: > > Apparently something broke so that sftp-server cannot link to libssh > > dynamically, even though scp and ssh can still use it. > Uh, that was an experiment that was committed by mistake. I was about > to say "just remove -static", but that uncovers other issues. I'll look > into it. Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- Makefile (revision 203341) +++ Makefile (working copy) @@ -5,8 +5,11 @@ MAN=3D sftp-server.8 CFLAGS+=3D-I${SSHDIR} -include ssh_namespace.h =20 +# required when linking with a dynamic libssh=20 +SRCS+=3D roaming_dummy.c + DPADD=3D ${LIBSSH} ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ} -LDADD=3D -lcrypt -lcrypto -lz -static -lssh +LDADD=3D -lcrypt -lcrypto -lz -lssh =20 .include =20 DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no