OpenWrt Forum Archive

Topic: libcrypto.so.0.9.7 missing

The content of this topic has been archived on 25 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi guys,
i'm trying to use freeradius (http://www.frontios.com/freeradius.html) on my WRT54GS (with DD-WRT Firmware). I know this is openwrt but i hope you can help me anyway:

When i start "radiusd -X" i get this errormessage.
radiusd: can't load library 'libcrypto.so.0.9.7

But i've installed this lib. It's in /jffs/usr/lib/libcrypto.so.0.9.7

What i have to modify so that i can start radiusd -X ??

Thank!

Greets
usgard

There are two ways to solve this problem, first do :

LD_LIBRARY_PATH=/usr/openssl/lib 
LD_PRELOAD=/usr/lib/libcrypto.so 
export LD_LIBRARY_PATH LD_PRELOAD 
radiusd -X -A

Or start an strace (very verbose) :

strace radiusd -X -A to see where the problem is exactly : permission, missing symlink ...

Hi RItalMan,
thanks for your help.
i've installed strace but i get a new error when i try "strace radiusd -X -A":
strace: can't resolve symbol 'ptrace'

And the other way also doesb't work:

LD_LIBRARY_PATH=/usr/openssl/lib
LD_PRELOAD=/usr/lib/libcrypto.so
export LD_LIBRARY_PATH LD_PRELOAD
radiusd -X -A

still the same error:
radiusd: can't load library '/usr/lib/libcrypto.so'

any ideas?

greets
usgard

Install openwrt and "Things Will Just Work (tm)"

Hi smile
sry my poor english

with dd-wrt missing libcrypto problems are either missing libopenssl ipk or path problems

more problematic (still unsolved) is missing 'libgcc_s.so.1',
asking in dd-wrt forums don't helped me, and i switched to openwrt, hope you are more seccessful smile

/jffs/peapd # radiusd -X
radiusd: can't load library 'libgcc_s.so.1'

Ok, just create a symlink to solve it :

ln -s /lib/libc.so /lib/libgcc_so.1

What firmware and freeradius packages are you using ?

If I understand well you said you install libcrypto in /jffs/usr/lib/libcrypto.so.0.9.7 , freeradius search for library in /usr/lib, it is normal that system doesnt work smile ... are you sure you have everythig good set with your file system ?

Also use command ldd, it will show if all links are corect :

root@Linksys:/# ldd /usr/sbin/radiusd
        libcrypt.so.0 => /lib/libcrypt.so.0 (0x2aaee000)
        libnsl.so.0 => /lib/libnsl.so.0 (0x2ab42000)
        libresolv.so.0 => /lib/libresolv.so.0 (0x2ab83000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x2abc4000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x2ac1a000)
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x2ad3f000)
        libradius-1.0.4.so => /usr/lib/freeradius/libradius-1.0.4.so (0x2adab000)
        libltdl.so.3 => /usr/lib/libltdl.so.3 (0x2adff000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2ae48000)
        libc.so.0 => /lib/libc.so.0 (0x2ae97000)
        libdl.so.0 => /lib/libdl.so.0 (0x2af39000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)

hope that will help.

usgard asked about DD-WRT, it's other firmware for WRT54. It's based on alchemy and merging with openwrt.
I managed one step further, but falled in problems with 'ctime_r'
Every freeradius ipk variant finishes with this error:
Any ideas?

~ # radiusd -X
radiusd: can't load library 'libltdl.so.3'
~ # find / -name liblt*
/jffs/usr/lib/libltdl.so.3
/jffs/usr/lib/libltdl.so.3.1.1
/jffs/jffs/usr/lib/ipkg/info/libltdl.list
find: /proc/10/fd: No such file or directory
~ # export LD_LIBRARY_PATH=/jffs/usr/lib
~ # radiusd -X
radiusd: can't load library 'libradius-1.0.2.so'
~ # find / -name librad*
/jffs/lib/libradius-1.0.2.la
/jffs/lib/libradius-1.0.2.so
/jffs/lib/libradius.la
/jffs/lib/libradius.so
find: /proc/10/fd: No such file or directory
~ # export LD_LIBRARY_PATH=/jffs/usr/lib:/jffs/lib
~ # radiusd -X
radiusd: can't resolve symbol 'ctime_r'
~ #

Hi,
thanks for your help.


i've done the same like kvborg:

~ # export LD_LIBRARY_PATH=/jffs/usr/lib
~ # export LD_LIBRARY_PATH=/jffs/usr/lib:/jffs/lib


but then it says:
radiusd: can't load library 'libgcc_s.so.1'
this has i solved with:
ln -s /lib/libc.so /jffs/lib/libgcc_so.1

Now:
radiusd: can't load library 'libcrypto.so.0.9.7'
But 'libcrypto.so.0.9.7' is already in the right directory (?):
/jffs/usr/lib/libcrypto.so.0.9.7

Any ideas?
Greets
usgard

(Last edited by usgard on 28 Jul 2005, 08:17)

When using/upgrading to OpenWRT all problems would be solved and all error messages gone away.

olli_04 wrote:

When using/upgrading to OpenWRT all problems would be solved and all error messages gone away.

Thanks for the hint...but i love dd-wrt, cause it's easy to use with the nice webinterface.

greets
usgard

p.s.: at the next time you can save comments like this (i hope that the meaning in english is the same like in german)!

(Last edited by usgard on 28 Jul 2005, 09:21)

i am getting a similar error (though i am using enhanced ctorrent)

heres what i get

root@OpenWrt:/usr/sbin# ldd /usr/sbin/ctorrent
        libcrypto.so.0.9.7 => not found
        libuClibc++.so.0 => /lib/libuClibc++.so.0 (0x2aaed000)
        libc.so.0 => /lib/libc.so.0 (0x2ab5e000)
        libm.so.0 => /lib/libm.so.0 (0x2ac01000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2ac48000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)

except that it doesnt seem that library exists

root@OpenWrt:/lib# ls
config                libgcc_s.so.1         libuClibc++-0.2.1.so
firmware              libm-0.9.28.so        libuClibc++.so.0
ld-uClibc-0.9.28.so   libm.so.0             libuClibc-0.9.28.so
ld-uClibc.so.0        libnsl-0.9.28.so      libutil-0.9.28.so
libc.so.0             libnsl.so.0           libutil.so.0
libcrypt-0.9.28.so    libresolv-0.9.28.so   modules
libcrypt.so.0         libresolv.so.0        network
libdl-0.9.28.so       librt-0.9.28.so       wifi
libdl.so.0            librt.so.0

im sure its something simple but alas i am still somewhat of a noob


im running 2.6 kamikaze on a wl500gP if that is of any help

(Last edited by 22bsti on 30 May 2007, 01:41)

The discussion might have continued from here.