[fbsd] libexec/lukemftpd breaks with NO_SHARED

Luke Mewburn lukem at NetBSD.org
Sat May 13 12:40:51 UTC 2006


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20060513/fae71700/attachment.pgp


More information about the freebsd-current mailing list