Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 May 2006 22:40:48 +1000
From:      Luke Mewburn <lukem@NetBSD.org>
To:        Dag-Erling Sm?rgrav <des@des.no>
Cc:        freebsd-current@FreeBSD.org, Jeremie Le Hen <jeremie@le-hen.org>, lukem@NetBSD.org
Subject:   Re: [fbsd] libexec/lukemftpd breaks with NO_SHARED
Message-ID:  <20060513124048.GE15608@mewburn.net>
In-Reply-To: <8664ka8bfw.fsf@xps.des.no>
References:  <20060509150839.GD84148@obiwan.tataz.chchile.org> <20060512142255.GA69418@obiwan.tataz.chchile.org> <8664ka8bfw.fsf@xps.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <jeremie@le-hen.org> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060513124048.GE15608>