Discussion:
Installing FreeRadius on RedHat 9 with MySql
C. Townsend
2005-01-17 22:57:48 UTC
Permalink
I've been attempting to install FreeRadius on a RH9 server with MySQL.

I've gotten MySql installed with some coaxing as well as running the
Creation scripts for the MySQL schema.
/src/modules/rlm_sql/drivers/rlm_sql_mysql/db_mysql.sql

The configure seems to work alright.
When I execute the make I get the following error messages:

sql_mysql.c:39:20: errmsg.h: No such file or directory
sql_mysql.c:40:19: mysql.h: No such file or directory
sql_mysql.c:47: parse error before "MYSQL"
sql_mysql.c:47: warning: no semicolon at end of struct or union
sql_mysql.c:48: warning: type defaults to `int' in declaration
of `sock'
sql_mysql.c:48: warning: data definition has no type or storage
class
sql_mysql.c:49: parse error before '*' token
sql_mysql.c:49: warning: type defaults to `int' in declaration
of `result'
sql_mysql.c:49: warning: data definition has no type or storage
class
sql_mysql.c:51: parse error before '}' token
sql_mysql.c:51: warning: type defaults to `int' in declaration
of `rlm_sql_mysql_sock'
sql_mysql.c:51: warning: data definition has no type or storage
class
sql_mysql.c: In function `sql_init_socket':
sql_mysql.c:62: `mysql_sock' undeclared (first use in this
function)
sql_mysql.c:62: (Each undeclared identifier is reported only
once
sql_mysql.c:62: for each function it appears in.)
sql_mysql.c:65: parse error before ')' token
sql_mysql.c:76: warning: implicit declaration of function
`mysql_init'
sql_mysql.c:77: warning: implicit declaration of function
`mysql_real_connect'
sql_mysql.c:84: `CLIENT_FOUND_ROWS' undeclared (first use in
this function)
sql_mysql.c:86: warning: implicit declaration of function
`mysql_error'
sql_mysql.c:86: warning: format argument is not a pointer (arg
3)
sql_mysql.c: In function `sql_check_error':
sql_mysql.c:122: `CR_SERVER_GONE_ERROR' undeclared (first use in
this function)
sql_mysql.c:123: `CR_SERVER_LOST' undeclared (first use in this
function)
sql_mysql.c:131: `CR_OUT_OF_MEMORY' undeclared (first use in
this function)
sql_mysql.c:132: `CR_COMMANDS_OUT_OF_SYNC' undeclared (first use
in this function)
sql_mysql.c:133: `CR_UNKNOWN_ERROR' undeclared (first use in
this function)
sql_mysql.c: In function `sql_query':
sql_mysql.c:151: `mysql_sock' undeclared (first use in this
function)
sql_mysql.c:160: warning: implicit declaration of function
`mysql_query'
sql_mysql.c:161: warning: implicit declaration of function
`mysql_errno'
sql_mysql.c: In function `sql_store_result':
sql_mysql.c:175: `mysql_sock' undeclared (first use in this
function)
sql_mysql.c:181: warning: implicit declaration of function
`mysql_store_result'
sql_mysql.c:184: warning: format argument is not a pointer (arg
3)
sql_mysql.c: In function `sql_num_fields':
sql_mysql.c:202: `mysql_sock' undeclared (first use in this
function)
sql_mysql.c:207: warning: implicit declaration of function
`mysql_num_fields'
sql_mysql.c:211: warning: format argument is not a pointer (arg
3)
sql_mysql.c: In function `sql_num_rows':
sql_mysql.c:257: `mysql_sock' undeclared (first use in this
function)
sql_mysql.c:260: warning: implicit declaration of function
`mysql_num_rows'
sql_mysql.c: In function `sql_fetch_row':
sql_mysql.c:277: `mysql_sock' undeclared (first use in this
function)
sql_mysql.c:286: warning: implicit declaration of function
`mysql_fetch_row'
sql_mysql.c:286: warning: assignment makes pointer from integer
without a cast
sql_mysql.c: In function `sql_free_result':
sql_mysql.c:305: `mysql_sock' undeclared (first use in this
function)
sql_mysql.c:308: warning: implicit declaration of function
`mysql_free_result'
sql_mysql.c: In function `sql_error':
sql_mysql.c:327: `mysql_sock' undeclared (first use in this
function)
sql_mysql.c:332: warning: return makes pointer from integer
without a cast
sql_mysql.c: In function `sql_close':
sql_mysql.c:346: `mysql_sock' undeclared (first use in this
function)
sql_mysql.c:349: warning: implicit declaration of function
`mysql_close'
sql_mysql.c: In function `sql_affected_rows':
sql_mysql.c:395: `mysql_sock' undeclared (first use in this
function)
sql_mysql.c:397: warning: implicit declaration of function
`mysql_affected_rows'
gmake[10]: *** [sql_mysql.o] Error 1
gmake[9]: *** [common] Error 1
gmake[8]: *** [static] Error 2
gmake[7]: *** [common] Error 1
gmake[6]: *** [static] Error 2
gmake[5]: *** [common] Error 1
gmake[4]: *** [all] Error 2
gmake[3]: *** [common] Error 1
gmake[2]: *** [all] Error 2
gmake[1]: *** [common] Error 1
make: *** [all] Error 2



-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Lewis Bergman
2005-01-18 02:47:56 UTC
Permalink
Post by C. Townsend
I've been attempting to install FreeRadius on a RH9 server with MySQL.
I've gotten MySql installed with some coaxing as well as running the
Creation scripts for the MySQL schema.
/src/modules/rlm_sql/drivers/rlm_sql_mysql/db_mysql.sql
The configure seems to work alright.
Did you install the mysql-devel rpms? I had the same errors when I had the
incorrect libaries installed.
--
Lewis Bergman
Texas Communications
4309 Maple ST.
Abilene, TX 79602
325-695-6962 ext 115

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