2020-02-21 09:49 AM
I’m getting a build error when attempting to build the linux kernel.
ERROR:
scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
#include <openssl/bio.h>
I have followed instructions from https://wiki.st.com/stm32mpu/wiki/Modify,_rebuild_and_reload_the_Linux%C2%AE_kernel
and README.HOW_TO.txt
Get same error when following either document. I don’t see “openssl�? included in the kernel source.
Any suggestion on how to fix this?
Thanks in advance.
Solved! Go to Solution.
2020-02-24 12:19 AM
Your host on which you cross-compile the kernel needs the libssl-dev packet. On Ubuntu just install it via
sudo apt-get install libssl-dev
This should solve the error.
2020-02-24 12:19 AM
Your host on which you cross-compile the kernel needs the libssl-dev packet. On Ubuntu just install it via
sudo apt-get install libssl-dev
This should solve the error.
2020-02-24 12:31 AM
Thanks @Lukas Brückner you are right.
@JSpra
The complete package dependence list is available in wiki page https://wiki.st.com/stm32mpu/wiki/PC_prerequisites
PC $> sudo apt-get install ncurses-dev libncurses5-dev libncursesw5-dev lib32ncurses5 libssl-dev linux-headers-generic u-boot-tools device-tree-compiler bison flex g++
Hope it help
Olivier
2020-02-24 07:26 AM
Looks like I am missing "linux-headers-generic" package. I did not notice it failed to install when I was adding the prerequisites. For some reason I don't have access to server that provides this package. I recently started having other network issues, I assume this this is the cause. Will run this down on my end, sorry to bother you with this.
I appreciate you help!