OSX rlm_sql_mysql problem

Benedikt Baer beniwtv at gmail.com
Mon May 29 13:20:45 CEST 2006


Hi,
I am trying to compile FreeRadius 1.1.1 on Mac OSX.

The ./configure script works well and without errors (as far as I can see)

First, when I do make, it finishes good but shows an error:

*** Warning: This library needs some functionality provided by -lmysqlclient_r.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module rlm_sql_mysql.  Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.

Then, starting freeradius:

Fri May 26 13:16:13 2006 : Info: Starting - reading configuration files ...
Fri May 26 13:16:14 2006 : Info: Using deprecated naslist file.
Support for this will go away soon.
Fri May 26 13:16:15 2006 : Error: rlm_sql (sql): Could not link driver
rlm_sql_mysql: dlcompat: invalid handle
Fri May 26 13:16:15 2006 : Error: rlm_sql (sql): Make sure it (and all
its dependent libraries!) are in the search path of your system's ld.
Fri May 26 13:16:15 2006 : Error: radiusd.conf[14]: sql: Module
instantiation failed.
Fri May 26 13:16:15 2006 : Error: radiusd.conf[1585] Unknown module "sql".

The mysql libs and headers are in:
/usr/local/mysql-max-5.0.21-osx10.3-powerpc/lib/
/usr/local/mysql-max-5.0.21-osx10.3-powerpc/include/

mysql_config:

       --cflags [-I/usr/local/mysql-max-5.0.21-osx10.3-powerpc/include
-O -fno-common]
       --include [-I/usr/local/mysql-max-5.0.21-osx10.3-powerpc/include]
       --libs [-L/usr/local/mysql-max-5.0.21-osx10.3-powerpc/lib
-lmysqlclient -lz -lm]
       --libs_r  [-L/usr/local/mysql-max-5.0.21-osx10.3-powerpc/lib
-lmysqlclient_r -lz -lm]
       --socket         [/tmp/mysql.sock]
       --port           [3306]
       --version        [5.20.21]
       --libmysqld-libs
[-L/usr/local/mysql-max-5.0.21-osx10.3-powerpc/lib -lmysqld -lz -lm]

I also tired to copy, link, move various files but it didn't help.

Any ideas??
Thanks for your help.



More information about the Freeradius-Users mailing list