компилирую radius для работы с mysql под Solaris. говорю:
./configure --prefix=/usr/local/radius --with-mysql
make
дальше он собирается, а в конце выдает следующее:
mysql.c:35:25: mysql/mysql.h: No such file or directory
mysql.c:36:26: mysql/errmsg.h: No such file or directory
mysql.c: In function `do_mysql_query':
mysql.c:55: error: `MYSQL' undeclared (first use in this function)
mysql.c:55: error: (Each undeclared identifier is reported only once
mysql.c:55: error: for each function it appears in.)
mysql.c:55: error: `mysql' undeclared (first use in this function)
mysql.c:65: error: parse error before ')' token
mysql.c:73: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function)
mysql.c: In function `rad_mysql_reconnect':
mysql.c:88: error: `MYSQL' undeclared (first use in this function)
mysql.c:88: error: `mysql' undeclared (first use in this function)
mysql.c:110: error: parse error before ')' token
mysql.c: In function `rad_mysql_query':
mysql.c:141: error: `MYSQL' undeclared (first use in this function)
mysql.c:141: error: parse error before ')' token
mysql.c:141: error: parse error before ')' token
mysql.c: In function `rad_mysql_getpwd':
mysql.c:149: error: `MYSQL_RES' undeclared (first use in this function)
mysql.c:149: error: `result' undeclared (first use in this function)
mysql.c:150: error: `MYSQL_ROW' undeclared (first use in this function)
mysql.c:150: error: parse error before "row"
mysql.c:161: error: `MYSQL' undeclared (first use in this function)
mysql.c:161: error: parse error before ')' token
mysql.c: At top level:
mysql.c:165: error: parse error before "if"
mysql.c:170: error: `result' undeclared here (not in a function)
mysql.c:170: error: initializer element is not constant
mysql.c:170: warning: data definition has no type or storage class
mysql.c:172: error: subscripted value is neither array nor pointer
mysql.c:172: warning: initialization makes integer from pointer without a cast
mysql.c:172: error: initializer element is not constant
mysql.c:172: warning: data definition has no type or storage class
mysql.c:173: warning: parameter names (without types) in function declaration
mysql.c:173: warning: data definition has no type or storage class
mysql.c:175: error: parse error before "return"
mysql.c:179: error: parse error before "MYSQL_RES"
mysql.c:179: warning: no semicolon at end of struct or union
mysql.c:180: warning: data definition has no type or storage class
mysql.c:181: warning: data definition has no type or storage class
mysql.c: In function `rad_mysql_n_columns':
mysql.c:186: error: `dp' undeclared (first use in this function)
mysql.c:186: error: parse error before ')' token
mysql.c: In function `rad_mysql_n_tuples':
mysql.c:198: error: `dp' undeclared (first use in this function)
mysql.c:198: error: parse error before ')' token
mysql.c: In function `rad_mysql_exec':
mysql.c:209: error: `MYSQL_RES' undeclared (first use in this function)
mysql.c:209: error: `result' undeclared (first use in this function)
mysql.c:210: error: `data' undeclared (first use in this function)
mysql.c:221: error: `MYSQL' undeclared (first use in this function)
mysql.c:221: error: parse error before ')' token
mysql.c: In function `rad_mysql_column':
mysql.c:239: error: `dp' undeclared (first use in this function)
mysql.c:239: error: parse error before ')' token
mysql.c: In function `rad_mysql_next_tuple':
mysql.c:253: error: `dp' undeclared (first use in this function)
mysql.c:253: error: parse error before ')' token
mysql.c: In function `rad_mysql_free':
mysql.c:264: error: `dp' undeclared (first use in this function)
mysql.c:264: error: parse error before ')' token
*** Error code 1
make: Fatal error: Command failed for target `mysql.lo'
Current working directory /var/src/radius-1.3/sql
*** Error code 1
make: Fatal error: Command failed for target `install-recursive
файлов mysql.lo , mysql/mysql.h и mysql/errmsg.h нет. и откуда их взять я не пойму :(
Mysql 4.0.0.20
GNU-Radius 1.3