compile freeradius 2.1.1 with eap-tls mysql openldap openssl

Broussard Philippe pbroussard at cg86.fr
Sat Oct 4 21:50:17 CEST 2008



Hi,

I try to compile freeradius with mysql and openldap aned eap-tls.
Mysql and Openssl and Openldap are compiled with sources

I use this configure's command line :

CFLAGS="-I/opt/mysql/include -I/opt/openssl/include"
LDFLAGS="-L/opt/mysql/lib -L/opt/openssl/lib" ./configure
--prefix=/opt/freeradius-server-2.2.11
--localstatedir=/data/freeradius-server --with-threads --with-openssl
--with-openssl-includes=/opt/openssl/includes
--with-openssl-libraries=/opt/openssl/lib --enable-rlm-sql
--enable-rlm-ldap --enable-rlm-eap
--with-rlm-ldap-lib-dir=/opt/openldap/lib
--with-rlm-ldap-include-dir=/opt/openldap/include
--with-mysql-lib-dir=/opt/mysql/lib
--with-mysql-include-dir=/opt/mysql/include


I must have an error (syntax or not) in this line but i don't see.

Could you help me, please, to find the correct command line ?

Philippe

System :
Debian etch
Openldap 2.3.35 or 2.4.11
Mysql 5.0.41
Openssl 0.9.8i
Freeradius 2.1.1


See below the result of the configure :

=== configure: configuring in ./types/rlm_eap_tls
configure: running /bin/sh './configure'
--prefix=/opt/freeradius-server-2.2.11 
'--prefix=/opt/freeradius-server-2.2.11'
'--localstatedir=/data/freeradius-server' '--with-threads'
'--with-openssl' '--with-openssl-includes=/opt/openssl/includes'
'--with-openssl-libraries=/opt/openssl/lib' '--enable-rlm-sql'
'--enable-rlm-ldap' '--enable-rlm-eap'
'--with-rlm-ldap-lib-dir=/opt/openldap/lib'
'--with-rlm-ldap-include-dir=/opt/openldap/include'
'--with-mysql-lib-dir=/opt/mysql/lib'
'--with-mysql-include-dir=/opt/mysql/include' '--enable-ltdl-install=no'
'--cache-file=/dev/null' '--srcdir=.' --cache-file=/dev/null --srcdir=.
checking for OpenSSL support... no
configure: WARNING: silently not building rlm_eap_tls.
configure: WARNING: FAILURE: rlm_eap_tls requires: OpenSSL.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
=== configuring in src/modules/rlm_ldap
(/opt/sources/freeradius-server-2.1.1/src/modules/rlm_ldap)
configure: running /bin/sh ./configure
'--prefix=/opt/freeradius-server-2.2.11' 
'--localstatedir=/data/freeradius-server' '--with-threads'
'--with-openssl' '--with-openssl-includes=/opt/openssl/includes'
'--with-openssl-libraries=/opt/openssl/lib' '--enable-rlm-sql'
'--enable-rlm-ldap' '--enable-rlm-eap'
'--with-rlm-ldap-lib-dir=/opt/openldap/lib'
'--with-rlm-ldap-include-dir=/opt/openldap/include'
'--with-mysql-lib-dir=/opt/mysql/lib'
'--with-mysql-include-dir=/opt/mysql/include' '--enable-ltdl-install=no'
--cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for pthread_create in -lpthread... yes
checking for ldap_init in -lldap_r... yes
checking for ldap.h... yes
checking for ldap_start_tls_s... yes
checking for ldap_initialize... yes
checking for ldap_int_tls_config... yes
configure: creating ./config.status
config.status: creating Makefile
=== configuring in ./drivers/rlm_sql_mysql
(/opt/sources/freeradius-server-2.1.1/src/modules/rlm_sql/./drivers/rlm_sql_mysql)
configure: running /bin/sh ./configure
'--prefix=/opt/freeradius-server-2.2.11' 
'--localstatedir=/data/freeradius-server' '--with-threads'
'--with-openssl' '--with-openssl-includes=/opt/openssl/includes'
'--with-openssl-libraries=/opt/openssl/lib' '--enable-rlm-sql'
'--enable-rlm-ldap' '--enable-rlm-eap'
'--with-rlm-ldap-lib-dir=/opt/openldap/lib'
'--with-rlm-ldap-include-dir=/opt/openldap/include'
'--with-mysql-lib-dir=/opt/mysql/lib'
'--with-mysql-include-dir=/opt/mysql/include' '--enable-ltdl-install=no'
--cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for mysql_config... no
checking for pthread_create in -lpthread... yes
checking for mysql_init in -lmysqlclient_r... no
configure: WARNING: MySQL libraries not found. Use
--with-mysql-lib-dir=<path>.
checking for mysql/mysql.h... yes
configure: WARNING: silently not building rlm_sql_mysql.
configure: WARNING: FAILURE: rlm_sql_mysql requires: libmysqlclient_r.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h





More information about the Freeradius-Users mailing list