radsqlrelay v1.7 on freebsd 6.3
roy
bandwidth.user at gmail.com
Mon Jan 14 06:46:28 CET 2008
Apologies for cross-posting.
Just wondering if anyone else was able to run radsqlrelay successfully
on FBSD 6.3.
I've ran into file lock issue right after I've tried running the pl
script:
# ls -al
total 8
drwxr-xr-x 3 root wheel 512 Jan 14 13:39 .
drwxr-xr-x 5 root wheel 512 Jan 14 11:42 ..
drwxr-xr-x 2 root wheel 512 Jan 14 11:49 127.0.0.1
-rw-r--r-- 1 root wheel 51 Jan 14 11:49 sql-relay
# radsqlrelay -b radius -d pg -h 172.16.10.100 -u
postgres /home/radius/sql-relay
error: Couldn't lock /home/radius/sql-relay.work: Invalid argument
# ls -al
total 8
drwxr-xr-x 3 root wheel 512 Jan 14 13:39 .
drwxr-xr-x 5 root wheel 512 Jan 14 11:42 ..
drwxr-xr-x 2 root wheel 512 Jan 14 11:49 127.0.0.1
-rw-r--r-- 1 root wheel 51 Jan 14 11:49 sql-relay.work
Inspecting radsqlrelay shows the following lines:
# /!\ OS-dependent structure
# Linux struct flock
# short l_type;
# short l_whence;
# off_t l_start;
# off_t l_len;
# pid_t l_pid;
# c2ph says: typedef='s2 l2 i', sizeof=16
my $FLOCK_STRUCT = 's2l2i';
Application versions that are being used:
FreeBSD 6.3-PRERELEASE
p5-DBD-Pg-1.49
p5-DBI-1.60.1
postgresql-client-8.1.11
freeradius-devel-2.0.0.p2
radsqlrelay v1.7
I'm no real coder myself, hence, the need to seek direction. Any
necessary change on the script that I need to make?
Thanks again,
roy
More information about the Freeradius-Users
mailing list