Could someone help me figure out how to get this library installed in 24.10 x86-64?
Error loading shared library libresolv.so.2: No such file or directory
Could someone help me figure out how to get this library installed in 24.10 x86-64?
Error loading shared library libresolv.so.2: No such file or directory
what openwrt command generated this error message ?
ldd
on an external 64-bit Linux binary app. The question is how to install libresolve.so.2
: what package is it a part of? It seems to had been installed prior to 24.10, but I cannot find it now. There are posts in this forum that list it among other libraries, but those posts are a couple of years old.
Run your other linux in podman docker lxc.
Well, it is not really an option for ctrld
, which is a dns proxy.
Have you got musl-libc or libc installed?
opkg list-installed | grep libc
libc - 1.2.5-r4
libcap - 2.69-r1
libcares - 1.33.1-r1
libcgroup - 2.0.3-r1
libcomerr0 - 1.47.0-r2
libcurl4 - 8.10.1-r1
Try alpine binary, libresolv feels like glibc
Well, they do provide a linux-nocgo
library that works, but I also wanted to find out why libresolve
is missing: it seemed to have been a part for OpenWrt as of a couple of years ago. There are posts here that list this file.
You can't just take any externally provided binary and expect it to work, even less if it's linked against a completely different set of libraries (and the libc in particular). This would need to be rebuilt in an OpenWrt environment, using the SDK (or buildroot).
Sigh. I have no expectations. I merely asked if libresolve
is still provided by OpenWrt, because it used to be.
That was a very long way of saying no, it is not provided
. Thank you.
I believe BIND.
There are several packages that start with bind-
and it is not in bind-libs
. The other packages provide different binaries.
opkg list | awk '{ print $1; }' | grep bind
bind-check
bind-client
bind-ddns-confgen
bind-dig
bind-dnssec
bind-host
bind-libs
bind-nslookup
bind-rndc
bind-server
bind-server-filter-aaaa
bind-tools
collectd-mod-bind
node-serialport-bindings
rpcbind
rpm -qf /usr/lib64/libresolv.so
glibc-devel-2.38-,,,
Likely ln -s libc.so libresolv.so.2
(musl integrates resolv, pthread math in one file)
ldd
is now happy, but the app still does not run. I guess there is more to it and they do have a version that works. Thx for the suggestion, though.
ldd ctrld
/lib64/ld-linux-x86-64.so.2 (0x7fd6f6c4c000)
libc.so => /lib64/ld-linux-x86-64.so.2 (0x7fd6f6c4c000)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7fd6f6c4c000)
./ctrld --help
-ash: ./ctrld: not found
Probably worth trying to cross-compile the binary for OpenWRT, not that there is any shortage of DNS proxy services.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.