make buildworld

dt71 at gmx.com dt71 at gmx.com
Wed Oct 23 12:01:03 UTC 2013


George Mitchell wrote, On 10/23/2013 03:22:
> On 10/22/13 20:55, Mateusz Guzik wrote:
>> On Tue, Oct 22, 2013 at 07:49:21PM -0500, Saul A. Peebsen wrote:
>>> error: 'MALLOC_PRODUCTION' macro redefined [-Werror] #define
>>> MALLOC_PRODUCTION ^ <command line>:6:9: note: previous definition is
>>> here #define MALLOC_PRODUCTION 1 ^ 1 error generated. *** Error code 1
>>
>> Presumably you have MALLOC_PRODUCTION set in src.conf or make.conf,
>> remove it.
>>
>
> Ran into this myself.  More specifically, you have MALLOC_PRODUCTION
> set to something other than the null string.  jemalloc_FreeBSD.h,
> however, says "#define MALLOC_PRODUCTION".  This is okay if you have
>
> MALLOC_PRODUCTION=
>
> in src.conf/make.conf, and this is okay if you don't have
> MALLOC_PRODUCTION in those files, but if you have it set to foo,
> or y, or even "no", you will get this compile error.       -- George

That shouldn't be the case, either the jemalloc-part of the build system (which apparently -- for no apparently good reason -- translates the said make variable directly to a C preprocessor #define) or the jemalloc header file should be fixed. Or?



More information about the freebsd-current mailing list