Kernel panic after failing to load libssl.so.1.0.0 #kernel
I have patched busybox httpd with open ssl APIs to support https. I have patched *Makefile.flags* to include opessl library as below.
-------------------------------------
Makefile_edit.flags 2020-05-25 14:18:23.328520511 +0200 renamed from Makefile.flags 2020-05-25 13:52:54.424147022 +0200 +0 -0
@@ -126,6 +126,10 @@
LDLIBS += m
endif
+# Openssl Library
+#LDLIBS += openssl
+LDLIBS += m ssl
+
ifeq ($(CONFIG_PAM),y)
# libpam uses libpthread, so for static builds busybox must be linked to # libpthread. On some platforms that requires an explicit -lpthread, so -------------------------------------------------------- I am able to rebake busybox without any errors. I tested the https functionality by pushing the busybox binary using adb to the */data/* folder. When I flash the firmware image to the board, while booting the kernel I get the following error. "/bin/sh: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory" After this Kernel panic happens. libssl.so.1.0.0 is present in /usr/lib. I don't why it fails to load. I need help in resolving this problem.
Thanks,
Aravind
you need to add openssl to RDEPENDS for busybox.
Quoted 30 lines · On Wed, Sep 30, 2020 at 12:00 AM <[email protected]> wrote:
I have patched busybox httpd with open ssl APIs to support https. I have patched Makefile.flags to include opessl library as below.
-------------------------------------Makefile_edit.flags 2020-05-25 14:18:23.328520511 +0200 renamed from Makefile.flags 2020-05-25 13:52:54.424147022 +0200 +4
-1@@ -126,6 +126,10 @@ LDLIBS += m endif +# Openssl Library +#LDLIBS += openssl +LDLIBS += m ssl + ifeq ($(CONFIG_PAM),y) # libpam uses libpthread, so for static builds busybox must be linked to # libpthread. On some platforms that requires an explicit -lpthread, so --------------------------------------------------------I am able to rebake busybox without any errors. I tested the https functionality by pushing the busybox binary using adb to the /data/ folder. When I flash the firmware image to the board, while booting the kernel I get the following error.
"/bin/sh: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory" After this Kernel panic happens.
libssl.so.1.0.0 is present in/usr/lib. I don't why it fails to load. I need help in resolving this problem.Thanks,
Aravind
Copying libssl.so.1.0.0 to boot initrd image solved the problem.
Thanks,
Aravind