At 02:13 AM 4/1/2003, you wrote:
i'm having problems compiling freeradius v0.8.1 on a solaris 9 machine
with mysql support and any help would be greatly appreciated.  here's some
more details on the setup.

solaris 9 (12/02)
freeradius v0.8.1
mysql 3.23.53 (from sunfreeware.com)

mysql base dir is at /usr/local/mysql with includes at
/usr/local/mysql/include/mysql and libs at /usr/local/mysql/lib/mysql

my ./configure and args are as follows:

 ./configure --with-mysql-include-dir=/usr/local/mysql/include/mysql
--with-mysql-lib-dir=/usr/local/mysql/lib/mysql

and the output includes the following:

checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for compress in -lz... (cached) yes
checking for mysql/mysql.h... yes
checking for mysql_init in -lmysqlclient... no
configure: warning: mysql libraries not found.  Use
--with-mysql-lib-dir=<path>.
configure: warning: sql submodule 'mysql' disabled


I run Solaris8 and MySQL4.0. When I upgraded from MySQL 3.23.52, I encountered a similar problem. The solution is below.

1. Check out config.log. Does it say anything about the floor function (or any other function from the math library). You may need to modify your configure script (in drivers/rlm_sql_mysql) to include the math library during linking (i.e. add -lm to configure).

cvs diff configure
Index: configure
===================================================================
RCS file: /source/radiusd/src/modules/rlm_sql/drivers/rlm_sql_mysql/configure,v
retrieving revision 1.5
diff -r1.5 configure
901c901
<   LIBS="$LIBS -lz"
---
>   LIBS="$LIBS -lm -lz"

With LINUX, you can get away with not having the '-lm', but not w/Solaris (at least when using MySQL 4).


HTH,


Chris



- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to