Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Failed - Libssh2 1.9.0 #11

Open
nikomaxi opened this issue Nov 2, 2020 · 8 comments
Open

Build Failed - Libssh2 1.9.0 #11

nikomaxi opened this issue Nov 2, 2020 · 8 comments

Comments

@nikomaxi
Copy link

nikomaxi commented Nov 2, 2020

I get an error while compiling for iphoneos.
I saw an similar issue #5.

Maybe its something similar.

Thanks.


./iSSH2.sh --platform=iphoneos --xcodeproj=../ssh/ --min-version=13.2 
Initializing...

Libssh2 version: 1.9.0 (Automatically detected)
OpenSSL version: 1.1.1h (Automatically detected)
SDK version: 14.0 (Automatically detected)
Xcode version: 12.0.1 (Automatically detected)
Architectures: arm64 arm64e x86_64
Platform: iphoneos
Platform min version: 13.2

Downloading openssl-1.1.1h.tar.gz
################################################################################################################# 100,0%
MD5: 53840c70434793127a3574433494e8d3
Extracting openssl-1.1.1h.tar.gz
Building OpenSSL 1.1.1h, please wait...
- iPhoneOS arm64 done!
- iPhoneOS arm64e done!
- iPhoneSimulator x86_64 done!
Building libssl.a fat library...
Building libcrypto.a fat library...
Copying headers...
Building done.
Downloading libssh2-1.9.0.tar.gz
################################################################################################################# 100,0%################################################################################################################# 100,0%
MD5: 1beefafe8963982adc84b408b2959927
Extracting libssh2-1.9.0.tar.gz
Building Libssh2 1.9.0:
Build failed, cleaning up temporary files...
@Jan-E
Copy link
Contributor

Jan-E commented Nov 2, 2020

Try ./iSSH2.sh --platform=iphoneos --min-version=8.0. This builds fat librariies, that can be used in iOS 14.1 as well.

@nikomaxi
Copy link
Author

nikomaxi commented Nov 2, 2020

Thanks for this quick reply.

But I still got this error ... I have tried to remove the downloaded files but still the same error...

Can we get more output?

@Jan-E
Copy link
Contributor

Jan-E commented Nov 2, 2020

Fresh build on Catalina 10.15.7 with Xcode 14.1:

tfr@TFRs-Mac Documents % git clone https://github.com/Frugghi/iSSH2.git
Cloning into 'iSSH2'...
remote: Enumerating objects: 156, done.
remote: Total 156 (delta 0), reused 0 (delta 0), pack-reused 156
Receiving objects: 100% (156/156), 22.51 MiB | 5.54 MiB/s, done.
Resolving deltas: 100% (91/91), done.
tfr@TFRs-Mac Documents % cd ~/Documents/iSSH2                          
tfr@TFRs-Mac iSSH2 % ./iSSH2.sh --platform=iphoneos --min-version=8.0
Initializing...

Libssh2 version: 1.9.0 (Automatically detected)
OpenSSL version: 1.1.1h (Automatically detected)
SDK version: 14.1 (Automatically detected)
Xcode version: 12.1 (Automatically detected)
Architectures: arm64 arm64e armv7 armv7s i386 x86_64 
Platform: iphoneos
Platform min version: 8.0

Downloading openssl-1.1.1h.tar.gz
######################################################################### 100.0%
MD5: 53840c70434793127a3574433494e8d3
Extracting openssl-1.1.1h.tar.gz
Building OpenSSL 1.1.1h, please wait...
- iPhoneOS arm64 done!
- iPhoneOS arm64e done!
- iPhoneOS armv7 done!
- iPhoneOS armv7s done!
- iPhoneSimulator i386 done!
- iPhoneSimulator x86_64 done!
Building libssl.a fat library...
Building libcrypto.a fat library...
Copying headers...
Building done.
Downloading libssh2-1.9.0.tar.gz
######################################################################### 100.0%######################################################################### 100.0%
MD5: 1beefafe8963982adc84b408b2959927
Extracting libssh2-1.9.0.tar.gz
Building Libssh2 1.9.0:
- iPhoneOS arm64 done!
- iPhoneOS arm64e done!
- iPhoneOS armv7 done!
- iPhoneOS armv7s done!
- iPhoneSimulator i386 done!
- iPhoneSimulator x86_64 done!
Building libssh2.a fat library...
Copying headers...
Building done.
Cleaning up temporary files...

@Jan-E
Copy link
Contributor

Jan-E commented Nov 2, 2020

Can we get more output?

Remove the >> "$LOG" 2>&1 at the end of iSSH2-libssh2.sh (3 times) and the output will be shown on screen.

@nikomaxi
Copy link
Author

nikomaxi commented Nov 2, 2020

Now I am getting the following error.

Which deps are required?

configure: ERROR: No openssl crypto library found!

Specify --with-crypto=$backend and/or the neccessary library search prefix.

Known crypto backends: auto, openssl, libgcrypt, mbedtls, wincng
configure: error: Required dependencies are missing!
Build failed, cleaning up temporary files...

My openssl version
LibreSSL 2.8.3

@Jan-E
Copy link
Contributor

Jan-E commented Nov 2, 2020

No dependencies on your Mac are requred as far as I know. Do a fresh git clone and/or try adding --with-crypto=openssl to your command line.

@yo-bur
Copy link

yo-bur commented Feb 1, 2021

This error was caused by a space in the directory path where iSSH was run. The OPENSSLDIR variable in iSSH-libssh2.sh doesn't handle escaping the space before it's passed into ./configure.

I fixed it by moving the iSSH directory to a path that didn't contain any spaces.

@Jan-E
Copy link
Contributor

Jan-E commented Apr 28, 2021

Please close the issue, now that you have found a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants