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

Error during make install #8

Open
mattiabaldari opened this issue Oct 18, 2018 · 5 comments
Open

Error during make install #8

mattiabaldari opened this issue Oct 18, 2018 · 5 comments

Comments

@mattiabaldari
Copy link

Hi!

I followed the instruction in the INSTALL file until:

If you want to install libssh after compilation run:
make install

Which gave me the following error:

Building C object src/CMakeFiles/ssh_shared.dir/libcrypto.c.o
/fake/path/libssh-0.7.4/src/libcrypto.c: In function ‘evp’:
/fake/path/libssh-0.7.4/src/libcrypto.c:136:16: error: storage size of ‘md’ isn’t known
EVP_MD_CTX md;

Any idea about this?
PS: I installed all the suggested libraries and packages.
Thank you

@SoledaD208
Copy link
Owner

looks like you did not run make install in "build" folder but in source folder, let re-try, follow the instruction in /libssh-0.7.4/INSTALL file

@mattiabaldari
Copy link
Author

Hi SoledaD208,

thank you for your answer, I'm sure I was in the "build" folder, but to be 100% sure I tried again, here's the outcome:
screen shot 2018-10-18 at 14 25 25

hope this can help, thank you

@bucknasT
Copy link

This isn't a problem with the author's code, it's a compatibility issue with OpenSSL. Hope this helps avoid some unnecessary troubleshooting.

To continue your screenshot:

/libssh-0.7.4/src/libcrypto.c:336:7: warning: ‘HMAC_Init’ is deprecated [-Wdeprecated-declarations]
HMAC_Init(ctx, key, len, EVP_sha1());
^~~~~~~~~
In file included from /usr/include/openssl/evp.h:13,
from /usr/include/openssl/hmac.h:15,
from /libssh-0.7.4/include/libssh/libcrypto.h:32,
from /libssh-0.7.4/include/libssh/wrapper.h:26,
from /libssh-0.7.4/include/libssh/packet.h:24,
from /libssh-0.7.4/include/libssh/session.h:25,
from /libssh-0.7.4/src/libcrypto.c:32:
/usr/include/openssl/hmac.h:28:1: note: declared here
DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,
^~~~~~~~~~~~~~~~~~

@PJF16
Copy link

PJF16 commented Oct 18, 2018

Had the same problem. Just install openssl-1.0 over APT. This resolved the compile issue for me.

@mattiabaldari
Copy link
Author

Had the same problem. Just install openssl-1.0 over APT. This resolved the compile issue for me.

Hi PJF16, thank you for your contribute. How did you installed openssl-1.0?
Because I already have OpenSSL 1.1.0g and I am not sure how to downgrade it.

Thank you

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

4 participants