From owner-freebsd-current@FreeBSD.ORG Sat May 13 12:40:51 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E9B416A419 for ; Sat, 13 May 2006 12:40:51 +0000 (UTC) (envelope-from lukem@mewburn.net) Received: from home.mewburn.net (home.mewburn.net [150.101.166.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E4FB43D45 for ; Sat, 13 May 2006 12:40:50 +0000 (GMT) (envelope-from lukem@mewburn.net) Received: by home.mewburn.net (Postfix, from userid 604) id 2F9C12BCC9; Sat, 13 May 2006 22:40:48 +1000 (EST) Date: Sat, 13 May 2006 22:40:48 +1000 From: Luke Mewburn To: Dag-Erling Sm?rgrav Message-ID: <20060513124048.GE15608@mewburn.net> References: <20060509150839.GD84148@obiwan.tataz.chchile.org> <20060512142255.GA69418@obiwan.tataz.chchile.org> <8664ka8bfw.fsf@xps.des.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="H1spWtNR+x+ondvy" Content-Disposition: inline In-Reply-To: <8664ka8bfw.fsf@xps.des.no> User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Sat, 13 May 2006 13:02:56 +0000 Cc: freebsd-current@FreeBSD.org, Jeremie Le Hen , lukem@NetBSD.org Subject: Re: [fbsd] libexec/lukemftpd breaks with NO_SHARED 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: Sat, 13 May 2006 12:40:51 -0000 --H1spWtNR+x+ondvy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 13, 2006 at 12:29:39PM +0200, Dag-Erling Sm?rgrav wrote: | Jeremie Le Hen writes: | > I contacted OpenSSH folks to ask them if it was possible to change the | > name of their functions, but they answered me that libssh is an inter= nal | > library and should not be used elsewhere. | > | > I don't know why lukemftpd uses it, I suppose the author had good | > reasons. I Cc'd him in case he has time to enlighten me on this poin= t. |=20 | lukemftpd does not use libssh, but it uses libpam. When compiled | statically, libpam contains all the PAM modules in the tree, including | pam_ssh, which uses libssh. |=20 | The whole static libpam thing is an ugly hack that I wish would go | away, but some people insist on building static versions of login(1) | and other binaries which depend on libpam. Yes, NetBSD ran into this problem as well. It was eventually solved by using a "namespace.h" trick to rename various publically visible libssh.a functions to have a prefix of "ssh_". Take a look at commits to NetBSD's src/crypto/dist/ssh around 2006/02/13 for further details. --H1spWtNR+x+ondvy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (NetBSD) iD8DBQFEZdPQpBhtmn8zJHIRAvGzAJ91HJVcrMbBK5EHyntYP5pQTOi+EACglP5K hXGeZtXHxEaTZPuVDo3M13A= =R0QA -----END PGP SIGNATURE----- --H1spWtNR+x+ondvy--