Compilation error

2005-06-21 Thread Oleg M. Golovanov

I try to make FreeRADIUS 1.0.4 on FreeBSD 4.11
and got the followin ( the previous version has been made successfully).
Does anybody know the problem or maybe where to search?

In file included from rlm_attr_rewrite.c:31:
/usr/include/regex.h:46: syntax error before `regoff_t'
/usr/include/regex.h:46: warning: type defaults to `int' in declaration 
of `regoff_t'
/usr/include/regex.h:46: warning: data definition has no type or storage 
class

/usr/include/regex.h:56: syntax error before `regoff_t'
rlm_attr_rewrite.c: In function `do_attr_rewrite':
rlm_attr_rewrite.c:314: structure has no member named `rm_so'
rlm_attr_rewrite.c:316: structure has no member named `rm_so'
rlm_attr_rewrite.c:318: structure has no member named `rm_eo'
rlm_attr_rewrite.c:318: structure has no member named `rm_so'
rlm_attr_rewrite.c:330: structure has no member named `rm_eo'
rlm_attr_rewrite.c:348: structure has no member named `rm_so'
rlm_attr_rewrite.c:357: structure has no member named `rm_so'
rlm_attr_rewrite.c:358: structure has no member named `rm_eo'
rlm_attr_rewrite.c:358: structure has no member named `rm_so'
rlm_attr_rewrite.c:359: structure has no member named `rm_eo'
rlm_attr_rewrite.c:359: structure has no member named `rm_so'
gmake[5]: *** [rlm_attr_rewrite.o] Error 1
gmake[5]: Leaving directory 
`/usr/home/olmi/com/freeradius-1.0.4/src/modules/rlm_attr_rewrite'

gmake[4]: *** [common] Error 2
gmake[4]: Leaving directory 
`/usr/home/olmi/com/freeradius-1.0.4/src/modules'

gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory 
`/usr/home/olmi/com/freeradius-1.0.4/src/modules'

gmake[2]: *** [common] Error 2
gmake[2]: Leaving directory `/usr/home/olmi/com/freeradius-1.0.4/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/home/olmi/com/freeradius-1.0.4/src'
gmake: *** [common] Error 2
*** Error code 2

Stop in /usr/home/olmi/com/freeradius-1.0.4.

--
Respectively,

Oleg Golovanov
Krasnoyarsk city
Russia

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


Compilation errors in 1.0.4

2005-06-21 Thread Oleg M. Golovanov

I fixed the shown error but got the following.
I set CPPFLAGS in my configure script as follows
--
CPPFLAGS=-I/usr/local/include -I/usr/local/pgsql/include 
LDFLAGS=-L/usr/local/lib -L/usr/local/pgsql/lib ./configure 
--prefix=/usr/local/freeradius --with-raddbdir=/usr/local/freeradius/etc 
--with-logdir=/var/log/radius --with-radacctdir=/var/log/radacct 
--without-rlm-krb5 --without-rlm-sql-mysql --without-rlm-sql-oracle 
--with-iodbc-lib-dir=/usr/local/lib --without-rlm-sql-unixodbc 
--with-rlm-counter-include-dir=/usr/local/include 21  sci-freeradius.log

--
But it don't help to solve it.
--
gcc  -g -O2 -pthread -D_THREAD_SAFE -DOPENSSL_NO_KRB5   -Wall 
-D_GNU_SOURCE -DNDEBUG  -I../../include  -c rlm_counter.c -o rlm_counter.o

rlm_counter.c:38: gdbm.h: No such file or directory
gmake[5]: *** [rlm_counter.o] Error 1
gmake[5]: Leaving directory 
`/usr/home/olmi/com/freeradius-1.0.4/src/modules/rlm_counter'

gmake[4]: *** [common] Error 2
gmake[4]: Leaving directory 
`/usr/home/olmi/com/freeradius-1.0.4/src/modules'

gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory 
`/usr/home/olmi/com/freeradius-1.0.4/src/modules'

gmake[2]: *** [common] Error 2
gmake[2]: Leaving directory `/usr/home/olmi/com/freeradius-1.0.4/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/home/olmi/com/freeradius-1.0.4/src'
gmake: *** [common] Error 2
*** Error code 2

Stop in /usr/home/olmi/com/freeradius-1.0.4
--

Respectively,

Oleg Golovanov
Krasnoyarsk city
Russia
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


ACCT_USERS don't work

2005-05-18 Thread Oleg M. Golovanov
I have FreeBSD 4.10  FreeRADIUS 1.0.2 with Postgres SQL 7.4.7.
The problem is following:
I wrote
DEFAULT Acct-Status-Type == Start, Huntgroup-Name == vpn
   Exec-Program = /usr/local/4net/vpn_acct.pl start
DEFAULT Acct-Status-Type == Stop, Huntgroup-Name == vpn
   Exec-Program = /usr/local/4net/vpn_acct.pl stop
(Huntgroups are OK - it was tested on auth stage.)
But when acct packets come on then this script don't start up.
It looks like radius don't use this acct_users file during its work.
There are no logs concerning this error in radius.log.
Can anybody prompt where to search the cause of this problem?
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Daemonizing problem

2005-04-03 Thread Oleg M. Golovanov
I commented the user and group options and everything starts up OK.
May be something with permissions - I did not check it yet.
I have FreeRADIUS 1.0.2 on FreeBSD 4.10
configured as followed:

CPPFLAGS=-I/usr/local/include -I/usr/local/pgsql/include 
LDDFLAGS=-L/usr/local/lib -L/usr/local/pgsql/lib ./configure 
--prefix=/usr/local/freeradius 
--with-raddbdir=/usr/local/freeradius/etc 
--with-logdir=/var/log/radius --with-radacctdir=/var/log/radacct 
--without-rlm-krb5 --without-rlm-sql-mysql --without-rlm-sql-unixodbc 
--without-rlm-sql-iodbc --without-rlm-sql-oracle --without-rlm-ldap 
21  script-fradius.log


When I try to start up freeradius after installation and configuration 
as followed:
/usr/local/freeradius/sbin/radiusd -A -g local6 -y -z

It starts up but does not daemonize and deattach from tty.
Can anybody prompt where to look up to search and correct this?
Oleg Golovanov
Krasnoyarsk city
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Daemonizing problem

2005-04-02 Thread Oleg M. Golovanov
I have FreeRADIUS 1.0.2 on FreeBSD 4.10
configured as followed:

CPPFLAGS=-I/usr/local/include -I/usr/local/pgsql/include 
LDDFLAGS=-L/usr/local/lib -L/usr/local/pgsql/lib ./configure 
--prefix=/usr/local/freeradius --with-raddbdir=/usr/local/freeradius/etc 
--with-logdir=/var/log/radius --with-radacctdir=/var/log/radacct 
--without-rlm-krb5 --without-rlm-sql-mysql --without-rlm-sql-unixodbc 
--without-rlm-sql-iodbc --without-rlm-sql-oracle --without-rlm-ldap 21 
 script-fradius.log


When I try to start up freeradius after installation and configuration 
as followed:
/usr/local/freeradius/sbin/radiusd -A -g local6 -y -z

It starts up but does not daemonize and deattach from tty.
Can anybody prompt where to look up to search and correct this?
Oleg Golovanov
Krasnoyarsk city
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Segmentation fault

2005-04-02 Thread Oleg M. Golovanov
FreeRADIUS 1.0.2 on FreeBSD 4.10
# check-radiusd-config
Segmentation fault
Radius server configuration looks OK.
# /usr/local/freeradius/sbin/radiusd -X
Starting - reading configuration files ...
reread_config:  reading radiusd.conf
Config:   including file: /usr/local/freeradius/etc/clients.conf
Config:   including file: /usr/local/freeradius/etc/eap.conf
Config:   including file: /usr/local/freeradius/etc/pgsql.conf
main: prefix = /usr/local/freeradius
main: localstatedir = /usr/local/freeradius/var
main: logdir = /var/log/radius
main: libdir = /var/backups/freeradius/lib
main: radacctdir = /var/db/radacct
main: hostname_lookups = no
main: max_request_time = 30
main: cleanup_delay = 5
main: max_requests = 1024
main: delete_blocked_requests = 0
main: port = 0
main: allow_core_dumps = no
main: log_stripped_names = no
main: log_file = /var/log/radius/radius.log
main: log_auth = no
main: log_auth_badpass = no
main: log_auth_goodpass = no
main: pidfile = /var/run/radiusd.pid
main: user = radius
main: group = network
main: usercollide = no
main: lower_user = no
main: lower_pass = no
main: nospace_user = no
main: nospace_pass = no
main: checkrad = /usr/local/freeradius/sbin/checkrad
main: proxy_requests = no
security: max_attributes = 200
security: reject_delay = 1
security: status_server = no
main: debug_level = 0
read_config_files:  reading dictionary
read_config_files:  reading naslist
read_config_files:  reading clients
read_config_files:  reading realms
radiusd:  entering modules setup
Module: Library search path is /usr/local/freeradius/lib
Segmentation fault
Where to search the source of problem - maybe in module's configs?
Oleg Golovanov
Krasnoyarsk city
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html