OpenSSH 2.4?
mouring at etoh.eviladmin.org
mouring at etoh.eviladmin.org
Mon Feb 5 08:16:41 EST 2001
On Sun, 4 Feb 2001, Tim Rice wrote:
> On Wed, 31 Jan 2001 mouring at etoh.eviladmin.org wrote:
>
> > BTW.. I just commited a reorder patch. All the bsd-*, fake-*, next-*,
> > and cygwin* files have been moved to openbsd-compat/. (Something I've
> > been wanting to do for months <smile>.) So if anyone has problems let
> > me know.
>
> SCO Open Server 3
> Feb 3 CVS
>
> The reorder patch adds another -L which breaks the linker.
> ...
> gcc -o ssh ssh.o sshconnect.o sshconnect1.o sshconnect2.o log-client.o readconf.
> o clientloop.o -L. -Lopenbsd-compat/ -L/usr/local/lib -L/usr/local/ssl/lib -L/u
> sr/local/ssl -lssh -lopenbsd-compat -lintl -lz -lsocket -lgen -lsocket -los -lp
> rot -lx -ltinfo -lm -lcrypto
> ld crtbegin.o: too many -L options, 6 allowed
> gmake: *** [ssh] Error 1
> ...
>
> Do we really need -L/usr/local/ssl ?
> It's not needed here.
> Does anyone know why it's there?
>
Try this patch. I'm not sure why /usr/local/ssl. But I suspect it's to
detect a broken install that puts it's libraries in $ssldir instad of
$ssldir/lib.
But there should be a better way then just putting both into the LDFLAGS.
- Ben
--- ../openssh/configure.in Sat Feb 3 17:04:03 2001
+++ configure.in Sun Feb 4 15:09:31 2001
@@ -431,10 +431,10 @@
for ssldir in $tryssldir "" /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
- LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
+ LDFLAGS="$saved_LDFLAGS -L$ssldir/lib"
CPPFLAGS="$saved_CPPFLAGS -I$ssldir/include"
if test ! -z "$need_dash_r" ; then
- LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
+ LDFLAGS="$LDFLAGS -R$ssldir/lib"
fi
else
LDFLAGS="$saved_LDFLAGS"
@@ -484,9 +484,9 @@
if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
CPPFLAGS="$saved_CPPFLAGS -I$ssldir/include"
- LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
+ LDFLAGS="$saved_LDFLAGS -L$ssldir/lib"
if test ! -z "$need_dash_r" ; then
- LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
+ LDFLAGS="$LDFLAGS -R$ssldir/lib"
fi
if test ! -z "$blibpath" ; then
blibpath="$blibpath:$ssldir:$ssldir/lib"
More information about the openssh-unix-dev
mailing list