I am trying to install the AAA Radius module to my apache server installed on Linux machine. When trying to install it using the following command (to compile):
apxs -i -a -c mod_auth_radius.c
i am getting the following errors...
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -c -o mod_auth_radius.lo mod_auth_radius.c && touch mod_auth_radius.slo mod_auth_radius.c:305:8: warning: extra tokens at end of #endif directive mod_auth_radius.c:381: error: expected ')' before '*' token mod_auth_radius.c:400: error: expected ')' before '*' token mod_auth_radius.c: In function 'get_random_vector': mod_auth_radius.c:420: error: 'AP_MD5_CTX' undeclared (first use in this function) mod_auth_radius.c:420: error: (Each undeclared identifier is reported only once mod_auth_radius.c:420: error: for each function it appears in.) mod_auth_radius.c:420: error: expected ';' before 'my_md5' mod_auth_radius.c:426: warning: implicit declaration of function 'getpid' mod_auth_radius.c:429: warning: implicit declaration of function 'MD5Init' mod_auth_radius.c:429: error: 'my_md5' undeclared (first use in this function) mod_auth_radius.c:430: warning: implicit declaration of function 'MD5Update' mod_auth_radius.c:432: warning: implicit declaration of function 'MD5Final' mod_auth_radius.c: At top level: mod_auth_radius.c:445: error: expected ')' before '*' token mod_auth_radius.c: In function 'add_auth_radius': mod_auth_radius.c:466: warning: implicit declaration of function 'get_module_config' mod_auth_radius.c:466: warning: assignment makes pointer from integer without a cast mod_auth_radius.c:469: warning: implicit declaration of function 'palloc' mod_auth_radius.c:469: warning: assignment makes pointer from integer without a cast mod_auth_radius.c:481: warning: implicit declaration of function 'get_ip_addr' mod_auth_radius.c:481: warning: assignment makes pointer from integer without a cast mod_auth_radius.c:485: warning: implicit declaration of function 'pstrdup' mod_auth_radius.c:485: warning: assignment makes pointer from integer without a cast mod_auth_radius.c:486: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness mod_auth_radius.c: In function 'set_bind_address': mod_auth_radius.c:509: warning: assignment makes pointer from integer without a cast mod_auth_radius.c:510: warning: assignment makes pointer from integer without a cast mod_auth_radius.c: In function 'set_cookie_valid': mod_auth_radius.c:525: warning: assignment makes pointer from integer without a cast mod_auth_radius.c: At top level: mod_auth_radius.c:540: warning: missing braces around initializer mod_auth_radius.c:540: warning: (near initialization for 'auth_cmds[0].func') mod_auth_radius.c:540: warning: initialization from incompatible pointer type mod_auth_radius.c:543: warning: initialization from incompatible pointer type mod_auth_radius.c:546: warning: initialization from incompatible pointer type mod_auth_radius.c:549: error: 'set_flag_slot' undeclared here (not in a function) mod_auth_radius.c:550: warning: implicit declaration of function 'XtOffsetOf' mod_auth_radius.c:550: error: expected expression before 'radius_dir_config_rec' mod_auth_radius.c:550: error: initializer element is not constant mod_auth_radius.c:550: error: (near initialization for 'auth_cmds[3].cmd_data') mod_auth_radius.c:554: warning: initialization from incompatible pointer type mod_auth_radius.c:555: error: expected expression before 'radius_dir_config_rec' mod_auth_radius.c:555: error: initializer element is not constant mod_auth_radius.c:555: error: (near initialization for 'auth_cmds[4].cmd_data') mod_auth_radius.c:560: error: expected expression before 'radius_dir_config_rec' mod_auth_radius.c:560: error: initializer element is not constant mod_auth_radius.c:560: error: (near initialization for 'auth_cmds[5].cmd_data') mod_auth_radius.c: In function 'verify_packet': mod_auth_radius.c:585: error: 'AP_MD5_CTX' undeclared (first use in this function) mod_auth_radius.c:585: warning: statement with no effect mod_auth_radius.c:585: error: expected ';' before 'my_md5' mod_auth_radius.c:597: error: 'my_md5' undeclared (first use in this function) mod_auth_radius.c: In function 'make_cookie': mod_auth_radius.c:626: warning: initialization makes pointer from integer without a cast mod_auth_radius.c:633: warning: implicit declaration of function 'get_remote_host' mod_auth_radius.c:633: warning: assignment makes pointer from integer without a cast mod_auth_radius.c:676: warning: implicit declaration of function 'ap_snprintf' mod_auth_radius.c:677: error: 'conn_rec' has no member named 'user' mod_auth_radius.c:690: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness mod_auth_radius.c:693: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness mod_auth_radius.c:696: warning: pointer targets in passing argument 2 of 'ap_md5' differ in signedness mod_auth_radius.c: At top level: mod_auth_radius.c:726: error: expected declaration specifiers or '...' before 'table' mod_auth_radius.c: In function 'add_cookie': mod_auth_radius.c:728: warning: initialization makes pointer from integer without a cast mod_auth_radius.c:738: warning: implicit declaration of function 'table_set' mod_auth_radius.c:738: error: 'header' undeclared (first use in this function) mod_auth_radius.c: In function 'spot_cookie': mod_auth_radius.c:747: warning: implicit declaration of function 'table_get' mod_auth_radius.c:747: warning: assignment makes pointer from integer without a cast mod_auth_radius.c:762: warning: assignment makes pointer from integer without a cast mod_auth_radius.c: In function 'radius_authenticate': mod_auth_radius.c:792: error: 'AP_MD5_CTX' undeclared (first use in this function) mod_auth_radius.c:792: warning: statement with no effect mod_auth_radius.c:792: error: expected ';' before 'md5_secret' mod_auth_radius.c:793: error: 'UINT4' undeclared (first use in this function) mod_auth_radius.c:793: warning: statement with no effect mod_auth_radius.c:793: error: expected ';' before 'service' mod_auth_radius.c:824: warning: pointer targets in passing argument 3 of 'add_attribute' differ in signedness mod_auth_radius.c:829: error: 'md5_secret' undeclared (first use in this function) mod_auth_radius.c:831: error: 'my_md5' undeclared (first use in this function) mod_auth_radius.c:831: warning: statement with no effect mod_auth_radius.c:838: warning: statement with no effect mod_auth_radius.c:847: error: 'service' undeclared (first use in this function) mod_auth_radius.c:847: warning: statement with no effect mod_auth_radius.c:849: warning: passing argument 4 of 'add_attribute' makes integer from pointer without a cast mod_auth_radius.c:854: warning: pointer targets in passing argument 3 of 'add_attribute' differ in signedness mod_auth_radius.c:861: warning: assignment makes pointer from integer without a cast mod_auth_radius.c:876: warning: pointer targets in passing argument 3 of 'add_attribute' differ in signedness mod_auth_radius.c:931: warning: implicit declaration of function 'inet_ntoa' mod_auth_radius.c:937: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness mod_auth_radius.c: In function 'check_pw': mod_auth_radius.c:1012: warning: implicit declaration of function 'close' mod_auth_radius.c:1017: warning: pointer targets in passing argument 5 of 'radius_authenticate' differ in signedness mod_auth_radius.c:1078: warning: passing argument 2 of 'add_cookie' from incompatible pointer type mod_auth_radius.c:1078: warning: passing argument 3 of 'add_cookie' makes integer from pointer without a cast mod_auth_radius.c:1078: error: too many arguments to function 'add_cookie' mod_auth_radius.c: In function 'note_challenge_auth_failure': mod_auth_radius.c:1102: warning: implicit declaration of function 'note_basic_auth_failure' mod_auth_radius.c:1105: warning: implicit declaration of function 'pstrcat' mod_auth_radius.c:1105: warning: implicit declaration of function 'auth_name' mod_auth_radius.c: In function 'authenticate_basic_user': mod_auth_radius.c:1143: warning: implicit declaration of function 'get_basic_auth_pw' mod_auth_radius.c:1146: error: 'conn_rec' has no member named 'user' mod_auth_radius.c:1146: error: invalid operands to binary == mod_auth_radius.c:1156: error: 'conn_rec' has no member named 'user' mod_auth_radius.c:1156: warning: format '%s' expects type 'char *', but argument 4 has type 'struct command_rec *' mod_auth_radius.c:1166: warning: passing argument 2 of 'add_cookie' from incompatible pointer type mod_auth_radius.c:1166: warning: passing argument 3 of 'add_cookie' makes integer from pointer without a cast mod_auth_radius.c:1166: error: too many arguments to function 'add_cookie' mod_auth_radius.c:1175: warning: passing argument 2 of 'add_cookie' from incompatible pointer type mod_auth_radius.c:1175: warning: passing argument 3 of 'add_cookie' makes integer from pointer without a cast mod_auth_radius.c:1175: error: too many arguments to function 'add_cookie' mod_auth_radius.c:1176: error: 'conn_rec' has no member named 'user' mod_auth_radius.c:1176: warning: passing argument 2 of 'note_challenge_auth_failure' from incompatible pointer type mod_auth_radius.c:1178: error: 'AUTH_REQUIRED' undeclared (first use in this function) mod_auth_radius.c:1178: warning: return makes integer from pointer without a cast mod_auth_radius.c:1194: error: 'conn_rec' has no member named 'user' mod_auth_radius.c:1194: warning: passing argument 3 of 'check_pw' from incompatible pointer type mod_auth_radius.c:1195: error: 'conn_rec' has no member named 'user' mod_auth_radius.c:1195: warning: format '%s' expects type 'char *', but argument 3 has type 'struct command_rec *' mod_auth_radius.c:1201: warning: implicit declaration of function 'log_reason' mod_auth_radius.c:1202: error: 'conn_rec' has no member named 'user' mod_auth_radius.c:1202: warning: passing argument 2 of 'note_challenge_auth_failure' from incompatible pointer type mod_auth_radius.c:1203: error: 'conn_rec' has no member named 'user' mod_auth_radius.c:1203: warning: format '%s' expects type 'char *', but argument 3 has type 'struct command_rec *' mod_auth_radius.c:1204: warning: return makes integer from pointer without a cast mod_auth_radius.c:1220: error: 'conn_rec' has no member named 'user' mod_auth_radius.c:1220: warning: format '%s' expects type 'char *', but argument 3 has type 'struct command_rec *' mod_auth_radius.c:1224: warning: passing argument 2 of 'add_cookie' from incompatible pointer type mod_auth_radius.c:1224: warning: passing argument 3 of 'add_cookie' makes integer from pointer without a cast mod_auth_radius.c:1224: error: too many arguments to function 'add_cookie' mod_auth_radius.c: At top level: mod_auth_radius.c:1229: error: 'this_module_needs_to_be_ported_to_apache_2_0' undeclared here (not in a function) mod_auth_radius.c:1229: error: initializer element is not constant mod_auth_radius.c:1229: error: (near initialization for 'radius_auth_module.version') mod_auth_radius.c:1230: warning: initialization makes integer from pointer without a cast mod_auth_radius.c:1231: error: 'create_radius_dir_config' undeclared here (not in a function) mod_auth_radius.c:1231: error: initializer element is not constant mod_auth_radius.c:1231: error: (near initialization for 'radius_auth_module.module_index') mod_auth_radius.c:1233: error: 'create_radius_server_config' undeclared here (not in a function) mod_auth_radius.c:1233: error: initializer element is not constant mod_auth_radius.c:1233: error: (near initialization for 'radius_auth_module.dynamic_load_handle') mod_auth_radius.c:1235: warning: initialization makes integer from pointer without a cast mod_auth_radius.c:1238: warning: initialization from incompatible pointer type mod_auth_radius.c:1243: warning: excess elements in struct initializer mod_auth_radius.c:1243: warning: (near initialization for 'radius_auth_module') mod_auth_radius.c:1245: warning: excess elements in struct initializer mod_auth_radius.c:1245: warning: (near initialization for 'radius_auth_module') apxs:Error: Command failed with rc=65536 .
Any help would be really appreciated ...