[Bug 293330] lang/gforth: Fails to build with GCC 15 error: conflicting types for 'getopt'
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 21 Feb 2026 13:29:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293330
Bug ID: 293330
Summary: lang/gforth: Fails to build with GCC 15 error:
conflicting types for 'getopt'
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/gforth-0.7
.3_15.log
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: danfe@FreeBSD.org
Reporter: salvadore@freebsd.org
Blocks: 292692
Assignee: danfe@FreeBSD.org
Flags: maintainer-feedback?(danfe@FreeBSD.org)
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 .
In file included from ./main.c:47:
./getopt.h:104:12: error: conflicting types for 'getopt'; have 'int(void)'
104 | extern int getopt ();
| ^~~~~~
In file included from ./forth.h:25:
/usr/include/unistd.h:378:10: note: previous declaration of 'getopt' with type
'int(int, char * const*, const char *)'
378 | int getopt(int, char * const [], const char *);
| ^~~~~~
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.