> You must have statically linked MySQL libraries, too.
Ok, I used:

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

> You *must* carefully read the output of './configure' and 'make'.
> If there are warning messages, they will be printed.

configure doesn't complain, I get the following from during make:

Making static in rlm_sql_mysql...
sql_mysql.c: In function `sql_error':
sql_mysql.c:301: warning: return discards qualifiers from pointer target
type

sql_iodbc.c: In function `sql_init_socket':
sql_iodbc.c:49: warning: implicit declaration of function `sql_error'
sql_iodbc.c:49: warning: format argument is not a pointer (arg 3)
sql_iodbc.c:55: warning: format argument is not a pointer (arg 3)
sql_iodbc.c:63: warning: format argument is not a pointer (arg 3)
sql_iodbc.c: In function `sql_query':
sql_iodbc.c:99: warning: format argument is not a pointer (arg 3)
sql_iodbc.c:112: warning: format argument is not a pointer (arg 3)
sql_iodbc.c: In function `sql_select_query':
sql_iodbc.c:139: warning: implicit declaration of function `sql_num_fields'
sql_iodbc.c: At top level:
sql_iodbc.c:193: warning: `sql_num_fields' was used with no prototype before
its definition
sql_iodbc.c:193: warning: `sql_num_fields' was declared implicitly `extern'
and later `static'
sql_iodbc.c:139: warning: previous declaration of `sql_num_fields'
sql_iodbc.c:282: warning: `sql_error' was used with no prototype before its
definition
sql_iodbc.c:282: warning: `sql_error' was declared implicitly `extern' and
later `static'
sql_iodbc.c:112: warning: previous declaration of `sql_error'
sql_iodbc.c:282: warning: type mismatch with previous implicit declaration
sql_iodbc.c:112: warning: previous implicit declaration of `sql_error'
sql_iodbc.c:282: warning: `sql_error' was previously implicitly declared to
return `int'

Making dynamic in rlm_sql_mysql...
sql_mysql.c: In function `sql_error':
sql_mysql.c:301: warning: return discards qualifiers from pointer target
type

---------------------
Resulting in the following error when running radiusd -X :

sql: simul_verify_query = "SELECT RadAcctId, AcctSessionId, UserName,
NASIPAddress, NASPortId, FramedIPAddress, CallingStationId, FramedProtocol
FROM radacct WHERE UserName='%{SQL-User-Name}' AND AcctStopTime = 0"
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.

Thanks Alan, any help is appreciated.
_Mark


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

Reply via email to