Device: unknown with Intel Atom E3845 CPU
Architecture: i386_pentium4
OpenWRT version: 21.02.1, can't upgrade due to old software
I have installed "ntpd" and "file" packages through opkg with command "opkg install {packageName}" but when i trying to start it, bash returns "no such file or directory". Of course i googled it in every known variant (just in case). And the question is "What should i do to run it successfully?"
Here are some details of my research:
If i run with /lib/ld-linux.so.2 /sbin/ntdp
it returns /sbin/ntpd: symbol lookup error: /sbin/ntpd: undefined symbol: __stime64
and with /usr/bin/file
similar: /usr/bin/file: symbol lookup error: /usr/lib/liblzma.so.5: undefined symbol: pthread_create.
I would like to check which libs these programs want but ldd returns the same "no such file or directory".
If i run "file" on my Ubuntu machine and test these executables it will show the same info as for bash (that was also copied from i386 machine) but with different interpreter:
"file" returns:
guest@PC:~$ file ntpd
ntpd: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-i386.so.1, no section header
guest@PC:~$ file bash
bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 4.14.0, stripped
If i understand correctly, ld-musl and ld-linux are the same in some way. However i could not find any "musl" package but "musl-fts" (that i installed just in hope it will help).
I got more details about these problems with LD_DEBUG and here is the last part of each run with LD_DEBUG='all':
ntpd
2330: relocation processing: /sbin/ntpd
2330: symbol=BN_div; lookup in file=/sbin/ntpd [0]
2330: symbol=BN_div; lookup in file=/usr/lib/libcap.so.2 [0]
2330: symbol=BN_div; lookup in file=/usr/lib/libcrypto.so.1.1 [0]
2330: binding file /sbin/ntpd [0] to /usr/lib/libcrypto.so.1.1 [0]: normal symbol `BN_div' [OPENSSL_1_1_0]
2330: symbol=sem_init; lookup in file=/sbin/ntpd [0]
2330: symbol=sem_init; lookup in file=/usr/lib/libcap.so.2 [0]
2330: symbol=sem_init; lookup in file=/usr/lib/libcrypto.so.1.1 [0]
2330: symbol=sem_init; lookup in file=/lib/libgcc_s.so.1 [0]
2330: symbol=sem_init; lookup in file=/lib/libc.so [0]
2330: symbol=sem_init; lookup in file=/lib/libdl.so.2 [0]
2330: symbol=sem_init; lookup in file=/lib/libpthread.so.0 [0]
2330: binding file /sbin/ntpd [0] to /lib/libpthread.so.0 [0]: normal symbol `sem_init'
2330: symbol=EVP_DigestInit_ex; lookup in file=/sbin/ntpd [0]
2330: symbol=EVP_DigestInit_ex; lookup in file=/usr/lib/libcap.so.2 [0]
2330: symbol=EVP_DigestInit_ex; lookup in file=/usr/lib/libcrypto.so.1.1 [0]
2330: binding file /sbin/ntpd [0] to /usr/lib/libcrypto.so.1.1 [0]: normal symbol `EVP_DigestInit_ex' [OPENSSL_1_1_0]
2330: symbol=tolower; lookup in file=/sbin/ntpd [0]
2330: symbol=tolower; lookup in file=/usr/lib/libcap.so.2 [0]
2330: symbol=tolower; lookup in file=/usr/lib/libcrypto.so.1.1 [0]
2330: symbol=tolower; lookup in file=/lib/libgcc_s.so.1 [0]
2330: symbol=tolower; lookup in file=/lib/libc.so [0]
2330: binding file /sbin/ntpd [0] to /lib/libc.so [0]: normal symbol `tolower'
2330: symbol=__stime64; lookup in file=/sbin/ntpd [0]
2330: symbol=__stime64; lookup in file=/usr/lib/libcap.so.2 [0]
2330: symbol=__stime64; lookup in file=/usr/lib/libcrypto.so.1.1 [0]
2330: symbol=__stime64; lookup in file=/lib/libgcc_s.so.1 [0]
2330: symbol=__stime64; lookup in file=/lib/libc.so [0]
2330: symbol=__stime64; lookup in file=/lib/libdl.so.2 [0]
2330: symbol=__stime64; lookup in file=/lib/libpthread.so.0 [0]
2330: symbol=__stime64; lookup in file=/lib/ld-linux.so.2 [0]
2330: /sbin/ntpd: error: symbol lookup error: undefined symbol: __stime64 (fatal)
/sbin/ntpd: symbol lookup error: /sbin/ntpd: undefined symbol: __stime64
file
2332: binding file /usr/lib/liblzma.so.5 [0] to /usr/lib/liblzma.so.5 [0]: normal symbol `lzma_index_block_count'
2332: symbol=sysconf; lookup in file=/usr/bin/file [0]
2332: symbol=sysconf; lookup in file=/usr/lib/libmagic.so.1 [0]
2332: symbol=sysconf; lookup in file=/lib/libc.so [0]
2332: binding file /usr/lib/liblzma.so.5 [0] to /lib/libc.so [0]: normal symbol `sysconf'
2332: symbol=lzma_lzma_preset; lookup in file=/usr/bin/file [0]
2332: symbol=lzma_lzma_preset; lookup in file=/usr/lib/libmagic.so.1 [0]
2332: symbol=lzma_lzma_preset; lookup in file=/lib/libc.so [0]
2332: symbol=lzma_lzma_preset; lookup in file=/usr/lib/liblzma.so.5 [0]
2332: binding file /usr/lib/liblzma.so.5 [0] to /usr/lib/liblzma.so.5 [0]: normal symbol `lzma_lzma_preset'
2332: symbol=pthread_create; lookup in file=/usr/bin/file [0]
2332: symbol=pthread_create; lookup in file=/usr/lib/libmagic.so.1 [0]
2332: symbol=pthread_create; lookup in file=/lib/libc.so [0]
2332: symbol=pthread_create; lookup in file=/usr/lib/liblzma.so.5 [0]
2332: symbol=pthread_create; lookup in file=/usr/lib/libbz2.so.1.0 [0]
2332: symbol=pthread_create; lookup in file=/usr/lib/libz.so.1 [0]
2332: symbol=pthread_create; lookup in file=/lib/libgcc_s.so.1 [0]
2332: symbol=pthread_create; lookup in file=/lib/ld-linux.so.2 [0]
2332: /usr/lib/liblzma.so.5: error: symbol lookup error: undefined symbol: pthread_create (fatal)
/usr/bin/file: symbol lookup error: /usr/lib/liblzma.so.5: undefined symbol: pthread_create
As for files, all was downloaded from original [repository] (http://downloads.openwrt.org/releases/21.02.1/packages/i386_pentium4/packages) and installed by it self. Even if i try to install it downloading a package - the same result.
Suggest me anything that would probably help.
Thank you in advance.