Created attachment 198584 [details] patch GCC architectures require CFLAGS+=-fnested-functions. Tested on powerpc64 and amd64. Hardware sponsored by IntegriCloud.
Would USES=compiler:nestedfct suffice?
This USES addition is certainly useful to make sure that proper compiler is used, but CFLAGS mod is still needed: ===> Building for milter-callback-1.6.0_6 gcc -O2 -pipe -DFREEBSD -DHAVE_NS_TYPE -DWITH_SPF -I/usr/local/include -I/tmp/usr/local/poudriere/ports/default/mail/milter-callback/work/milter-callback-1.6.0 -std=gnu99 -fno-strict-aliasing -c /tmp/usr/local/poudriere/ports/default/mail/milter-callback/work/milter-callback-1.6.0/cache.c -o /tmp/usr/local/poudriere/ports/default/mail/milter-callback/work/milter-callback-1.6.0/cache.o /tmp/usr/local/poudriere/ports/default/mail/milter-callback/work/milter-callback-1.6.0/cache.c: In function 'extendCache': /tmp/usr/local/poudriere/ports/default/mail/milter-callback/work/milter-callback-1.6.0/cache.c:338: error: nested functions are disabled, use -fnested-functions to re-enable
A commit references this bug: Author: ehaupt Date: Fri Oct 26 14:40:55 UTC 2018 New revision: 483035 URL: https://svnweb.freebsd.org/changeset/ports/483035 Log: Fix build with GCC-based architectures. GCC architectures require CFLAGS+=-fnested-functions. PR: 232646 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl> MFH: 2018Q4 (blanket) Changes: head/mail/milter-callback/Makefile
Committed, thanks.
A commit references this bug: Author: ehaupt Date: Fri Oct 26 14:42:24 UTC 2018 New revision: 483037 URL: https://svnweb.freebsd.org/changeset/ports/483037 Log: MFH: r483035 Fix build with GCC-based architectures. GCC architectures require CFLAGS+=-fnested-functions. PR: 232646 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl> Approved by: ports-secteam (blanket) Changes: _U branches/2018Q4/ branches/2018Q4/mail/milter-callback/Makefile