<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">Le 02/07/2014 09:26, Thomas Petazzoni a
      écrit :<br>
    </div>
    <blockquote cite="mid:20140702092625.16c98f0d@free-electrons.com"
      type="cite">
      <pre wrap="">Dear Arnout Vandecappelle,

On Wed, 02 Jul 2014 08:18:08 +0200, Arnout Vandecappelle wrote:

</pre>
      <blockquote type="cite">
        <pre wrap=""> However, I see in the configure script at line 14539:

    eval additional_libdir=\"$libdir\"

and a bit lower, at line 14616:

            dir="$additional_libdir"
                                    if test -n "$acl_shlibext"; then
              if test -f "$dir/$libname$shrext"; then
                found_dir="$dir"
                found_so="$dir/$libname$shrext"

 Since libdir is /usr/lib, it will indeed find libz there.

 I guess, Thomas, that on your machine, libz.so is in /usr/lib64 so configure
doesn't find it there.
</pre>
      </blockquote>
      <pre wrap="">
Right, it's in /usr/lib/x86_64-linux-gnu.

</pre>
      <blockquote type="cite">
        <pre wrap=""> But basically that means this configure script is truly broken, not just for
libz but for any use of AC_LIB_HAVE_LINKFLAGS...

 Perhaps AUTORECONF will help?
</pre>
      </blockquote>
      <pre wrap="">
Alexandre, can you try to add LIBSSH2_AUTORECONF = YES to libssh2.mk,
in replacement to your fix?

That being said, there are a number of packages for which we explicitly
pass a --with-<foo>=$(STAGING_DIR), so it's not completely crazy to do
the same for libssh2, no?

Thomas
</pre>
    </blockquote>
    <br>
    <pre wrap="">Dear Arnout Vandecappelle and Thomas Petazzoni, </pre>
    <br>
    <pre wrap="">I just tested with LIBSSH2_AUTORECONF = YES and compilation reproduce the same issue : 

libtool: link:  /home/alexandre/Documents/Projets/Clients/ICE/Src/ice-buildroot-imx6/buildroot/output/host/usr/bin/arm-linux-gnueabihf-gcc -shared  -fPIC -DPIC  .libs/channel.o .libs/comp.o .libs/crypt.o .libs/hostkey.o .libs/kex.o .libs/mac.o .libs/misc.o .libs/packet.o .libs/publickey.o .libs/scp.o .libs/session.o .libs/sftp.o .libs/userauth.o .libs/transport.o .libs/version.o .libs/knownhost.o .libs/agent.o .libs/openssl.o .libs/libgcrypt.o .libs/pem.o .libs/keepalive.o .libs/global.o   -Wl,-rpath -Wl,/home/alexandre/Documents/Projets/Clients/ICE/Src/ice-buildroot-imx6/buildroot/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/lib -L/home/alexandre/Documents/Projets/Clients/ICE/Src/ice-buildroot-imx6/buildroot/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/lib -lssl -lcrypto -L/usr/lib -lz  -Os   -Wl,-soname -Wl,libssh2.so.1 -Wl,-version-script -Wl,.libs/libssh2.ver -o .libs/libssh2.so.1.0.1
/home/alexandre/Documents/Projets/Clients/ICE/Src/ice-buildroot-imx6/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find /usr/lib/libc_nonshared.a
collect2: error: ld returned 1 exit status
make[3]: *** [libssh2.la] Erreur 1
make[3]: quittant le répertoire « /home/alexandre/Documents/Projets/Clients/ICE/Src/ice-buildroot-imx6/buildroot/output/build/libssh2-1.4.3/src »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /home/alexandre/Documents/Projets/Clients/ICE/Src/ice-buildroot-imx6/buildroot/output/build/libssh2-1.4.3/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/alexandre/Documents/Projets/Clients/ICE/Src/ice-buildroot-imx6/buildroot/output/build/libssh2-1.4.3 »
make: *** [/home/alexandre/Documents/Projets/Clients/ICE/Src/ice-buildroot-imx6/buildroot/output/build/libssh2-1.4.3/.stamp_built] Erreur 2

Alexandre

</pre>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <img src="cid:part1.03080805.08070000@geral.com" border="0"></div>
  </body>
</html>