OSX rlm_sql_mysql problem
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.
"Benedikt Baer" <beniwtv@gmail.com> wrote:
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.
So build a shared version of the MysQL library. Or, build FreeRADIUS without support for shared libraries. See the FAQ. Alan DeKok.
I can't do that. The compilation then fails with another strange error. I'll try with an updated verion of Freeradius. 2006/5/29, Alan DeKok <aland@nitros9.org>:
"Benedikt Baer" <beniwtv@gmail.com> wrote:
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.
So build a shared version of the MysQL library.
Or, build FreeRADIUS without support for shared libraries. See the FAQ.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Will 1.1.2 work on Mac OS X? 1.1.1 didn't, so had to go back to 1.0.5 which works fine. /L Den 29/05/2006 kl. 17.40 skrev A.L.M.Buxey@lboro.ac.uk:
Hi,
I am trying to compile FreeRadius 1.1.1 on Mac OSX.
1) use 1.1.2 - this is the latest release 2) it looks like you cannot link against your mysql...have you tried it as a static build?
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/ users.html
I am testing it right now.... Stand by. 2006/5/30, A.L.M.Buxey@lboro.ac.uk <A.L.M.Buxey@lboro.ac.uk>:
Hi,
Will 1.1.2 work on Mac OS X? 1.1.1 didn't, so had to go back to 1.0.5 which works fine.
how will we know with noone testing or reporting it?
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Well, :( I still run into the same problems with the new version. I don't see why I can't link to mysql .... What I'm stupid about is that configure says that everything is OK with mysql... 2006/5/30, Benedikt Baer <beniwtv@gmail.com>:
I am testing it right now....
Stand by.
2006/5/30, A.L.M.Buxey@lboro.ac.uk <A.L.M.Buxey@lboro.ac.uk>:
Hi,
Will 1.1.2 work on Mac OS X? 1.1.1 didn't, so had to go back to 1.0.5 which works fine.
how will we know with noone testing or reporting it?
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
"Benedikt Baer" <beniwtv@gmail.com> wrote:
I still run into the same problems with the new version. I don't see why I can't link to mysql ....
The error message was that there was no shared lbirary for MySQL.
What I'm stupid about is that configure says that everything is OK with mysql...
No, it says it found MySQL libraries. If the "configure" script says that, then the server *should* be able to link to them statically. Alan DeKok.
2006/5/30, Alan DeKok <aland@nitros9.org>:
"Benedikt Baer" <beniwtv@gmail.com> wrote:
I still run into the same problems with the new version. I don't see why I can't link to mysql ....
The error message was that there was no shared lbirary for MySQL.
What I'm stupid about is that configure says that everything is OK with mysql...
No, it says it found MySQL libraries. If the "configure" script says that, then the server *should* be able to link to them statically.
Yeah, that's what I meant. Sorry. And yes, It *should* be able since I have the headers (and libs) installed and mysql_config is pointing to them correctly. I'll try to install with --disable-shared
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Compiling gives now this: ld: Undefined symbols: _boot_DynaLoader rm -f .libs/radiusdS.o make[4]: *** [radiusd] Error 1 make[3]: *** [common] Error 2 make[2]: *** [all] Error 2 make[1]: *** [common] Error 2 make: *** [all] Error 2 ??? 2006/5/30, Benedikt Baer <beniwtv@gmail.com>:
2006/5/30, Alan DeKok <aland@nitros9.org>:
"Benedikt Baer" <beniwtv@gmail.com> wrote:
I still run into the same problems with the new version. I don't see why I can't link to mysql ....
The error message was that there was no shared lbirary for MySQL.
What I'm stupid about is that configure says that everything is OK with mysql...
No, it says it found MySQL libraries. If the "configure" script says that, then the server *should* be able to link to them statically.
Yeah, that's what I meant. Sorry. And yes, It *should* be able since I have the headers (and libs) installed and mysql_config is pointing to them correctly.
I'll try to install with --disable-shared
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (4)
-
A.L.M.Buxey@lboro.ac.uk -
Alan DeKok -
Benedikt Baer -
Lasse