Repository navigation
Conversation
When building libssh2 and the libraries it depends on from source using a single CMakeLists.txt (as is common on Android), libssh2's CMake has to be hinted at where to find other libs by setting variables like OPENSSL_SSL_LIBRARY and so on. Now, as under Android there's one single CMakeLists.txt that has to `add_subdirectory()` all other CMakeLists.txt, there's only one configure phase and one build phase. That means when libssh2 is configured, the libs it is configured to use are actually not built yet. In this case it's a problem to use the libs in LIBRARIES when checking for nonblocking sockets as some libs in there are not yet built, failing the test and ending up with HAVE_DISABLED_NONBLOCKING in libssh2_config.h. Fix this by using a separate, clean library list for the nonblocking socket checks. Closes #694
10 of 11 tasks
Author
|
Is there any more info I can provide regarding this? |
Author
|
@willco007 friendly ping asking if more info is needed on this. Thanks! |
bk138
added a commit
to bk138/multivnc
that referenced
this pull request
Dec 21, 2022
...until libssh2/libssh2#712 gets accepted.
vszakats
added a commit
to vszakats/libssh2
that referenced
this pull request
Mar 7, 2023
Based on patch by Christian Beier. Fixes libssh2#694 Closes libssh2#712
Member
|
Re-applying this fix to master: #816 |
vszakats
added a commit
that referenced
this pull request
Mar 8, 2023
agreppin
pushed a commit
to agreppin/libssh2
that referenced
this pull request
Jul 14, 2024
…libssh2#816) Based on patch by Christian Beier. Fixes libssh2#694 Closes libssh2#712
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When building libssh2 and the libraries it depends on from source
using a single CMakeLists.txt (as is common on Android), libssh2's
CMake has to be hinted at where to find other libs by setting
variables like OPENSSL_SSL_LIBRARY and so on.
Now, as under Android there's one single CMakeLists.txt that has to
add_subdirectory()all other CMakeLists.txt, there's only oneconfigure phase and one build phase. That means when libssh2 is
configured, the libs it is configured to use are actually not built
yet.
In this case it's a problem to use the libs in LIBRARIES when checking
for nonblocking sockets as some libs in there are not yet built,
failing the test and ending up with HAVE_DISABLED_NONBLOCKING in
libssh2_config.h.
Fix this by using a separate, clean library list for the nonblocking
socket checks.
Closes #694