Problem with sftp server, static linking, pam and nss_ldap.
Dag-Erling Smørgrav
des at des.no
Mon Feb 1 12:58:03 UTC 2010
Dag-Erling Smørgrav <des at des.no> writes:
> Jilles Tjoelker <jilles at stack.nl> 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
===================================================================
--- Makefile (revision 203341)
+++ Makefile (working copy)
@@ -5,8 +5,11 @@
MAN= sftp-server.8
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
+# required when linking with a dynamic libssh
+SRCS+= roaming_dummy.c
+
DPADD= ${LIBSSH} ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD= -lcrypt -lcrypto -lz -static -lssh
+LDADD= -lcrypt -lcrypto -lz -lssh
.include <bsd.prog.mk>
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-current
mailing list