Compilation fail on cfree
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:
>> After Arran's commit e16570e455 compilation fails on the first module
>> CC src/modules/rlm_acctlog/rlm_acctlog.c
>> In file included from src/modules/rlm_acctlog/rlm_acctlog.c:28:0:
>> error: conflicting types for ‘cfree’
>> /usr/include/stdlib.h:493:13: note: previous declaration of ‘cfree’ was here
>> make: *** [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.
More information about the Freeradius-Devel