Git Product home page Git Product logo

Comments (10)

bagder avatar bagder commented on July 22, 2024

Is that what ldd shows? If so, you need to make sure it picks the right libs at run-time, so it depends on your /etc/ld.so.conf setup. And you can also specify dir with LD_LIBRARY_PATH

from libssh2.

kotoroshinoto avatar kotoroshinoto commented on July 22, 2024

it wasn't a runtime link problem because that soname was the system version of openssl which was not binary compatible with the one I wanted it to use. When I added an additional line forcing it to give a directory path to the linker it then was able to find the correct library.

I'm still not quite sure why this was happening nor why I had to go out of my way to be explicit. I already HAD the runtime AND compile time environmental variables set, and it was defaulting to the system path library anyway.

from libssh2.

foldedspace avatar foldedspace commented on July 22, 2024

It looks like "configure" is not honouring the "--with-libssl-prefix" argument:

 ./configure --prefix="/opt/libssh2-1.6.0" --with-openssl --with-libssl-prefix=/opt/openssl-1.0.2d

Gives me:
....
configure: error: No crypto library found!
Try --with-libssl-prefix=PATH
or --with-libgcrypt-prefix=PATH
or --with-wincng on Windows

Despite:

 $ ls /opt/openssl-1.0.2d/{bin,lib}
 /opt/openssl-1.0.2d/bin:
 c_rehash*  openssl*

 /opt/openssl-1.0.2d/lib:
 engines/  lib64@  libcrypto.a  libcrypto.so@  libcrypto.so.1.0.0*  libssl.a  libssl.so@    libssl.so.1.0.0*  pkgconfig/

However, the following works:

  CPPFLAGS="-I/opt/openssl-1.0.2d/include" LDFLAGS="-L/opt/openssl-1.0.2d/lib" ./configure --prefix="/opt/libssh2-1.6.0" --with-openssl --with-libssl-prefix=/opt/openssl-1.0.2d

from libssh2.

superbem avatar superbem commented on July 22, 2024

Hi
I'm trying to compile with openssl git, but it returns the following error:
openssl.c: In function β€˜_libssh2_rsa_new’:
openssl.c:71:11: error: dereferencing pointer to incomplete type β€˜RSA {aka struct rsa_st}’

from libssh2.

bagder avatar bagder commented on July 22, 2024

@superbem that's separate from this issue though, and I'd say most probably because OpenSSL has broken their API (which they've done a lot in their 1.1.x branch).

from libssh2.

superbem avatar superbem commented on July 22, 2024

Changes between 1.0.2g and 1.1.0 [xx XXX xxxx]
*) Made RSA and RSA_METHOD opaque. The structures for managing RSA
objects have been moved out of the public header files. New
functions for managing these have been added.
[Richard Levitte]

*) Made DSA and DSA_METHOD opaque. The structures for managing DSA objects
have been moved out of the public header files. New functions for managing
these have been added.
[Matt Caswell]

from libssh2.

bagder avatar bagder commented on July 22, 2024

so I was right...

from libssh2.

superbem avatar superbem commented on July 22, 2024

Is there somewhere a libssh2 ready for openssl 1.1.0?

from libssh2.

bagder avatar bagder commented on July 22, 2024

As soon as we get the patches that adapt and have them merged. Feel free help us making this happen. But please, stop using this issue for that topic.

from libssh2.

stale avatar stale commented on July 22, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from libssh2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.