What's new

RT-AC56U svnserve: can't load library 'libresolv.so.0'

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

tiskora

Occasional Visitor
Hello

I'm trying to install a svn server on RT-AC56U with Asuswrt-Merlin:

I installed Download Master from USB Application:

Then I run ipkg install svn, it didn't find a package and I find the solution to edit ipkg.conf to use only "src/gz optware.mbwe-bluering http://ipkg.nslu2-linux.org/feeds/optware/mbwe-bluering/cross/stable"

then I run again ipkg install svn and it worked, but now then I try to run the svnserve after creating the directory:

svnadmin create /tmp/mnt/sdb1/myrep
svnserve -d -r /tmp/mnt/sdb1/myrep


I get this error:
svnserve: can't load library 'libresolv.so.0'

I tried several things but with no success:
ipkg install -force-reinstall uclibc-opt
ipkg install -force-reinstall ipkg-opt
ipkg install -force-reinstall svn

Any idea?
 
admin:/tmp/home/root# ldd /opt/bin/svnserve
libsvn_repos-1.so.0 => /opt/lib/libsvn_repos-1.so.0 (0x40176000)
libsvn_fs-1.so.0 => /opt/lib/libsvn_fs-1.so.0 (0x401ab000)
libsvn_fs_fs-1.so.0 => /opt/lib/libsvn_fs_fs-1.so.0 (0x401c2000)
libsvn_fs_util-1.so.0 => /opt/lib/libsvn_fs_util-1.so.0 (0x40167000)
libsvn_delta-1.so.0 => /opt/lib/libsvn_delta-1.so.0 (0x40123000)
libsvn_subr-1.so.0 => /opt/lib/libsvn_subr-1.so.0 (0x401ed000)
libsvn_ra_svn-1.so.0 => /opt/lib/libsvn_ra_svn-1.so.0 (0x40243000)
libexpat.so.1 => /opt/lib/libexpat.so.1 (0x4025f000)
libz.so.1 => /opt/lib/libz.so.1 (0x400be000)
libsqlite3.so.0 => /opt/lib/libsqlite3.so.0 (0x40284000)
libdl.so.0 => /lib/libdl.so.0 (0x40320000)
libpthread.so.0 => /opt/lib/libpthread.so.0 (0x4032b000)
libmagic.so.1 => /opt/lib/libmagic.so.1 (0x400f6000)
libaprutil.so.0 => /opt/lib/libaprutil.so.0 (0x40140000)
libapr.so.0 => /opt/lib/libapr.so.0 (0x40346000)
libsasl2.so.2 => /opt/lib/libsasl2.so.2 (0x40373000)
libintl.so.3 => /opt/lib/libintl.so.3 (0x40391000)
libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0x40088000)
libc.so.0 => /opt/lib/libc.so.0 (0x403a1000)
libpthread.so.0 => /lib/libpthread.so.0 (0x403fb000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x400dc000)
libc.so.0 => /lib/libc.so.0 (0x40415000)
libiconv.so.2 => /opt/lib/libiconv.so.2 (0x40489000)
libuuid.so.1 => /opt/lib/libuuid.so.1 (0x40572000)
libm.so.0 => /opt/lib/libm.so.0 (0x4057e000)
libcrypt.so.0 => /opt/lib/libcrypt.so.0 (0x4005c000)
libresolv.so.0 => not found
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x400b0000)

How to fix this?
 
admin:/lib# LD_LIBRARY_PATH=/opt/lib svnserve
You must specify exactly one of -d, -i, -t or -X.
Type 'svnserve --help' for usage.

admin:/lib# find / -name 'libresolv*'
/tmp/mnt/sda1/asusware.arm/bin/libresolv.so.0
/tmp/mnt/sda1/asusware.arm/lib/libresolv-0.9.28.so
/tmp/mnt/sda1/asusware.arm/lib/libresolv.so
/tmp/mnt/sda1/asusware.arm/lib/libresolv.so.0
/tmp/mnt/sda1/asusware.arm/lib/libresolvBKP.so.0

admin:/lib# LD_LIBRARY_PATH=/tmp/mnt/sda1/asusware.arm/lib/

admin:/lib# svnserve -d -r /tmp/mnt/sdb1/repo
svnserve: can't load library 'libresolv.so.0'

Still not working
 
Still not working
It's working, according to:
admin:/lib# LD_LIBRARY_PATH=/opt/lib svnserve
You must specify exactly one of -d, -i, -t or -X.
Type 'svnserve --help' for usage.
You have to specify LD_LIBRARY_PATH before every svn* call:
Code:
 LD_LIBRARY_PATH=/opt/lib svnserve -d -r /tmp/mnt/sdb1/repo
You can do
Code:
export LD_LIBRARY_PATH=/opt/lib
to make it work in current terminal session, but I have to warn you about firmware binaries (from /bin, /usr/bin)which may stop to work then.

It's a linkage error as I suspected. I know it's better to report that to optware maintainers, but it's almost hopeless.
 
Last edited:
It works

Works with:
LD_LIBRARY_PATH=/opt/lib svnserve -d -r /tmp/mnt/sdb1/repo

Thank you very much.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top