Hack way to compile freeradius causing freeradius to hang under multithread mode
Alan DeKok
aland at deployingradius.com
Sun Jun 14 09:22:54 CEST 2009
Ming-Ching Tiew wrote:
>
> When I run ./configure .... under uclibc, it can succcessful produce a Makefile. But with that makefile, compilation will fail because the lack of THREAD_TLS under uclibc. Then I went on to modify ( by hand ) src/include/autoconf.h to comment HAVE_THREAD_TLS, then compilation could be completed.
>
> However, the produced binary will not work under multithread mode, it will only work under these modes :-
>
> radiusd -X
> radiusd -s
> radiusd -t
>
> It will not work if it's run as :-
>
> radiusd
And... what does it do? If you have gdb, you should be able to debug it.
> Well, this behaviour is repeatable under gnu lib environment too ( tested
> under debian environment), ie run ./configure, edit src/include/autoconf.h by hand to comment HAVE_THREAD_TLS.
Nope. it works on all platforms I have access to. Mac, Solaris,
Ubuntu...
Alan DeKok.
More information about the Freeradius-Devel
mailing list