Compilation fail on cfree

Arran Cudbard-Bell a.cudbardb at freeradius.org
Mon Dec 10 12:57:15 CET 2012


On 10 Dec 2012, at 08:22, Arran Cudbard-Bell <a.cudbardb at freeradius.org> wrote:

> 
> On 10 Dec 2012, at 08:19, Olivier Beytrison <olivier at heliosnet.org> wrote:
> 
>> Hello,
>> 
>> After Arran's commit e16570e455 compilation fails on the first module
>> (rlm_acctlog)
>> 
>> CC src/modules/rlm_acctlog/rlm_acctlog.c
>> In file included from src/modules/rlm_acctlog/rlm_acctlog.c:28:0:
>> /opt/src/FR3/repositories/freeradius-server/src/freeradius-devel/radiusd.h:544:7:
>> error: conflicting types for ‘cfree’
>> /usr/include/stdlib.h:493:13: note: previous declaration of ‘cfree’ was here
>> make[1]: *** [build/objs/src/modules/rlm_acctlog/rlm_acctlog.lo] Error 1
> 
> 
> Hehe, oops, guess i'll have to call it something else.

Yeah this is a hack in glibc on Linux to support Solaris which actually had a proper cfree which did the same as calloc.

-Arran


More information about the Freeradius-Devel mailing list