Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: kp on January 19, 2019, 03:15:59 AM
-
How do I resolve an undefined reference for SSL_library_init() in tiny OS 10.0 beta 5?
-
Hi kp
That depends on what you were doing when that message came up. If you were compiling, it could just be a missing path or
linker directive. If it's the result of running a program, it may be a compatibility issue with another program/library. Without
you providing some context it's just guesswork.
-
I am trying to run openvpn from 9.0.3 base on 10.0 beta 5.
-
Hi kp
I wonder if it's a conflict between 2 openssl packages being installed. What does this return:
ldd /usr/local/sbin/openvpn
-
no dependency on openssl. only a dependency on lib crypto.
-
what tcl do I need to install for libssl.so.1.0.0 and libcrypto.so.1.0.0 to resolve SSL_library_init)?
the tiny os is 10.0 beta 5 but has many 9.0.3 components?
-
Those are both part of openssl.tcz.
With some libraries, old and new versions will not live together. It would be best to remove the old openssl and then recompile anything that is linking against openssl libraries.
-
openvpn has a dependency on libssl-1.0.0 and libcrypto-1.0.0. but the openssl i downloaded from 9.0.3 repo for 10.0 beta 5 has these libraries at version 1.1.. So can you tell me which versions to download on my tiny os 10.0 beta5 for all related components and thereby avoid any version mismatch?
-
The piCore-9.x repo has libssl.so.1.0.0 and libcrypto.so.1.0.0, see:
http://tinycorelinux.net/9.x/armv6/tcz/openssl.tcz.list
-
I can see that the list does not have libopenssl.so, so how will a dependency on SSL_library_init() be resolved?
-
Hi kp
There is no libopenssl.so, it's called libssl.so.
-
when I did
# nm -A libel.so |grep SSL_library_init
i didn't get a match. same with libel.a. so how do we resolve it?
-
libssl.so does not have any symbols maybe because it is stripped, but libssl.a has symbols and SSL_library_init is not defined by that lib. So the requirement is to locate a tcz file which contains a library such that
nm -A <lib>|grep SSL_library_init
yields an output.
-
Took all of about 15 minutes to recompile from source against the latest libraries.
But since I don't run openvpn, would you please test this out. All extensions, source and build scripts are provided in the zip file.
https://dl.dropboxusercontent.com/s/ka1012g0s3phu76/openvpn.zip
This has dependancies of
lzo.tcz, liblz4.tcz and openssl.tcz
OpenVPN 2.4.6 armv7l-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jan 21 2019
library versions: OpenSSL 1.1.0h 27 Mar 2018, LZO 2.09
Originally developed by James Yonan
Copyright (C) 2002-2018 OpenVPN Inc <sales@openvpn.net>
Compile time defines: enable_async_push='no' enable_comp_stub='no' enable_crypto='yes' enable_crypto_ofb_cfb='yes' enable_debug='yes' enable_def_auth='yes' enable_dlopen='unknown' enable_dlopen_self='unknown' enable_dlopen_self_static='unknown' enable_fast_install='yes' enable_fragment='yes' enable_iproute2='no' enable_libtool_lock='yes' enable_lz4='yes' enable_lzo='yes' enable_management='yes' enable_multihome='yes' enable_pam_dlopen='no' enable_pedantic='no' enable_pf='yes' enable_pkcs11='no' enable_plugin_auth_pam='no' enable_plugin_down_root='yes' enable_plugins='yes' enable_port_share='yes' enable_selinux='no' enable_server='yes' enable_shared='yes' enable_shared_with_static_runtimes='no' enable_small='no' enable_static='yes' enable_strict='no' enable_strict_options='no' enable_systemd='no' enable_werror='no' enable_win32_dll='yes' enable_x509_alt_username='no' with_aix_soname='aix' with_crypto_library='openssl' with_gnu_ld='yes' with_mem_check='no' with_sysroot='no'
devel:/usr/local/sbin$ ldd openvpn
linux-vdso.so.1 (0x7eedf000)
libnsl.so.1 => /lib/libnsl.so.1 (0x76eb0000)
libresolv.so.2 => /lib/libresolv.so.2 (0x76e8c000)
liblzo2.so.2 => /usr/local/lib/liblzo2.so.2 (0x76e60000)
liblz4.so.1 => /usr/local/lib/liblz4.so.1 (0x76e43000)
libcrypto.so.1.1 => /usr/local/lib/libcrypto.so.1.1 (0x76c78000)
libssl.so.1.1 => /usr/local/lib/libssl.so.1.1 (0x76c13000)
libdl.so.2 => /lib/libdl.so.2 (0x76c00000)
libc.so.6 => /lib/libc.so.6 (0x76ac0000)
libz.so.1 => /usr/lib/libz.so.1 (0x76a9d000)
libpthread.so.0 => /lib/libpthread.so.0 (0x76a74000)
/lib/ld-linux-armhf.so.3 (0x76ed3000)
-
Thanks. When I tried
# tce-load -i openvpn.tcz
it says liblz4 not found.
I did a wget for lz4.tcz from 9.x/armv6 and even after installing it, I am getting the same error. So, how do I install your package? Also, why have you given me a tar.xz and .dep and .info files?
-
I told you I included everything, All extensions, source and build script.
.dep files are the dependencies of the package
.info files include information about the packages
.md5.txt are the checksums of the packages
The error message that you received was liblz4.tcz was missing. Why did you download lz4.tcz?