freeradius compile problem
Hi I am having problems compiling with eap module. Here is the section from config.log showing what I think is the problem. I have the latest OpenSSL and Freeradius 1.1.7 Any ideas? configure:20584: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.c -lssl -L/usr/local/ssl/lib -lnsl -lresolv -lpthread >&5 /usr/local/ssl/lib/libssl.a(ssl_lib.o): In function `SSL_clear': ssl_lib.c:(.text+0x28): undefined reference to `ERR_put_error' ssl_lib.c:(.text+0x13a): undefined reference to `BUF_MEM_free' /usr/local/ssl/lib/libssl.a(ssl_lib.o): In function `SSL_new': ssl_lib.c:(.text+0x1ba): undefined reference to `CRYPTO_malloc'
On Fri, 7 Dec 2007, Dave Gibelli wrote:
Hi
I am having problems compiling with eap module. Here is the section from config.log showing what I think is the problem. I have the latest OpenSSL and Freeradius 1.1.7
Any ideas?
Post your config.log. uname -a, cat /etc/issue, rpm -qva, pkg_info are also useful. ~BAS
configure:20584: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.c -lssl -L/usr/local/ssl/lib -lnsl -lresolv -lpthread >&5 /usr/local/ssl/lib/libssl.a(ssl_lib.o): In function `SSL_clear': ssl_lib.c:(.text+0x28): undefined reference to `ERR_put_error' ssl_lib.c:(.text+0x13a): undefined reference to `BUF_MEM_free' /usr/local/ssl/lib/libssl.a(ssl_lib.o): In function `SSL_new': ssl_lib.c:(.text+0x1ba): undefined reference to `CRYPTO_malloc' - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
l8* -lava (Brian A. Seklecki - Pittsburgh, PA, USA) http://www.spiritual-machines.org/ "Guilty? Yeah. But he knows it. I mean, you're guilty. You just don't know it. So who's really in jail?" ~Maynard James Keenan
Dave Gibelli wrote:
Hi> I am having problems compiling with eap module. Here is the section from config.log showing what I think is the problem. I have the latest OpenSSL and Freeradius 1.1.7
Any ideas?
configure:20584: gcc -o conftest -g -O2 -D_REENTRANT
It's not a compile problem. The "configure" tests are there so that the server can find out if your system has the packages to *start* the compilation. In this case, your system fails to meet the minimum prerequisites to build all of the modules in EAP.
-D_POSIX_PTHREAD_SEMANTICS conftest.c -lssl -L/usr/local/ssl/lib -lnsl -lresolv -lpthread >&5 /usr/local/ssl/lib/libssl.a(ssl_lib.o): In function `SSL_clear': ssl_lib.c:(.text+0x28): undefined reference to `ERR_put_error'
You do not have the crypto libraries installed. Alan DeKok,
Alan I have OpenSSL installed, I thought that is where the crypto libraries come from? Where do I get the crypto libraries from? It would help if Freeradius supplied a reference to where to obtain these crypto libraries. Dave On 08/12/2007, Alan DeKok <aland@deployingradius.com> wrote:
Dave Gibelli wrote:
Hi> I am having problems compiling with eap module. Here is the section from config.log showing what I think is the problem. I have the latest OpenSSL and Freeradius 1.1.7
Any ideas?
configure:20584: gcc -o conftest -g -O2 -D_REENTRANT
It's not a compile problem. The "configure" tests are there so that the server can find out if your system has the packages to *start* the compilation.
In this case, your system fails to meet the minimum prerequisites to build all of the modules in EAP.
-D_POSIX_PTHREAD_SEMANTICS conftest.c -lssl -L/usr/local/ssl/lib -lnsl -lresolv -lpthread >&5 /usr/local/ssl/lib/libssl.a(ssl_lib.o): In function `SSL_clear': ssl_lib.c:(.text+0x28): undefined reference to `ERR_put_error'
You do not have the crypto libraries installed.
Alan DeKok, - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Dave Gibelli wrote:
Alan
I have OpenSSL installed, I thought that is where the crypto libraries come from?
Where do I get the crypto libraries from?
It would help if Freeradius supplied a reference to where to obtain these crypto libraries.
I disagree that the FreeRadius ./configure process should be handing out advice on how to setup the development environment on your system, but anyway... In your case, it seems that the configure process is looking in /usr/local/ssl/lib for libssl; and that the libssl in that location (a static rather than shared library?) needs some symbols (ERR_) from another, missing, library. On my system, the ERR_ functions are in -lcrypto and -lssl is a dynamic library dependent on -lcrypto, so it all "just works". Try building OpenSSL as shared libraries, or maybe muck around with LDFLAGS to add "-lcrypto" if you can't get that to work.
participants (4)
-
Alan DeKok -
Brian A. Seklecki -
Dave Gibelli -
Phil Mayers