[Bug 293342] sysutils/wiimms: Fails to build with GCC 15: error: expected '{' before 'bool'

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 21 Feb 2026 16:05:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293342

            Bug ID: 293342
           Summary: sysutils/wiimms: Fails to build with GCC 15: error:
                    expected '{' before 'bool'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://pkg-status.freebsd.org/gohan05/data/143amd64-d
                    efault-foo/2026-01-30_10h01m25s/logs/errors/wiimms-2.2
                    3.a_10.log
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: salvadore@freebsd.org
            Blocks: 292692

The port fails to build with GCC 15 and blocks GCC_DEFAULT update to 15. Full
log in URL field. This link might be useful:
https://gcc.gnu.org/gcc-15/porting_to.html .

***  object gen-ui.o          
In file included from ./src/ui/gen-ui.c:45:
src/types.h:65:16: error: expected '{' before 'bool'
   65 |   typedef enum bool { false, true } __attribute__ ((packed)) bool;
      |                ^~~~
src/types.h:65:16: error: two or more data types in declaration specifiers
src/types.h:65:16: warning: useless type name in empty declaration
gmake: *** [Makefile:375: gen-ui.o] Error 1
gmake: *** Waiting for unfinished jobs....
src/lzma/LzmaEnc.c: In function 'LzmaEnc_CodeOneMemBlock':
src/lzma/LzmaEnc.c:2142:19: warning: storing the address of local variable
'outStream' in '*(CLzmaEnc *)pp.rc.outStream' [-Wdangling-pointer=]
 2142 |   p->rc.outStream = &outStream.funcTable;
      |   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
src/lzma/LzmaEnc.c:2126:20: note: 'outStream' declared here
 2126 |   CSeqOutStreamBuf outStream;
      |                    ^~~~~~~~~
src/lzma/LzmaEnc.c:2120:45: note: 'pp' declared here
 2120 | SRes LzmaEnc_CodeOneMemBlock(CLzmaEncHandle pp, Bool reInit,
      |                              ~~~~~~~~~~~~~~~^~


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292692
[Bug 292692] [exp-run] Update GCC_DEFAULT to 15
-- 
You are receiving this mail because:
You are the assignee for the bug.