Bug 175995

Summary: Setting MALLOC_PRODUCTION stops buildworld
Product: Documentation Reporter: dewayne
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed Works As Intended    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description dewayne 2013-02-10 00:30:00 UTC
Would it be possible to modify the man page for make.conf 

The option for MALLOC_PRODUCTION= was disabled in 2011 (revision 226405).  And if set from make.conf, the 9.1 Stable build, will stop.

cc -fpic -DPIC  -O2 -pipe -pipe -O2 -g0 -march=prescott -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 -DNLS  -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/..
/usr/src/lib/libc/stdlib/malloc.c:126:1: error: "MALLOC_PRODUCTION" redefined
<command-line>: error: this is the location of the previous definition
*** [malloc.o] Error code 1
*** [malloc.So] Error code 1
2 errors
*** [lib/libc__L] Error code 2
1 error
*** [libraries] Error code 2
1 error
*** [_libraries] Error code 2
1 error
*** [buildworld] Error code 2
1 error

Fix: 

Remove MALLOC_PRODUCTION from man make.conf or better, advise that it is not applicable from Nov-2011.
How-To-Repeat: MALLOC_PRODUCTION=yes && make buildworld (would be a fair guess)
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:59 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped