Problem with custom accounting module.

Bill Schoolfield bill at
Mon Apr 21 20:52:32 CEST 2014

...and this is probably the culprit (in radiusd.h):

struct auth_req {
#ifndef NDEBUG
         uint32_t                magic; /* for debugging only */

Moral of the story when compiling freeradius source outside of its 
source tree/environment, make sure this define is consistent for all 


On 4/18/2014 7:41 PM, Alan DeKok wrote:
> Bill Schoolfield wrote:
>> Well this has turned out to be some sort of linkage/compile issue. On
>> the same server, I can build the shared library for our module from
>> either the source tree from our application or the source tree from
>> freeradius. Building from freeradius works. The other way does not...
>    It's probably a header issue.  Building from within your application
> probably misses some headers, so the REQUEST structure ends up being a
> different size.
>> Best I can tell the same includes and libraries are used. A ldd of both
>> .so files show commonality though our app has many more referenced
>> libraries. I wonder if we've got a namespace collision somewhere.
>> Anybody got a suggestion for where to look?
>    Not really.  In v2, the modules *might* build outside of the server
> source.  In v3, they will not.
>    Alan DeKok.
> -
> List info/subscribe/unsubscribe? See

More information about the Freeradius-Devel mailing list