How to link to openssl if two versions of libssl are on the system, when building FreeRadius on Debian wheezy 7.4?

Alan DeKok aland at
Fri May 16 15:03:54 CEST 2014

Rani Ahmed wrote:
> I did build from tar.gz file,  OpenSSL 1.0.1*g *and installed it on
> /usr/local/ . This is the default --prefix in the ./config of OpenSSL
> I built freeradius using the following configure command :
> ./configure --with-openssl-includes=/usr/local/ssl
> --with-openssl-libraries=/usr/local/ssl/lib

  That should generally work.

> Also, I did tell ldconfig in /etc/ about the path "/usr/local/ssl/lib" just to make freeradius use OpenSSL 1.0.1g , I still get it from /usr/lib instead..
> So how should I exactly link it to 1.0.1g?

  In version 2.2, you don't.  Sorry.  The reason is libtool.  We use
libtool as a cross-platform linker.  However... it decides randomly to
re-write link targets, based on it's own bizarre ideas about what to do.

  In version 3, we've gotten rid of libtool.  As a result, your scenario
works there.  I use it that way every day.

  Alan DeKok.

More information about the Freeradius-Users mailing list