tags 1097173 + patch fixed-upstream forwarded https://github.com/hyperrealm/libconfig/pull/249 user [email protected] usertag 1097173 + bsp-2025-10-brazil thanks
On Mon Feb 17, 2025 at 2:30 PM -03, Matthias Klose wrote: > 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(); > | ^~~~~~~~~~~~~~~ These two functions are pretty much everything that needs to be patched to make it compile with C23. The upstream has this fixed since version v1.8 [1]. I created a Merge Request on Salsa backporting the patch to the current release [2]. [1] https://github.com/hyperrealm/libconfig/commit/690342b9cbc8b39787a1501bd890d63ca63a003c [2] https://salsa.debian.org/debian/libconfig/-/merge_requests/1 -- Henrique F. Simões

