FreeRadius Running Error

QASIM RAO qasim2490 at hotmail.com
Fri Nov 30 11:20:18 CET 2012


sir i have upgraded my free radius version to freeradius-server 2.2 it runs fine.. now i change rlm_sql moduleof my older version when i run make command it gives following errors...


[root at localhost rlm_sql]# make /usr/src/freeradius-server-2.2.0/libtool --mode=compile gcc -I/usr/src/freeradius-server-2.2.0 -I/usr/src/freeradius-server-2.2.0/src -g -O2 -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -I/usr/src/freeradius-server-2.2.0/libltdl -I/usr/src/freeradius-server-2.2.0/src -I/usr/src/freeradius-server-2.2.0/libltdl -I/usr/src/freeradius-server-2.2.0/libltdl -I/usr/src/freeradius-server-2.2.0/src/modules/rlm_sql -c rlm_sql.c gcc -I/usr/src/freeradius-server-2.2.0 -I/usr/src/freeradius-server-2.2.0/src -g -O2 -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -I/usr/src/freeradius-server-2.2.0/libltdl -I/usr/src/freeradius-server-2.2.0/src -I/usr/src/freeradius-server-2.2.0/libltdl -I/usr/src/freeradius-server-2.2.0/libltdl -I/usr/src/freeradius-server-2.2.0/src/modules/rlm_sql -c rlm_sql.c  -fPIC -DPIC -o .libs/rlm_sql.orlm_sql.c:29:22: error: autoconf.h: No such file or directoryrlm_sql.c:45:21: error: radiusd.h: No such file or directoryrlm_sql.c:46:21: error: modules.h: No such file or directoryrlm_sql.c:47:22: error: conffile.h: No such file or directoryIn file included from rlm_sql.c:48:rlm_sql.h:185: error: expected ')' before '*' tokenrlm_sql.h:187: error: expected declaration specifiers or '...' before 'VALUE_PAIR'rlm_sql.h:191: error: expected ')' before '*' tokenrlm_sql.c:49:24: error: rad_assert.h: No such file or directoryrlm_sql.c:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'module_config'rlm_sql.c:143: error: expected declaration specifiers or '...' before 'REQUEST'rlm_sql.c:151: error: expected declaration specifiers or '...' before 'REQUEST'rlm_sql.c:153: error: expected declaration specifiers or '...' before 'RADIUS_ESCAPE_STRING'rlm_sql.c: In function 'sql_xlat':rlm_sql.c:159: error: 'MAX_STRING_LEN' undeclared (first use in this function)rlm_sql.c:159: error: (Each undeclared identifier is reported only oncerlm_sql.c:159: error: for each function it appears in.)rlm_sql.c:162: warning: implicit declaration of function 'DEBUG'rlm_sql.c:168: error: 'request' undeclared (first use in this function)rlm_sql.c:168: error: too many arguments to function 'sql_set_user'rlm_sql.c:172: warning: implicit declaration of function 'radius_xlat'rlm_sql.c:173: warning: implicit declaration of function 'radlog'rlm_sql.c:173: error: 'L_ERR' undeclared (first use in this function)rlm_sql.c:178: warning: implicit declaration of function 'query_log'rlm_sql.c:159: warning: unused variable 'sqlusername'rlm_sql.c: In function 'generate_sql_clients':rlm_sql.c:240: error: 'RADCLIENT' undeclared (first use in this function)rlm_sql.c:240: error: 'c' undeclared (first use in this function)rlm_sql.c:247: error: 'L_ERR' undeclared (first use in this function)rlm_sql.c:318: warning: implicit declaration of function 'rad_malloc'rlm_sql.c:349: warning: implicit declaration of function 'ip_getaddr'rlm_sql.c:351: error: 'L_CONS' undeclared (first use in this function)rlm_sql.c:365: warning: implicit declaration of function 'ip_hostname'rlm_sql.c:377: error: 'mainconfig' undeclared (first use in this function)rlm_sql.c: At top level:rlm_sql.c:445: error: expected declaration specifiers or '...' before 'REQUEST'rlm_sql.c: In function 'sql_set_user':rlm_sql.c:447: error: 'VALUE_PAIR' undeclared (first use in this function)rlm_sql.c:447: error: 'vp' undeclared (first use in this function)rlm_sql.c:448: error: 'MAX_STRING_LEN' undeclared (first use in this function)rlm_sql.c:454: warning: implicit declaration of function 'pairdelete'rlm_sql.c:454: error: 'request' undeclared (first use in this function)rlm_sql.c:454: error: 'PW_SQL_USER_NAME' undeclared (first use in this function)rlm_sql.c:457: warning: implicit declaration of function 'strNcpy'rlm_sql.c:466: warning: implicit declaration of function 'DEBUG2'rlm_sql.c:468: warning: implicit declaration of function 'pairmake'rlm_sql.c:470: error: 'L_ERR' undeclared (first use in this function)rlm_sql.c:470: error: 'librad_errstr' undeclared (first use in this function)rlm_sql.c:474: warning: implicit declaration of function 'pairadd'rlm_sql.c:448: warning: unused variable 'tmpuser'rlm_sql.c: At top level:rlm_sql.c:487: error: expected declaration specifiers or '...' before 'REQUEST'rlm_sql.c:487: error: expected declaration specifiers or '...' before 'VALUE_PAIR'rlm_sql.c:487: error: expected declaration specifiers or '...' before 'VALUE_PAIR'rlm_sql.c:488: error: expected declaration specifiers or '...' before 'VALUE_PAIR'rlm_sql.c:488: error: expected declaration specifiers or '...' before 'VALUE_PAIR'rlm_sql.c: In function 'sql_groupcmp':rlm_sql.c:494: error: 'MAX_STRING_LEN' undeclared (first use in this function)rlm_sql.c:496: error: 'check_pairs' undeclared (first use in this function)rlm_sql.c:497: error: 'reply_pairs' undeclared (first use in this function)rlm_sql.c:500: error: 'check' undeclared (first use in this function)rlm_sql.c:505: error: 'req' undeclared (first use in this function)rlm_sql.c:515: error: too many arguments to function 'sql_set_user'rlm_sql.c:518: error: 'L_ERR' undeclared (first use in this function)rlm_sql.c:521: error: 'PW_SQL_USER_NAME' undeclared (first use in this function)rlm_sql.c:494: warning: unused variable 'sqlusername'rlm_sql.c: In function 'rlm_sql_detach':rlm_sql.c:571: warning: implicit declaration of function 'paircompare_unregister'rlm_sql.c:571: error: 'PW_SQL_GROUP' undeclared (first use in this function)rlm_sql.c:581: warning: implicit declaration of function 'xlat_unregister'rlm_sql.c:588: error: 'module_config' undeclared (first use in this function)rlm_sql.c:590: error: 'PW_TYPE_STRING_PTR' undeclared (first use in this function)rlm_sql.c: At top level:rlm_sql.c:624: error: expected ')' before '*' tokenrlm_sql.c:723: error: expected declaration specifiers or '...' before 'REQUEST'rlm_sql.c: In function 'rlm_sql_authorize':rlm_sql.c:733: error: storage size of 'tz' isn't knownrlm_sql.c:749: warning: implicit declaration of function 'gettimeofday'rlm_sql.c:753: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:754: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:759: error: 'VALUE_PAIR' undeclared (first use in this function)rlm_sql.c:759: error: 'pair' undeclared (first use in this function)rlm_sql.c:760: error: 'ret_code' undeclared (first use in this function)rlm_sql.c:761: error: 'reply_tmp' undeclared (first use in this function)rlm_sql.c:762: error: 'auth_type_pair' undeclared (first use in this function)rlm_sql.c:763: error: 'authorize_type_pair' undeclared (first use in this function)rlm_sql.c:770: error: 'MAX_STRING_LEN' undeclared (first use in this function)rlm_sql.c:776: error: 'request' undeclared (first use in this function)rlm_sql.c:778: error: 'RLM_MODULE_INVALID' undeclared (first use in this function)rlm_sql.c:786: warning: implicit declaration of function 'pairfind'rlm_sql.c:788: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:789: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:795: error: 'L_INFO' undeclared (first use in this function)rlm_sql.c:796: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:802: error: 'PW_CALLING_STATION_ID' undeclared (first use in this function)rlm_sql.c:807: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:808: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:814: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:818: error: 'PW_NAS_IP_ADDRESS' undeclared (first use in this function)rlm_sql.c:820: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:821: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:828: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:836: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:838: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:843: warning: passing argument 5 of 'sql_AuthenticateCall' from incompatible pointer typerlm_sql.c:843: warning: passing argument 6 of 'sql_AuthenticateCall' from incompatible pointer typerlm_sql.c:843: warning: passing argument 7 of 'sql_AuthenticateCall' from incompatible pointer typerlm_sql.c:843: warning: passing argument 8 of 'sql_AuthenticateCall' from incompatible pointer typerlm_sql.c:844: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:845: error: 'PW_AUTH_TYPE' undeclared (first use in this function)rlm_sql.c:850: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:851: error: 'PW_AUTHTYPE_ACCEPT' undeclared (first use in this function)rlm_sql.c:853: warning: implicit declaration of function 'paircreate'rlm_sql.c:853: error: 'PW_TYPE_INTEGER' undeclared (first use in this function)rlm_sql.c:860: warning: implicit declaration of function 'pairxlatmove'rlm_sql.c:861: warning: implicit declaration of function 'pairfree'rlm_sql.c:887: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:890: error: 'PW_AUTHTYPE_REJECT' undeclared (first use in this function)rlm_sql.c:906: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:908: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:910: error: 'RLM_MODULE_OK' undeclared (first use in this function)rlm_sql.c:771: warning: unused variable 'authorize'rlm_sql.c:770: warning: unused variable 'sqlusername'rlm_sql.c:769: warning: unused variable 'querystr'rlm_sql.c:766: warning: unused variable 'found'rlm_sql.c:743: warning: unused variable 'newmatchvalue'rlm_sql.c:742: warning: unused variable 'usermatch'rlm_sql.c:741: warning: unused variable 'newproc'rlm_sql.c:736: warning: unused variable 'time_milsec'rlm_sql.c:735: warning: unused variable 'time_milsec2'rlm_sql.c:733: warning: unused variable 'tz'rlm_sql.c: At top level:rlm_sql.c:916: error: expected declaration specifiers or '...' before 'REQUEST'rlm_sql.c: In function 'rlm_sql_accounting':rlm_sql.c:922: error: storage size of 'tz' isn't knownrlm_sql.c:937: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:945: error: 'VALUE_PAIR' undeclared (first use in this function)rlm_sql.c:945: error: 'pair' undeclared (first use in this function)rlm_sql.c:947: error: 'RLM_MODULE_OK' undeclared (first use in this function)rlm_sql.c:952: error: 'MAX_STRING_LEN' undeclared (first use in this function)rlm_sql.c:954: error: 'reply_tmp' undeclared (first use in this function)rlm_sql.c:955: error: 'acct_session_id' undeclared (first use in this function)rlm_sql.c:956: error: 'acct_status_type' undeclared (first use in this function)rlm_sql.c:957: error: 'ext_id' undeclared (first use in this function)rlm_sql.c:958: error: 'ret_user_name' undeclared (first use in this function)rlm_sql.c:959: error: 'ret_code' undeclared (first use in this function)rlm_sql.c:960: error: 'acct_link_count_pair' undeclared (first use in this function)rlm_sql.c:978: error: 'request' undeclared (first use in this function)rlm_sql.c:981: error: 'RLM_MODULE_INVALID' undeclared (first use in this function)rlm_sql.c:983: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:990: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:994: error: 'PW_TYPE_INTEGER' undeclared (first use in this function)rlm_sql.c:1002: error: 'PW_USER_NAME' undeclared (first use in this function)rlm_sql.c:1002: error: 'PW_TYPE_STRING' undeclared (first use in this function)rlm_sql.c:1005: warning: passing argument 2 of 'strcpy' from incompatible pointer typerlm_sql.c:1021: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:1037: warning: passing argument 2 of 'strcpy' from incompatible pointer typerlm_sql.c:1054: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:1069: warning: passing argument 2 of 'strcpy' from incompatible pointer typerlm_sql.c:1078: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1087: error: 'PW_ACCT_STATUS_TYPE' undeclared (first use in this function)rlm_sql.c:1105: warning: passing argument 2 of 'strcpy' from incompatible pointer typerlm_sql.c:1132: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1136: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1140: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1144: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1153: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:1153: warning: format '%s' expects type 'char *', but argument 3 has type 'char **'rlm_sql.c:1154: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:1154: warning: format '%s' expects type 'char *', but argument 3 has type 'char **'rlm_sql.c:1155: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:1155: warning: format '%s' expects type 'char *', but argument 3 has type 'char **'rlm_sql.c:1156: warning: format '%d' expects type 'int', but argument 2 has type 'int *'rlm_sql.c:1161: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:1161: warning: format '%s' expects type 'char *', but argument 3 has type 'char **'rlm_sql.c:1170: error: 'PW_STATUS_ACCOUNTING_ON' undeclared (first use in this function)rlm_sql.c:1171: error: 'PW_STATUS_ACCOUNTING_OFF' undeclared (first use in this function)rlm_sql.c:1189: error: 'PW_STATUS_START' undeclared (first use in this function)rlm_sql.c:1194: warning: passing argument 3 of 'sql_AccountingCall' from incompatible pointer typerlm_sql.c:1194: warning: passing argument 4 of 'sql_AccountingCall' from incompatible pointer typerlm_sql.c:1194: warning: passing argument 5 of 'sql_AccountingCall' from incompatible pointer typerlm_sql.c:1194: warning: passing argument 6 of 'sql_AccountingCall' from incompatible pointer typerlm_sql.c:1194: warning: passing argument 8 of 'sql_AccountingCall' from incompatible pointer typerlm_sql.c:1207: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1217: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1229: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1240: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1265: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1272: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:1277: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:1281: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:1284: error: 'L_INFO' undeclared (first use in this function)rlm_sql.c:1295: warning: passing argument 2 of 'strcpy' from incompatible pointer typerlm_sql.c:1309: error: 'PW_STATUS_STOP' undeclared (first use in this function)rlm_sql.c:1318: warning: passing argument 3 of 'sql_AccountingCall_stop' from incompatible pointer typerlm_sql.c:1318: warning: passing argument 4 of 'sql_AccountingCall_stop' from incompatible pointer typerlm_sql.c:1318: warning: passing argument 5 of 'sql_AccountingCall_stop' from incompatible pointer typerlm_sql.c:1318: warning: passing argument 6 of 'sql_AccountingCall_stop' from incompatible pointer typerlm_sql.c:1318: warning: passing argument 7 of 'sql_AccountingCall_stop' from incompatible pointer typerlm_sql.c:1331: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1341: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1352: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1365: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1384: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1396: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:1403: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:1407: warning: passing argument 1 of 'sprintf' from incompatible pointer typerlm_sql.c:1425: warning: passing argument 2 of 'strcpy' from incompatible pointer typerlm_sql.c:1440: error: 'PW_STATUS_ALIVE' undeclared (first use in this function)rlm_sql.c:1442: warning: passing argument 3 of 'sql_interum_update_Call' from incompatible pointer typerlm_sql.c:1442: warning: passing argument 4 of 'sql_interum_update_Call' from incompatible pointer typerlm_sql.c:1442: warning: passing argument 5 of 'sql_interum_update_Call' from incompatible pointer typerlm_sql.c:1442: warning: passing argument 6 of 'sql_interum_update_Call' from incompatible pointer typerlm_sql.c:1455: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1475: warning: passing argument 1 of 'strcpy' from incompatible pointer typerlm_sql.c:1500: warning: passing argument 2 of 'strcpy' from incompatible pointer typerlm_sql.c:1519: error: 'RLM_MODULE_NOOP' undeclared (first use in this function)rlm_sql.c:963: warning: unused variable 'acctsessiontime'rlm_sql.c:961: warning: unused variable 'copy'rlm_sql.c:953: warning: unused variable 'found'rlm_sql.c:952: warning: unused variable 'sqlusername'rlm_sql.c:951: warning: unused variable 'logstr'rlm_sql.c:950: warning: unused variable 'querystr'rlm_sql.c:948: warning: unused variable 'numaffected'rlm_sql.c:927: warning: unused variable 'nettime'rlm_sql.c:925: warning: unused variable 'time_milsec'rlm_sql.c:924: warning: unused variable 'time_milsec2'rlm_sql.c:922: warning: unused variable 'tz'rlm_sql.c:919: warning: unused variable 'queryrequest'rlm_sql.c: At top level:rlm_sql.c:1537: error: expected declaration specifiers or '...' before 'REQUEST'rlm_sql.c: In function 'rlm_sql_checksimul':rlm_sql.c:1542: error: 'MAX_STRING_LEN' undeclared (first use in this function)rlm_sql.c:1546: error: 'VALUE_PAIR' undeclared (first use in this function)rlm_sql.c:1546: error: 'vp' undeclared (first use in this function)rlm_sql.c:1553: error: 'RLM_MODULE_NOOP' undeclared (first use in this function)rlm_sql.c:1556: error: 'request' undeclared (first use in this function)rlm_sql.c:1557: error: 'L_ERR' undeclared (first use in this function)rlm_sql.c:1558: error: 'RLM_MODULE_INVALID' undeclared (first use in this function)rlm_sql.c:1562: error: too many arguments to function 'sql_set_user'rlm_sql.c:1563: error: 'RLM_MODULE_FAIL' undeclared (first use in this function)rlm_sql.c:1598: error: 'RLM_MODULE_OK' undeclared (first use in this function)rlm_sql.c:1621: error: 'PW_FRAMED_IP_ADDRESS' undeclared (first use in this function)rlm_sql.c:1623: error: 'PW_CALLING_STATION_ID' undeclared (first use in this function)rlm_sql.c:1649: warning: implicit declaration of function 'rad_check_ts'rlm_sql.c:1689: warning: implicit declaration of function 'session_zap'rlm_sql.c:1542: warning: unused variable 'sqlusername'rlm_sql.c: At top level:rlm_sql.c:1707: error: expected declaration specifiers or '...' before 'REQUEST'rlm_sql.c: In function 'rlm_sql_postauth':rlm_sql.c:1711: error: 'MAX_STRING_LEN' undeclared (first use in this function)rlm_sql.c:1715: error: 'request' undeclared (first use in this function)rlm_sql.c:1715: error: too many arguments to function 'sql_set_user'rlm_sql.c:1716: error: 'RLM_MODULE_FAIL' undeclared (first use in this function)rlm_sql.c:1720: error: 'RLM_MODULE_NOOP' undeclared (first use in this function)rlm_sql.c:1737: error: 'L_ERR' undeclared (first use in this function)rlm_sql.c:1746: error: 'RLM_MODULE_OK' undeclared (first use in this function)rlm_sql.c:1711: warning: unused variable 'sqlusername'rlm_sql.c: At top level:rlm_sql.c:1750: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rlm_sql'make: *** [rlm_sql.lo] Error 1


please help me in this

Regards:Qasim


> Date: Tue, 27 Nov 2012 07:42:58 -0500
> From: aland at deployingradius.com
> To: freeradius-users at lists.freeradius.org
> Subject: Re: FreeRadius Running Error
> 
> QASIM RAO wrote:
> > Hi,
> > i am facing problem in freeradius i m already using freeradius it was
> > working fine now i re-install radius and now when i start radius with
> > "radiusd -X" command it is giving following error 
> > 
> > please help me in this
> >
> > Starting - reading configuration files ...
> > reread_config:  reading radiusd.conf
> > Config:   including file: /usr/local/etc/raddb/proxy.conf
> 
>   You're running a version from 5-6 years ago.  Upgrade.
> 
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20121130/1dcaa974/attachment-0001.html>


More information about the Freeradius-Users mailing list