Hi Nicolas, hi Roy,

Nicolas I'm currently using your radsqlrelay.c with the 1.0.2 release and
I've patched the makefile. I'm very new to this whole patching and
code-hacking
thing. I'm getting the following error message while making radsqlrelay:
thanks for any pointers how to compile radsqlrelay.

Bart


gcc  -march=pentium3 -O3 -pipe -fomit-frame-pointer -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall -D_GNU_SOURCE -DNDEBUG
-I../include  -DHOSTINFO=\"\" -DRADIUSD_VERSION=\"1.0.2\"   -o xlat.o -c
xlat.c
gcc  -march=pentium3 -O3 -pipe -fomit-frame-pointer -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall -D_GNU_SOURCE -DNDEBUG
-I../include  -DHOSTINFO=\"\" -DRADIUSD_VERSION=\"1.0.2\"   -c valuepair.c
gcc  -march=pentium3 -O3 -pipe -fomit-frame-pointer -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall -D_GNU_SOURCE -DNDEBUG
-I../include  -DHOSTINFO=\"\" -DRADIUSD_VERSION=\"1.0.2\"   -c timestr.c
gcc  -L../lib  radsqlrelay.o mainconfig.o util.o nas.o client.o log.o
conffile.o files.o xlat.o valuepair.o timestr.o ../lib/.libs/libradius.so
-o radsqlrelay
radsqlrelay.o(.text+0xf26): In function `init_sql':
: undefined reference to `lt_preloaded_symbols'
radsqlrelay.o(.text+0xf2d): In function `init_sql':
: undefined reference to `lt_dlpreload_default'
radsqlrelay.o(.text+0xf32): In function `init_sql':
: undefined reference to `lt_dlinit'
radsqlrelay.o(.text+0xf53): In function `init_sql':
: undefined reference to `lt_dlopenext'
radsqlrelay.o(.text+0xf5e): In function `init_sql':
: undefined reference to `lt_dlerror'
radsqlrelay.o(.text+0xfa9): In function `init_sql':
: undefined reference to `lt_dlsym'
radsqlrelay.o(.text+0x1027): In function `init_sql':
: undefined reference to `lt_dlclose'
radsqlrelay.o(.text+0x1051): In function `init_sql':
: undefined reference to `lt_dlerror'
radsqlrelay.o(.text+0x10a9): In function `init_sql':
: undefined reference to `lt_dlsetsearchpath'
radsqlrelay.o(.text+0x10b3): In function `init_sql':
: undefined reference to `lt_dlerror'
../lib/.libs/libradius.so: undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [radsqlrelay] Error 1



-----Original Message-----
From: Nicolas Baradakis [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 22 februari 2005 14:35
To: freeradius-users@lists.freeradius.org
Subject: Re: radsqlrelay for 1.0.2

ROY wrote:

> > This version can be built in the 1.0.x source tree. It has been 
> > modified to fix the detail file locking issue under heavy load. 
> > Since you are running tests on radsqlrelay, I'd be grateful if I 
> > could receive some feedback from you on this version.
> 
> There were a lot off differences between v1.3 against your v1.1.2.4 
> (code wise). I'm no C coder myself so I can't tell from the diff 
> output what functionalities were changed. If there's a big advantage 
> using the
> 1.1.2.4 I'd be happy to test it for you.

Under heavy load you can see the following error message many times in the
file /var/log/freeradius/radius.log

Error: rlm_detail: Failed to aquire filelock for
/var/log/freeradius/radacct/detail-relay, giving up

It's a known problem of radrelay, and it was reported on the mailing list by
different people. I've had exactly the same errors with radsqlrelay (which
shares a lot of code with radrelay).

http://lists.cistron.nl/archives/freeradius-users/2004/09/frm00877.html
http://lists.cistron.nl/archives/freeradius-users/2004/10/frm00864.html

The changes I made to radsqlrelay.c fix this. My own tests are OK, but I'm
interested to get other people's opinion. Even if you've never seen the
"Failed to aquire filelock" message, just tell me if the new version works
exactly like before. That will help, too.

--
Nicolas Baradakis

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

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

Reply via email to