目前共有4篇帖子。 字體大小:較小 - 100% (默認)▼  內容轉換:不轉換▼
 
點擊 回復
25 3
fatal error: openssl/engine.h: No such file or directory
一派掌門 二十級
1樓 發表于:2025-3-11 13:50
make[1]: Entering directory '/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/kernel'
make[1]: Leaving directory '/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/kernel'
make O=/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/objs_kernel -C /home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/kernel ARCH=arm \
        CROSS_COMPILE=arm-rockchip830-linux-uclibcgnueabihf- rv1103g-luckfox-pico-mini.img BOOT_ITS=/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/kernel/boot.its -j1 || exit 1
make[1]: Entering directory '/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/kernel'
/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/kernel/scripts/extract-cert.c:24:10: fatal error: openssl/engine.h: No such file or directory
   24 | #include <openssl/engine.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [scripts/Makefile.host:95: scripts/extract-cert] Error 1
make[3]: *** [/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/kernel/Makefile:1326: scripts] Error 2
make[2]: *** [arch/arm/Makefile:375: rv1103g-luckfox-pico-mini.img] Error 2
make[1]: *** [Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/kernel'
make: *** [Makefile:489: kernel] Error 1
make: Leaving directory '/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv'
[build.sh:error] Running build_kernel failed!
[build.sh:error] exit code 2 from line 840:
[build.sh:info]     make kernel -C ${SDK_SYSDRV_DIR} $kernel_build_options KERNEL_DTS=${RK_KERNEL_DTS} KERNEL_CFG=${RK_KERNEL_DEFCONFIG} KERNEL_CFG_FRAGMENT=${RK_KERNEL_DEFCONFIG_FRAGMENT}
[oct1158@fed41-bh8f7e0 luckfox-pico]$
一派掌門 二十級
2樓 發表于:2025-3-11 13:52

Building expects openssl/engine.h despite engine API being deprecated?

Fedora 41 fails to build libssh as openssl/engine.h is no longer included with the openssl-devel package. For the time being compatibility is offered via a separate openssl-devel-engine package.

Broader failures will occur once a future OpenSSL 4.0 release arrives. For context the engine API has been deprecated for a while AFAIK and will be dropped in the next major OpenSSL release.

Build error output

Most of that can be ignored, I just wanted to draw attention to the failure cause:

libssh2/src/openssl.h:83:10: fatal error: 'openssl/engine.h' file not found

So that line is upstream at: https://github.com/libssh2/libssh2/blob/libssh2-1.11.0/src/openssl.h#L84

I'm not sure if an issue needs to be raised there as they seem to have support for no engine, thus perhaps it's something required to be detected / handled here instead?

https://github.com/alexcrichton/ssh2-rs/issues/328

 
一派掌門 二十級
3樓 發表于:2025-3-11 13:53

解决办法:安装openssl-devel-engine软件包。

[oct1158@fed41-bh8f7e0 luckfox-pico]$ sudo dnf install openssl-devel-engine
Updating and loading repositories:
Repositories loaded.
Package                  Arch    Version                  Repository        Size
Installing:
 openssl-devel-engine    x86_64  1:3.2.4-1.fc41           updates       52.8 KiB

Transaction Summary:
 Installing:         1 package

Total size of inbound packages is 43 KiB. Need to download 43 KiB.
After this operation, 53 KiB extra will be used (install 53 KiB, remove 0 B).
Is this ok [y/N]: y
[1/1] openssl-devel-engine-1:3.2.4-1.fc 100% |  97.4 KiB/s |  43.0 KiB |  00m00s
--------------------------------------------------------------------------------
[1/1] Total                             100% |  54.2 KiB/s |  43.0 KiB |  00m01s
Running transaction
[1/3] Verify package files              100% | 500.0   B/s |   1.0   B |  00m00s
[2/3] Prepare transaction               100% |   3.0   B/s |   1.0   B |  00m00s
[3/3] Installing openssl-devel-engine-1 100% | 151.9 KiB/s |  68.2 KiB |  00m00s
Complete!
[oct1158@fed41-bh8f7e0 luckfox-pico]$

 
一派掌門 二十級
4樓 發表于:2025-3-11 13:54

安装后就有openssl/engine.h文件了。

[oct1158@fed41-bh8f7e0 ~]$ ls -l /usr/include/openssl/engine.h
-rw-r--r-- 1 root root 38823 Feb 12 08:00 /usr/include/openssl/engine.h
[oct1158@fed41-bh8f7e0 ~]$

 

回復帖子

內容:
用戶名: 您目前是匿名發表
驗證碼:
(快捷鍵:Ctrl+Enter)
 

本帖信息

點擊數:25 回複數:3
評論數: ?
作者:巨大八爪鱼
最後回復:巨大八爪鱼
最後回復時間:2025-3-11 13:54
 
©2010-2025 Purasbar Ver2.0
除非另有聲明,本站採用創用CC姓名標示-相同方式分享 3.0 Unported許可協議進行許可。