Subject: AW: build libssh2 with openssl

AW: build libssh2 with openssl

From: Belau, Rene <belau.rene.ext_at_siemens.com>
Date: Mon, 25 Feb 2019 12:35:32 +0000

Hello Micka,

the exit code (Exit code 0xc0000135) tells you that a dll dependency could not be resolved. So, some of the test executables can not find a dll they need.
You can use the dependency walker at windows to see which dlls a program needs.

Link: http://www.dependencywalker.com/

Open the dependency walker and open the compiled "test.exe" within it. Then you should get a tree of all dependencies the test program needs.

From this point on check your build commands or look at CMakelist.txt file and search for "target_link_libraries", "link_directories".
If there is something missing.

This is a general guide, hopefully it helps a bit.

---
<Max Muster GmbH, Musterstraße 123, 88888 Musterort Geschäftsführer: Melanie Muster; Sitz: München; Registergericht München, HRB 111.111>
-----Ursprüngliche Nachricht-----
Von: libssh2-devel <libssh2-devel-bounces_at_cool.haxx.se> Im Auftrag von Micka
Gesendet: Montag, 25. Februar 2019 09:53
An: libssh2 development <libssh2-devel_at_cool.haxx.se>
Betreff: Re: build libssh2 with openssl
is it possible to have someone to explain me what is wrong ? And how can I fix this problem?
Micka,
On Tue, Feb 19, 2019 at 3:53 PM Micka <mickamusset_at_gmail.com> wrote:
>
> Thanks, now I'm trying to test the lib built with :
>
> libssh2-1.8.0\build>cmake --build . --target RUN_TESTS
>
> but all the test failed:
>
> 0% tests passed, 10 tests failed out of 10
>
>   Total Test time (real) =   1.15 sec
>
>   The following tests FAILED:
>   Errors while running CTest
>           1 - test_hostkey (Exit code 0xc0000135
>   )
>           2 - test_hostkey_hash (Exit code 0xc0000135
>   )
>           3 - test_password_auth_succeeds_with_correct_credentials
> (Exit code 0xc0000135
>   )
>           4 - test_password_auth_fails_with_wrong_password (Exit code 0xc0000135
>   )
>           5 - test_password_auth_fails_with_wrong_username (Exit code 0xc0000135
>   )
>           6 - test_public_key_auth_fails_with_wrong_key (Exit code 0xc0000135
>   )
>           7 - test_public_key_auth_succeeds_with_correct_rsa_key (Exit 
> code 0xc0000135
>   )
>           8 - test_public_key_auth_succeeds_with_correct_dsa_key (Exit 
> code 0xc0000135
>   )
>           9 - test_keyboard_interactive_auth_fails_with_wrong_response
> (Exit code 0xc0000135
>   )
>          10 - 
> test_keyboard_interactive_auth_succeeds_with_correct_response
> (Exit code 0xc0000135
>   )
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: La commande "setlocal\r 
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: "C:\Program Files\CMake\bin\ctest.exe"
> --force-new-ctest-process -C Debug\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\buil
> d\RUN_TESTS.vcxproj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: if %errorlevel% neq 0 goto :cmEnd\r 
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: :cmEnd\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto 
> :cmDone\r 
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxp
> roj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: :cmErrorLevel\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: exit /b %1\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: :cmDone\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: if %errorlevel% neq 0 goto :VCEnd\r 
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: :VCEnd" s'est arrêtée avec le code 8.
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
>
>
>
> I've also compiled manually the lib openssl :
>
> perl Configure VC-WIN32 --prefix=c:\tools\OpenSSL\vc-win32
> --openssldir=c:\tools\OpenSSL\SSL no-asm
>
> On Mon, Feb 18, 2019 at 11:30 AM Jan Ehrhardt <phpdev_at_ehrhardt.nl> wrote:
> >
> > Micka in gmane.network.ssh.libssh2.devel (Mon, 18 Feb 2019 11:10:06
> > +0100):
> > >Thanks looks like that with only the ROOT dir and with an absolute path works !
> >
> > Tricky thing: paths are relative to the directory with the 
> > CMakeLists.txt, so it is best to use absolute paths.
> > --
> > Jan
> >
> > _______________________________________________
> > libssh2-devel 
> > https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2019-02-25