On Sep 6, 2003, at 9:24 PM, Julien Gabry wrote:


Hello

I have been able to compile freeradius on mac os X 10.2.8 (jaguar)

The freeradius is ok I can authentify, everything look great

I have also install mysql and import all needed database for dialup_admin.

But I can't activate the rlm_sql_mysql driver. The error message that i get
while launching the check-config script or radiusd with option -X is :


rlm_sql (sql): Could not link driver rlm_sql_mysql: file not found
rlm_sql (sql): Make sure it (and all its dependent libraries!) are in the
search path of your system's ld.
radiusd.conf[14]: sql: Module instantiation failed.



I have tryed many things to solve it without success I have tryed to compile mysql from the source instead of using apple package I have try several different path for the configure option


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


./configure --with-mysql-dir=/Library/MySQL/bin --with-mysql-lib-dir=/Librar
y/MySQL/lib/mysql --with-mysql-include-dir=/Library/MySQL/include/mysql --di
sable-shared


and many others ...

I have also tryed to link the lib manually with common OSX tool (dyld, ld,
libtool, ar, ...)


So my questions are the following :

Did someone has been able to use the mysql modules with free radius on OSX?

What should be the way to link properly/correctly the rlm_sql_mysql lib ?

How can i check that my MySQL is link as static ?

Thanks you in advance


I bet you are running into the limitations of having build everything statically.
Some rlm modules appear to not work well when linked statically on any platform
(so I've been told).
On Jaguar I also haven't been able to compile freeRADIUS without the
--disable-shared option.
On Panther freeRadius builds and runs just fine with dynamic libs without a glitch!


One thing you may try on Jaguar is to force linking the rlm_sql_mysql library:

% setenv DYLD_INSERT_LIBRARIES <path_to_mysqllib>

-Andreas


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

Reply via email to