On 10/22/13 20:55, Mateusz Guzik wrote: > On Tue, Oct 22, 2013 at 07:49:21PM -0500, Saul A. Peebsen wrote: >> OK, here's a bit of history of this box. Never wanted to run CURRENT, >> but had no choice, STABLE wouldn't boot. So I followed all the advice >> how to disable all debugging features. Now I'm trying to build latest >> 10 and I'm getting the error below. >> >> What's wrong? >> >> >> cc -O2 -pipe -march=core2 -I/usr/src/lib/libc/include >> -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/amd64 -DNLS >> -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa >> -I/usr/src/lib/libc/../../contrib/libc-vis -DINET6 >> -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE >> -DPOSIX_MISTAKE -I/usr/src/lib/libc/../../contrib/jemalloc/include >> -DMALLOC_PRODUCTION -I/usr/src/lib/libc/../../contrib/tzcode/stdtime >> -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES >> -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING >> -DSYMBOL_VERSIONING -std=gnu99 -Qunused-arguments -fstack-protector >> -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized >> -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int >> -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality >> -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum >> -Wno-knr-promoted-parameter -c jemalloc_jemalloc.c -o >> jemalloc_jemalloc.o In file included from jemalloc_jemalloc.c:2: In >> file included >> from /usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/jemalloc_internal.h:64: >> In file included >> from /usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/../jemalloc.h:18: /usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/../jemalloc_FreeBSD.h:7:9: >> 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. -- GeorgeReceived on Tue Oct 22 2013 - 23:22:44 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:43 UTC