make tests failures (agent.sh)

scott rankin waspswarm at gmail.com
Thu May 19 03:50:54 EST 2005


Darren et.al,

> Configure may be getting confused by the combination of options, or
> possibly you didn't hit quite the right combination.
> 
> Try setting everything explicitly, eg (untested):
> 
> $ LD_LIBRARY_PATH=/home/scott/src/openssl-0.9.7e:/usr/lib:/lib
> $ export LD_LIBRARY_PATH
> $ ./configure --prefix=/home/scott \
>         --with-cflags=-I/home/scott/src/openssl-0.9.7e \
>         --with-ldflags=-L/home/scott/src/openssl-0.9.7e
> $ make && make tests

I tried the above but configure didn't like the -l at the beginning of
cflags. The config.log had a message that ld couldn't find
-l/home/scott/src/openssl-0.9.7e. I changed it to -L and configure
would complete. Was I supposed to specifically name libcrypto in the
--with-cflags or did your original suggestion contain a typo?

Anyway, configure goes along but without
--with-ssl-dir=<path_to_my_libcrypto> I get an OpenSSL header
mismatch.

Here is the head of my config.log the value of LD_LIBRARY_PATH and
LDFLAGS before make:
[scott at choke openssh-4.0p1]$ head config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by OpenSSH configure Portable, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --prefix=/home/scott
--with-ssl-dir=/home/scott/src/openssl-0.9.7e
--with-cflags=-L/home/scott/src/openssl-0.9.7e
--with-ldflags=-L/home/scott/src/openssl-0.9.7e

## --------- ##
## Platform. ##
[scott at choke openssh-4.0p1]$ echo $LD_LIBRARY_PATH
/home/scott/src/openssl-0.9.7e:/usr/lib:lib

[scott at choke openssh-4.0p1]$ echo $LDFLAGS

[scott at choke openssh-4.0p1]$

make completes fine. make tests dies in the same spot,

...
ok connect after login grace timeout
run test agent.sh ...
ssh-add -l via agent fwd proto 1 failed (exit code 0)
/home/scott/src/openssh-4.0p1/ssh: error while loading shared
libraries: libcrypto.so.0.9.7: cannot open shared object file: No such
file or directory
agent fwd proto 1 failed (exit code 0)
ssh-add -l via agent fwd proto 2 failed (exit code 0)
/home/scott/src/openssh-4.0p1/ssh: error while loading shared
libraries: libcrypto.so.0.9.7: cannot open shared object file: No such
file or directory
agent fwd proto 2 failed (exit code 0)
failed simple agent test
make[1]: *** [t-exec] Error 1
make[1]: Leaving directory `/home/scott/src/openssh-4.0p1/regress'
make: *** [tests] Error 2

> 
[trim]
> include your ssl dir in LD_LIBRARY_PATH, or force your linker to link
> against the static libcrypto libraries.

I will try the static libcrypto option next...

cheers,
scott




More information about the openssh-unix-dev mailing list