Compiling freeradius 1.1.1 in FreeBSD 6.0 with mysql support

Mark Hennessy mhennessy at cloud9.net
Wed Apr 5 18:56:37 CEST 2006


I'm sorry, I did indeed use the following commandline:
./configure --with-mysql-lib-dir=/usr/local/mysql/lib/mysql
--with-mysql-include-dir=/usr/local/mysql/include/mysql
--prefix=/usr/local/adm/freeradius-1.1.1

and got the same results below.

--
 Mark Hennessy

> -----Original Message-----
> From: 
> freeradius-users-bounces+mhennessy=cloud9.net at lists.freeradius
> .org 
> [mailto:freeradius-users-bounces+mhennessy=cloud9.net at lists.fr
> eeradius.org] On Behalf Of Mark Hennessy
> Sent: Wednesday, April 05, 2006 12:50 PM
> To: freeradius-users at lists.freeradius.org
> Subject: Compiling freeradius 1.1.1 in FreeBSD 6.0 with mysql support
> 
> I'm trying to build freeradius 1.1.1 on a FreeBSD 6.0 system 
> with MySQL
> 4.1.15
> 
> I'm using the following configure commandline:
> ./configure --with-mysql-lib=/usr/local/mysql/lib/mysql
> --with-mysql-include=/usr/local/mysql/include/mysql
> --prefix=/usr/local/adm/freeradius-1.1.1
> 
> I'd include the full output, but I figure that I should only 
> do that if
> asked.
> Here's the problematic section:
> 
> configuring in ./drivers/rlm_sql_mysql
> running /bin/sh ./configure  
> --with-mysql-lib-dir=/usr/local/mysql/lib/mysql
> --with-mysql-include-dir=/usr/local/mysql/include/mysql
> --prefix=/usr/local/adm/freeradius-1.1.1 --enable-ltdl-install
> --enable-ltdl-install 
> --cache-file=../../../../.././config.cache --srcdir=.
> loading cache ../../../../.././config.cache
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc -g -O2 -D_REENTRANT
> -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG ) works... yes
> checking whether the C compiler (gcc -g -O2 -D_REENTRANT
> -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG ) is a
> cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for mysql_config... (cached) yes
> checking for pthread_create in -lpthread... (cached) yes
> checking for mysql_init in -lmysqlclient_r (using mysql_config)... no
> checking for mysql_init in -lmysqlclient_r... no
> configure: warning: mysql libraries not found. Use
> --with-mysql-lib-dir=<path>.
> checking for mysql.h (using mysql_config)... yes
> configure: warning: sql submodule 'mysql' disabled
> updating cache ../../../../.././config.cache
> creating ./config.status
> creating Makefile
> creating config.h
> config.h is unchanged
> 
> It's not seeing mysql libraries, but they do indeed exist:
> # ls -al /usr/local/mysql/lib/mysql
> total 1974
> drwxr-xr-x  2 root  wheel     512 Apr  5 10:39 .
> drwxr-xr-x  3 root  wheel     512 Apr  5 10:39 ..
> -rw-r--r--  1 root  wheel   14446 Apr  5 10:39 libdbug.a
> -rw-r--r--  1 root  wheel   41928 Apr  5 10:39 libheap.a
> -rw-r--r--  1 root  wheel   13640 Apr  5 10:39 libmerge.a
> -rw-r--r--  1 root  wheel  331488 Apr  5 10:39 libmyisam.a
> -rw-r--r--  1 root  wheel   24934 Apr  5 10:39 libmyisammrg.a
> -rw-r--r--  1 root  wheel  472466 Apr  5 10:39 libmysqlclient.a
> -rwxr-xr-x  1 root  wheel     871 Apr  5 10:39 libmysqlclient.la
> lrwxr-xr-x  1 root  wheel      20 Apr  5 10:39 libmysqlclient.so ->
> libmysqlclient.so.14
> -rwxr-xr-x  1 root  wheel  387482 Apr  5 10:39 libmysqlclient.so.14
> -rw-r--r--  1 root  wheel  237570 Apr  5 10:39 libmystrings.a
> -rw-r--r--  1 root  wheel  253852 Apr  5 10:39 libmysys.a
> -rw-r--r--  1 root  wheel  105640 Apr  5 10:39 libnisam.a
> -rw-r--r--  1 root  wheel    5472 Apr  5 10:39 libvio.a
> 
> # ls -al /usr/local/mysql/include/mysql
> total 288
> drwxr-xr-x  2 root  wheel   1024 Apr  5 10:39 .
> drwxr-xr-x  3 root  wheel    512 Apr  5 10:39 ..
> -rw-r--r--  1 root  wheel   3428 Apr  5 10:39 errmsg.h
> -rw-r--r--  1 root  wheel   6778 Apr  5 10:39 keycache.h
> -rw-r--r--  1 root  wheel  17899 Apr  5 10:39 m_ctype.h
> -rw-r--r--  1 root  wheel   8085 Apr  5 10:39 m_string.h
> -rw-r--r--  1 root  wheel   1859 Apr  5 10:39 my_alloc.h
> -rw-r--r--  1 root  wheel  28650 Apr  5 10:39 my_config.h
> -rw-r--r--  1 root  wheel   3463 Apr  5 10:39 my_dbug.h
> -rw-r--r--  1 root  wheel   3509 Apr  5 10:39 my_dir.h
> -rw-r--r--  1 root  wheel   3000 Apr  5 10:39 my_getopt.h
> -rw-r--r--  1 root  wheel  39298 Apr  5 10:39 my_global.h
> -rw-r--r--  1 root  wheel   1515 Apr  5 10:39 my_list.h
> -rw-r--r--  1 root  wheel   3588 Apr  5 10:39 my_net.h
> -rw-r--r--  1 root  wheel   1245 Apr  5 10:39 my_no_pthread.h
> -rw-r--r--  1 root  wheel  24387 Apr  5 10:39 my_pthread.h
> -rw-r--r--  1 root  wheel   1784 Apr  5 10:39 my_semaphore.h
> -rw-r--r--  1 root  wheel  32346 Apr  5 10:39 my_sys.h
> -rw-r--r--  1 root  wheel   2007 Apr  5 10:39 my_xml.h
> -rw-r--r--  1 root  wheel  27615 Apr  5 10:39 mysql.h
> -rw-r--r--  1 root  wheel  15028 Apr  5 10:39 mysql_com.h
> -rw-r--r--  1 root  wheel   1241 Apr  5 10:39 mysql_embed.h
> -rw-r--r--  1 root  wheel   2184 Apr  5 10:39 mysql_time.h
> -rw-r--r--  1 root  wheel    781 Apr  5 10:39 mysql_version.h
> -rw-r--r--  1 root  wheel  11315 Apr  5 10:39 mysqld_error.h
> -rw-r--r--  1 root  wheel   5841 Apr  5 10:39 raid.h
> -rw-r--r--  1 root  wheel   6499 Apr  5 10:39 readline.h
> -rw-r--r--  1 root  wheel   1751 Apr  5 10:39 sql_common.h
> -rw-r--r--  1 root  wheel   6401 Apr  5 10:39 sql_state.h
> -rw-r--r--  1 root  wheel   1055 Apr  5 10:39 sslopt-case.h
> -rw-r--r--  1 root  wheel   1883 Apr  5 10:39 sslopt-longopts.h
> -rw-r--r--  1 root  wheel    970 Apr  5 10:39 sslopt-vars.h
> -rw-r--r--  1 root  wheel   1265 Apr  5 10:39 typelib.h
> 
> I'm thoroughly perplexed.  What should I try next?
> 
> --
>  Mark Hennessy
> 
> - 
> List info/subscribe/unsubscribe? See 
> http://www.freeradius.org/list/users.html
> 
> 




More information about the Freeradius-Users mailing list