[Bug 293285] databases/proxysql: Fails to build with GCC 15: error: too many arguments to function 'libconfig_yyget_lineno'

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 19 Feb 2026 12:07:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293285

            Bug ID: 293285
           Summary: databases/proxysql: Fails to build with GCC 15: error:
                    too many arguments to function
                    'libconfig_yyget_lineno'
           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/proxysql-2
                    .6.6_1.log
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: zi@FreeBSD.org
          Reporter: salvadore@freebsd.org
            Blocks: 292692
          Assignee: zi@FreeBSD.org
             Flags: maintainer-feedback?(zi@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 .

gmake[5]: Entering directory
'/wrkdirs/usr/ports/databases/proxysql/work/proxysql-2.6.6/deps/libconfig/libconfig-1.7.3/lib'
  CC       libconfig_la-grammar.lo
config.status: creating doc/manpages.xsl
config.status: creating doc/jemalloc.xml
grammar.y: In function 'capture_parse_pos':
grammar.y:58:33: error: too many arguments to function
'libconfig_yyget_lineno'; expected 0, have 1
   58 |   setting->line = (unsigned int)libconfig_yyget_lineno(scanner);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~
grammar.y:44:12: note: declared here
   44 | extern int libconfig_yyget_lineno();
      |            ^~~~~~~~~~~~~~~~~~~~~~
grammar.y: In function 'libconfig_yyerror':
grammar.y:69:29: error: too many arguments to function
'libconfig_yyget_lineno'; expected 0, have 1
   69 |   ctx->config->error_line = libconfig_yyget_lineno(scanner);
      |                             ^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~
grammar.y:44:12: note: declared here
   44 | extern int libconfig_yyget_lineno();
      |            ^~~~~~~~~~~~~~~~~~~~~~
grammar.c: In function 'libconfig_yyparse':
grammar.c:64:25: error: too many arguments to function 'libconfig_yylex';
expected 0, have 2
   64 | #define yylex           libconfig_yylex
      |                         ^~~~~~~~~~~~~~~
grammar.c:1269:16: note: in expansion of macro 'yylex'
 1269 |       yychar = yylex (&yylval, scanner);
      |                ^~~~~
grammar.y:43:12: note: declared here
   43 | extern int libconfig_yylex();
      |            ^~~~~~~~~~~~~~~
gmake[5]: *** [Makefile:647: libconfig_la-grammar.lo] Error 1
gmake[5]: Leaving directory
'/wrkdirs/usr/ports/databases/proxysql/work/proxysql-2.6.6/deps/libconfig/libconfig-1.7.3/lib'
gmake[4]: *** [Makefile:459: all] Error 2


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.