Hi guys

I've been playing with Ruslan's patched rlm_sqlippool module
(http://www.onlinebilling.ru/freeradius/rlm_sqlippool.tar.gz), but
I've been unable to
get it to compile at all. I'm using Debian Sarge (testing), and the
freeradius 1.0.1 source. It's been at least seven years since I've
debugged any C at all and everything I've tried so far has led to a
dead end. I'm pretty sure I'm missing something, but I can't figure out
what's actually wrong.

If anyone has compiled this on Debian or has any ideas, I'd be
extremely grateful for any help. If I can't get this module, or the
older version of this module working properly
(I haven't yet been able to get multiple ip pools working for the
default user with the unpatched rlm_sqlippool module), I'm going to
have to abandon Freeradius.

Ken.
(Thanks to Alan and Ruslan for their time and help).

This is what happens:

Making static dynamic in rlm_sqlippool...
make[6]: Entering directory `/root/freeradius-1.0.1/src/modules/rlm_sqlippool'
gcc  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5
 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual
-Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef
-I../../include  -c rlm_sqlippool.c -o rlm_sqlippool.o
In file included from rlm_sqlippool.c:24:
rlm_sql.h:46: error: parse error before "SQL_CONFIG"
rlm_sql.h:46: warning: function declaration isn't a prototype
rlm_sql.h:47: error: parse error before "SQL_CONFIG"
rlm_sql.h:47: warning: function declaration isn't a prototype
rlm_sql.h:48: error: parse error before "SQL_CONFIG"
rlm_sql.h:48: warning: function declaration isn't a prototype
rlm_sql.h:49: error: parse error before "SQL_CONFIG"
rlm_sql.h:49: warning: function declaration isn't a prototype
rlm_sql.h:50: error: parse error before "SQL_CONFIG"
rlm_sql.h:50: warning: function declaration isn't a prototype
rlm_sql.h:51: error: parse error before "SQL_CONFIG"
rlm_sql.h:51: warning: function declaration isn't a prototype
rlm_sql.h:52: error: parse error before "SQL_CONFIG"
rlm_sql.h:52: warning: function declaration isn't a prototype
rlm_sql.h:53: error: parse error before "SQL_CONFIG"
rlm_sql.h:53: warning: function declaration isn't a prototype
rlm_sql.h:54: error: parse error before "SQL_CONFIG"
rlm_sql.h:54: warning: function declaration isn't a prototype
rlm_sql.h:55: error: parse error before "SQL_CONFIG"
rlm_sql.h:55: warning: function declaration isn't a prototype
rlm_sql.h:56: error: parse error before "SQL_CONFIG"
rlm_sql.h:56: warning: function declaration isn't a prototype
rlm_sql.h:57: error: parse error before "SQL_CONFIG"
rlm_sql.h:57: warning: function declaration isn't a prototype
rlm_sql.h:58: error: parse error before "SQL_CONFIG"
rlm_sql.h:58: warning: function declaration isn't a prototype
rlm_sql.h:59: error: parse error before "SQL_CONFIG"
rlm_sql.h:59: warning: function declaration isn't a prototype
rlm_sql.h:66: error: parse error before "SQL_CONFIG"
rlm_sql.h:66: warning: no semicolon at end of struct or union
rlm_sql.h:70: error: parse error before '}' token

... etc, and then ends:

rlm_sqlippool.c:1038: error: `data' undeclared (first use in this function)
rlm_sqlippool.c:1038: error: parse error before ')' token
rlm_sqlippool.c: In function `sqlippool_detach':
rlm_sqlippool.c:1115: error: `data' undeclared (first use in this function)
rlm_sqlippool.c:1115: error: parse error before ')' token
rlm_sqlippool.c:1113: warning: unused parameter `instance'
make[6]: *** [rlm_sqlippool.o] Error 1

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

Reply via email to