Thanks for your response. Here is what I set : bash-3.00# crle Configuration file [version 4]: /var/ld/ld.config Default Library Path (ELF): /lib/:/usr/lib:/usr/local/ssl/lib Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default) Command line: crle -c /var/ld/ld.config -l /lib/:/usr/lib:/usr/local/ssl/lib bash-3.00# echo $LD_LIBRARY_PATH /usr/lib:/usr/local/ssl/lib Looks like the issue is not the search path because it already serached to my desired location /usr/local/ssl/lib before /usr/sfw/lib. The issue is why Freeradius radiusd is looking for object libssl.so.0.9.7 libcrypto.so.0.9.7, and obviously it will not find at /usr/local/ssl/lib ? Here is the (partial) output of ldd -s radiusd find object=libssl.so.0.9.7; required by /usr/local/sbin/radiusd search path=/usr/local/lib:/usr/local/ssl/lib:/usr/sfw/lib (RPATH from file /usr/local/sbin/radiusd) trying path=/usr/local/lib/libssl.so.0.9.7 trying path=/usr/local/ssl/lib/libssl.so.0.9.7 trying path=/usr/sfw/lib/libssl.so.0.9.7 libssl.so.0.9.7 => /usr/sfw/lib/libssl.so.0.9.7 find object=libcrypto.so.0.9.7; required by /usr/local/sbin/radiusd search path=/usr/local/lib:/usr/local/ssl/lib:/usr/sfw/lib (RPATH from file /usr/local/sbin/radiusd) trying path=/usr/local/lib/libcrypto.so.0.9.7 trying path=/usr/local/ssl/lib/libcrypto.so.0.9.7 trying path=/usr/sfw/lib/libcrypto.so.0.9.7 libcrypto.so.0.9.7 => /usr/sfw/lib/libcrypto.so.0.9.7 On 8/17/08, Ranner, Frank MR <Frank.Ranner@defence.gov.au> wrote:
UNCLASSIFIED
-----Original Message----- From: freeradius-users-bounces+frank.ranner=defence.gov.au@lists.fre eradius.org [mailto:freeradius-users-> bounces+frank.ranner=defence.gov.au@lists.freeradius.org] On Behalf Of Rafiqul Ahsan Sent: Monday, 18 August 2008 07:21 To: FreeRadius users mailing list Subject: Re: 2.0.5 on Solaris with openssl 0.9.8h
I believe I specified the path using -Rpath, and Solaris Linker searches this specified path for so libraris at run time. But still it is linking with /usr/swf/lib.. Did not find any other info on how we change the orders of dirs that it uses.
Use ldd -s to determine how the shared libraries are found. The bottom line is, use LD_LIBRARY_PATH to overide all other settings. In your startup script put:
LD_LIBRARY_PATH=/usr/lib:/usr/local/ssl/lib; export LD_LIBRARY_PATH
You can also specify system-wide library search paths using crle
[root@server radius] # crle
Configuration file [version 4]: /var/ld/ld.config Default Library Path (ELF): /usr/lib:/usr/local/lib:/var/cfengine/lib Trusted Directories (ELF): /usr/lib/secure (system default)
Command line: crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib:/var/cfengine/lib
Using rpath is not such a good idea as it is the last resort - crle and LD_LIBRARY_PATH will override it as 'ldd -s' will show.
Regards, Frank Ranner
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Rafiqul Ahsan