Re: make buildworld

From: <dt71_at_gmx.com>
Date: Wed, 23 Oct 2013 13:59:20 +0200
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?
Received on Wed Oct 23 2013 - 10:01:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:43 UTC