Open strangeryf opened 4 years ago
gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong -fPIE -I. -I. -DSSHDIR=\"/usr/local/openssh7/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/openssh7/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/openssh7/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/openssh7/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/local/openssh7/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/usr/local/openssh7/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c ssh_api.c -o ssh_api.o In file included from ssh_api.h:26:0, from ssh_api.c:20: cipher.h:69:17: error: field ‘evp’ has incomplete type EVP_CIPHER_CTX evp; ^~~ Makefile:152: recipe for target 'ssh_api.o' failed make: *** [ssh_api.o] Error 1
似乎是OpenSSL需要1.0,但系统是1.1。
解决了么 ?
gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong -fPIE -I. -I. -DSSHDIR=\"/usr/local/openssh7/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/openssh7/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/openssh7/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/openssh7/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/local/openssh7/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/usr/local/openssh7/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c ssh_api.c -o ssh_api.o In file included from ssh_api.h:26:0, from ssh_api.c:20: cipher.h:69:17: error: field ‘evp’ has incomplete type EVP_CIPHER_CTX evp; ^~~ Makefile:152: recipe for target 'ssh_api.o' failed make: *** [ssh_api.o] Error 1
似乎是OpenSSL需要1.0,但系统是1.1。