git: 350359a03444 - main - devel/z88dk: unbreak the build when MALLOC_PRODUCTION is unset
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 12:36:51 UTC
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=350359a03444205f8ee4972894ccc7d9346fca51 commit 350359a03444205f8ee4972894ccc7d9346fca51 Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2022-05-06 12:35:00 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2022-05-06 12:35:00 +0000 devel/z88dk: unbreak the build when MALLOC_PRODUCTION is unset In debug mode, malloc() writes some junk to newly allocated memory to help developers discover memory allocation bugs, which results in the subtle compilation errors for this port: gmake --no-print-directory -C stdio zcc +test -O2 -vn -c -c -o obj/_freopen1.o _freopen1.c _freopen1.c:19:36: error: Attempt to modify const lvalue 'mode' _freopen1.c:21:21: error: Attempt to modify const lvalue 'access' _freopen1.c:22:33: error: Attempt to modify const lvalue 'flags' _freopen1.c:25:38: error: Attempt to modify const lvalue 'access' _freopen1.c:26:33: error: Attempt to modify const lvalue 'flags' _freopen1.c:29:38: error: Attempt to modify const lvalue 'access' _freopen1.c:30:33: error: Attempt to modify const lvalue 'flags' _freopen1.c:37:15: error: Attempt to modify const lvalue 'mode' _freopen1.c:39:25: error: Attempt to modify const lvalue 'access' _freopen1.c:40:34: error: Attempt to modify const lvalue 'flags' Idea from: cy (commit 50324bba317c in x11/cde) Reported by: pkg-fallout --- devel/z88dk/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devel/z88dk/Makefile b/devel/z88dk/Makefile index 1b4b16da0266..2a5706571b60 100644 --- a/devel/z88dk/Makefile +++ b/devel/z88dk/Makefile @@ -35,7 +35,7 @@ TEST_DEPENDS= dos2unix:converters/unix2dos \ USES= gmake gnome perl5 shebangfix tar:tgz USE_GNOME= libxml2 USE_PERL5= run -MAKE_ENV= ZCCCFG=${WRKSRC}/lib/config Q= # force verbose build +MAKE_ENV= ZCCCFG=${WRKSRC}/lib/config Q= MALLOC_CONF=junk:false SHEBANG_FILES= src/z80asm/asmpp.pl TEST_TARGET= testsuite test WRKSRC= ${WRKDIR}/${PORTNAME}