libressl-api-compat.c: In function ‘RSA_get0_key’:
libressl-api-compat.c:234:9: error: dereferencing pointer to incomplete type ‘RSA {aka const struct rsa_st}’
*n = r->n;
^~
libressl-api-compat.c: In function ‘RSA_set0_key’:
libressl-api-compat.c:246:8: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’
if ((r->n == NULL && n == NULL) || (r->e == NULL && e == NULL))
^~
libressl-api-compat.c: In function ‘RSA_meth_free’:
libressl-api-compat.c:532:20: error: dereferencing pointer to incomplete type ‘RSA_METHOD {aka struct rsa_meth_st}’
free((char *)meth->name);
^~
libressl-api-compat.c: In function ‘RSA_meth_dup’:
libressl-api-compat.c:547:31: error: dereferencing pointer to incomplete type ‘RSA_METHOD {aka const struct rsa_meth_st}’
if ((copy->name = strdup(meth->name)) == NULL) {
^~
libressl-api-compat.c: In function ‘EVP_PKEY_get0_RSA’:
libressl-api-compat.c:611:10: error: dereferencing pointer to incomplete type ‘EVP_PKEY {aka struct evp_pkey_st}’
if (pkey->type != EVP_PKEY_RSA) {
^~
libressl-api-compat.c: In function ‘RSA_meth_get_finish’:
libressl-api-compat.c:575:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
libressl-api-compat.c: In function ‘EVP_PKEY_get0_RSA’:
libressl-api-compat.c:616:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[5]: *** [Makefile:99: libressl-api-compat.o] Error 1
make[5]: Leaving directory ‘/home/lc1/Desktop/oet/t113s3/proj_100/sourcecode/tina-d1-h/out/t113-100ask/compile_dir/target/openssh-without-pam/openssh-8.0p1/openbsd-compat’
make[4]: *** [Makefile:165: openbsd-compat/libopenbsd-compat.a] Error 2
make[4]: Leaving directory ‘/home/lc1/Desktop/oet/t113s3/proj_100/sourcecode/tina-d1-h/out/t113-100ask/compile_dir/target/openssh-without-pam/openssh-8.0p1’
make[3]: *** [Makefile:269: /home/lc1/Desktop/oet/t113s3/proj_100/sourcecode/tina-d1-h/out/t113-100ask/compile_dir/target/openssh-without-pam/openssh-8.0p1/.built] Error 2
make[3]: Leaving directory ‘/home/lc1/Desktop/oet/t113s3/proj_100/sourcecode/tina-d1-h/package/network/openssh’
make[2]: *** [package/Makefile:193: package/network/openssh/compile] Error 2
make[2]: Leaving directory ‘/home/lc1/Desktop/oet/t113s3/proj_100/sourcecode/tina-d1-h’
make[1]: *** [package/Makefile:189: /home/lc1/Desktop/oet/t113s3/proj_100/sourcecode/tina-d1-h/out/t113-100ask/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory ‘/home/lc1/Desktop/oet/t113s3/proj_100/sourcecode/tina-d1-h’
make: *** [/home/lc1/Desktop/oet/t113s3/proj_100/sourcecode/tina-d1-h/build/toplevel.mk:306: world] Error 2
[2]+ Done $T/tools/build/buildserver --path $T 2> /dev/null 1>&2
make failed to build some targets (02:51 (mm:ss))
按照教程编译完系统镜像,默认没有ssh服务,在 make menuconfig 中添加了 openssh-server openssh-sftp-server 选项进行编译,结果报如上错误。
看内容是 openssl 相关的错误,但我还什么都没有改,应该不会存在编译 openssh 出错才对啊。
不知道原因