the make process is quitting when it gets to the sql bit i have pasted the
lines, i am trying to compile a standard binary.
Thank you
sarky
gmake[10]: Entering directory
`/root/freeradius-1.0.0-pre3/src/modules/rlm_sql/drivers/rlm_sql_mysql'
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wal
l -D_GNU_SOURCE -DNDEBUG -I../.. -I../../../../include -I'/usr/include' -c
sql_mysql.c -o sql_mysql.o
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
In file included from ../../../../include/radiusd.h:32,
from sql_mysql.c:30:
/usr/include/netinet/in.h:169:1: warning: "INADDR_ANY" redefined
In file included from ../../../../include/radiusd.h:13,
from sql_mysql.c:30:
../../../../include/missing.h:73:1: warning: this is the location of the
previous definition
In file included from ../../../../include/radiusd.h:32,
from sql_mysql.c:30:
/usr/include/netinet/in.h:173:1: warning: "INADDR_NONE" redefined
In file included from ../../../../include/radiusd.h:13,
from sql_mysql.c:30:
../../../../include/missing.h:81:1: warning: this is the location of the
previous definition
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[10]: Leaving directory
`/root/freeradius-1.0.0-pre3/src/modules/rlm_sql/drivers/rlm_sql_mysql'
gmake[9]: *** [common] Error 1
gmake[9]: Leaving directory
`/root/freeradius-1.0.0-pre3/src/modules/rlm_sql/drivers'
gmake[8]: *** [static] Error 2
gmake[8]: Leaving directory
`/root/freeradius-1.0.0-pre3/src/modules/rlm_sql/drivers'
gmake[7]: *** [common] Error 1
gmake[7]: Leaving directory
`/root/freeradius-1.0.0-pre3/src/modules/rlm_sql'
gmake[6]: *** [static] Error 2
gmake[6]: Leaving directory
`/root/freeradius-1.0.0-pre3/src/modules/rlm_sql'
gmake[5]: *** [common] Error 1
gmake[5]: Leaving directory `/root/freeradius-1.0.0-pre3/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/root/freeradius-1.0.0-pre3/src/modules'
gmake[3]: *** [common] Error 1
gmake[3]: Leaving directory `/root/freeradius-1.0.0-pre3/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/root/freeradius-1.0.0-pre3/src'
gmake[1]: *** [common] Error 1
gmake[1]: Leaving directory `/root/freeradius-1.0.0-pre3'
make: *** [all] Error 2
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html