Re: [fbsd] libexec/lukemftpd breaks with NO_SHARED

From: Luke Mewburn <lukem_at_NetBSD.org>
Date: Sat, 13 May 2006 22:40:48 +1000
On Sat, May 13, 2006 at 12:29:39PM +0200, Dag-Erling Sm?rgrav wrote:
  | Jeremie Le Hen <jeremie_at_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 internal
  | > 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 point.
  | 
  | 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.
  | 
  | 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.

Received on Sat May 13 2006 - 10:40:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:55 UTC