Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Oct 2013 13:59:20 +0200
From:      dt71@gmx.com
To:        freebsd-current@freebsd.org
Subject:   Re: make buildworld
Message-ID:  <5267BA18.4050207@gmx.com>
In-Reply-To: <526724D1.5060406@m5p.com>
References:  <20131022194921.6adebf5d@zeus.saul.homeunix.org> <20131023005502.GB3421@dft-labs.eu> <526724D1.5060406@m5p.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5267BA18.4050207>