Date: Mon, 01 Feb 2010 13:58:01 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Jilles Tjoelker <jilles@stack.nl> Cc: Piotr =?utf-8?Q?Buli=C5=84ski?= <bulinskp@iem.pw.edu.pl>, freebsd-current@freebsd.org Subject: Re: Problem with sftp server, static linking, pam and nss_ldap. Message-ID: <86wryx5d0m.fsf@ds4.des.no> In-Reply-To: <861vh56rre.fsf@ds4.des.no> ("Dag-Erling =?utf-8?Q?Sm=C3=B8rg?= =?utf-8?Q?rav=22's?= message of "Mon, 01 Feb 2010 13:54:13 %2B0100") References: <4D59045B-6B03-440C-BCCC-C9C171621475@iem.pw.edu.pl> <20100131125805.GA44187@stack.nl> <861vh56rre.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Sm=C3=B8rgrav <des@des.no> writes:
> Jilles Tjoelker <jilles@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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- Makefile (revision 203341)
+++ Makefile (working copy)
@@ -5,8 +5,11 @@
MAN=3D sftp-server.8
CFLAGS+=3D-I${SSHDIR} -include ssh_namespace.h
=20
+# required when linking with a dynamic libssh=20
+SRCS+=3D roaming_dummy.c
+
DPADD=3D ${LIBSSH} ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD=3D -lcrypt -lcrypto -lz -static -lssh
+LDADD=3D -lcrypt -lcrypto -lz -lssh
=20
.include <bsd.prog.mk>
=20
DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86wryx5d0m.fsf>
