您尚未登录。

楼主 # 2024-08-20 18:06:52

让我静静躺赢
会员
注册时间: 2022-07-01
已发帖子: 3
积分: 3

T113 添加 openssh 编译错误

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

离线

楼主 #1 2024-08-21 16:51:55

让我静静躺赢
会员
注册时间: 2022-07-01
已发帖子: 3
积分: 3

Re: T113 添加 openssh 编译错误

/home/yk/t113s/Tina-Linux-2023/package/network/openssh/Makefile
PKG_VERSION:=8.0p1  ---->    openssh-9.8p1

主要原因 openssl1.1.0i 与  openssh-8.0p1 不匹配

离线

#2 2024-08-21 17:28:00

memory
会员
注册时间: 2021-08-11
已发帖子: 487
积分: 464

Re: T113 添加 openssh 编译错误

问题解决了吗?

离线

#3 2024-08-27 14:48:58

cjia
会员
注册时间: 2021-12-29
已发帖子: 5
积分: 11

Re: T113 添加 openssh 编译错误

同求,我也遇到了这个问题,但是当时测试再d1s上是没有这个问题的。

离线

楼主 #4 2024-08-27 14:53:17

让我静静躺赢
会员
注册时间: 2022-07-01
已发帖子: 3
积分: 3

Re: T113 添加 openssh 编译错误

解决了 PKG_VERSION:=8.9p1  就OK了

离线

#5 2024-12-17 17:39:55

mixnavy
会员
注册时间: 2024-07-17
已发帖子: 2
积分: 17

Re: T113 添加 openssh 编译错误

这个报错的原因是
libssl 没有使能 rsa 支持
需要在buildroot 的 libraries 里使能

make menuconfig > Libraries > SSL > libopenssl > Enable RSA algorithm support ,就可以编译了

同时,如 让我静静躺赢 所说,openssl 8.0p1,与 libssl 的 1.1.0i  版本不兼容, 会有其他的编译错误,我 改成 8.9p1 和 9.1p1 都可以编译通过

网上很多说需要 apt install 特定版本的 libopenssl,是错误的,不应该这样做

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn