Openssl-util (1.1.1l-1) - Error relocating /usr/lib/libssl.so.1.1: __time64: symbol not found

Hi,
in latest package I have like below:

root@OpenWrt:~# opkg --force-reinstall install openssl-util
Removing package openssl-util from root...
Multiple packages (libgcc1 and libgcc1) providing same name marked HOLD or PREFER. Using latest.
Installing openssl-util (1.1.1l-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/openssl-util_1.1.1l-1_mipsel_24kc.ipk
Configuring openssl-util.
root@OpenWrt:~# openssl
Error relocating /usr/lib/libssl.so.1.1: __time64: symbol not found
Error relocating /usr/lib/libssl.so.1.1: __gettimeofday_time64: symbol not found
Error relocating /usr/lib/libcrypto.so.1.1: __select_time64: symbol not found
Error relocating /usr/lib/libcrypto.so.1.1: __gettimeofday_time64: symbol not found
Error relocating /usr/lib/libcrypto.so.1.1: __fstat_time64: symbol not found
Error relocating /usr/lib/libcrypto.so.1.1: __dlsym_time64: symbol not found
Error relocating /usr/lib/libcrypto.so.1.1: __time64: symbol not found
Error relocating /usr/lib/libcrypto.so.1.1: __stat_time64: symbol not found
Error relocating /usr/lib/libcrypto.so.1.1: __clock_gettime64: symbol not found
Error relocating /usr/lib/libcrypto.so.1.1: __gmtime64_r: symbol not found
Error relocating /usr/bin/openssl: __time64: symbol not found
Error relocating /usr/bin/openssl: __fstat_time64: symbol not found
Error relocating /usr/bin/openssl: __stat_time64: symbol not found
Error relocating /usr/bin/openssl: __lstat_time64: symbol not found
Error relocating /usr/bin/openssl: __select_time64: symbol not found
root@OpenWrt:~#

May I use some external repo to fast install proper openssl-util without rellocation error?

Assuming that you are using a master snapshot:
First guess is that your firmware has been compiled with the older musl C library 1.1.24 instead of the curent 1.2.2. The musl version upgrade in September changed the internal time handling from 32bit to 64bit even in the 32bit targets (like mipsel24).

You likely need to sysupgrade your firmware to the current version, and then install openssl compiled with the same libraries.

1 Like

Hi, yep - using master snapshot.

root@OpenWrt:~# opkg list *libc*
libc - 1.1.24-3

root@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r17548-b62a4cfc93'
DISTRIB_TARGET='ramips/mt76x8'
DISTRIB_ARCH='mipsel_24kc'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r17548-b62a4cfc93'
DISTRIB_TAINTS=''
root@OpenWrt:~#

OK, let's see.
Thanks for help.

After upgrade brilliant, thank you!

root@OpenWrt:~# openssl version
OpenSSL 1.1.1l  24 Aug 2021
root@OpenWrt:~#

You are welcome.

Just remember in future that the master branch (and its snapshots) are meant for momentary testing use, and there is no assumption that you can install any compatible packages later, as the core libraries ets can change. Like here.

Hi, I'm having the same error when trying to use a library I manually cross-compiled and installed, but I'm not using the master snapshot and still have the older musl C library

root@Omega-B273:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='21.02.0'
DISTRIB_REVISION='r16279-5cc0535800'
DISTRIB_TARGET='ramips/mt76x8'
DISTRIB_ARCH='mipsel_24kc'
DISTRIB_DESCRIPTION='OpenWrt 21.02.0 r16279-5cc0535800'
DISTRIB_TAINTS=''

root@Omega-B273:~# opkg list libc
libc - 1.1.24-3

I thought I could upgrade libc with opkg upgrade libc, but it doesn't upgrade to the 1.2.2 version.
Do you know how could I upgrade libc or anything I could try?

You need to reflash. Like the kernel, libc cannot be updated via opkg.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.