regression on -current with glibc
by nobodino from LinuxQuestions.org on (#5PCF9)
glibc doesn't build anymore on -current:
-----------------------
/tmp/glibc-2.33/build-glibc-2.33/intl/plural.c:69:25: error: static declaration of '__gettextlex' follows non-static declaration
69 | #define yylex __gettextlex
| ^~~~~~~~~~~~
plural.y:57:12: note: in expansion of macro 'yylex'
57 | static int yylex (YYSTYPE *lval, struct parse_args *arg);
| ^~~~~
/tmp/glibc-2.33/build-glibc-2.33/intl/plural.c:203:5: note: previous declaration of '__gettextlex' with type 'int(YYSTYPE *, struct parse_args *)'
203 | int __gettextlex (YYSTYPE *yylvalp, struct parse_args *arg);
| ^~~~~~~~~~~~
/tmp/glibc-2.33/build-glibc-2.33/intl/plural.c:70:25: error: static declaration of '__gettexterror' follows non-static declaration
70 | #define yyerror __gettexterror
| ^~~~~~~~~~~~~~
plural.y:58:13: note: in expansion of macro 'yyerror'
58 | static void yyerror (struct parse_args *arg, const char *str);
| ^~~~~~~
gcc dcgettext.c -c -std=gnu11 -fgnu89-inline -g -O3 -fPIC -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -Wstrict-prototypes -Wold-style-definition -fmath-errno -fPIC -ftls-model=initial-exec -I../include -I/tmp/glibc-2.33/build-glibc-2.33/intl -I/tmp/glibc-2.33/build-glibc-2.33 -I../sysdeps/unix/sysv/linux/x86_64/64 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86/include -I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/x86/nptl -I../sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/x86_64/nptl -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux -I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu -I../sysdeps/x86_64/multiarch -I../sysdeps/x86_64 -I../sysdeps/x86/include -I../sysdeps/x86 -I../sysdeps/ieee754/float128 -I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem /tools/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include -isystem /tools/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include-fixed -isystem /usr/include -D_LIBC_REENTRANT -include /tmp/glibc-2.33/build-glibc-2.33/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h -DPIC -DSHARED -DTOP_NAMESPACE=glibc -D'LOCALEDIR="/usr/share/locale"' -D'LOCALE_ALIAS_PATH="/usr/share/locale"' -o /tmp/glibc-2.33/build-glibc-2.33/intl/dcgettext.os -MD -MP -MF /tmp/glibc-2.33/build-glibc-2.33/intl/dcgettext.os.dt -MT /tmp/glibc-2.33/build-glibc-2.33/intl/dcgettext.os
/tmp/glibc-2.33/build-glibc-2.33/intl/plural.c:200:6: note: previous declaration of '__gettexterror' with type 'void(struct parse_args *, const char *)'
200 | void __gettexterror (struct parse_args *arg, const char *msg);
| ^~~~~~~~~~~~~~
make[2]: *** [../o-iterator.mk:9: /tmp/glibc-2.33/build-glibc-2.33/intl/plural.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/glibc-2.33/intl'
make[1]: *** [Makefile:479: intl/subdir_lib] Error 2
make[1]: Leaving directory '/tmp/glibc-2.33'
make: *** [Makefile:9: all] Error 2
---------------------------------
culprit: new bison-3.8
-----------------------
/tmp/glibc-2.33/build-glibc-2.33/intl/plural.c:69:25: error: static declaration of '__gettextlex' follows non-static declaration
69 | #define yylex __gettextlex
| ^~~~~~~~~~~~
plural.y:57:12: note: in expansion of macro 'yylex'
57 | static int yylex (YYSTYPE *lval, struct parse_args *arg);
| ^~~~~
/tmp/glibc-2.33/build-glibc-2.33/intl/plural.c:203:5: note: previous declaration of '__gettextlex' with type 'int(YYSTYPE *, struct parse_args *)'
203 | int __gettextlex (YYSTYPE *yylvalp, struct parse_args *arg);
| ^~~~~~~~~~~~
/tmp/glibc-2.33/build-glibc-2.33/intl/plural.c:70:25: error: static declaration of '__gettexterror' follows non-static declaration
70 | #define yyerror __gettexterror
| ^~~~~~~~~~~~~~
plural.y:58:13: note: in expansion of macro 'yyerror'
58 | static void yyerror (struct parse_args *arg, const char *str);
| ^~~~~~~
gcc dcgettext.c -c -std=gnu11 -fgnu89-inline -g -O3 -fPIC -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -Wstrict-prototypes -Wold-style-definition -fmath-errno -fPIC -ftls-model=initial-exec -I../include -I/tmp/glibc-2.33/build-glibc-2.33/intl -I/tmp/glibc-2.33/build-glibc-2.33 -I../sysdeps/unix/sysv/linux/x86_64/64 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86/include -I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/x86/nptl -I../sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/x86_64/nptl -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux -I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu -I../sysdeps/x86_64/multiarch -I../sysdeps/x86_64 -I../sysdeps/x86/include -I../sysdeps/x86 -I../sysdeps/ieee754/float128 -I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem /tools/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include -isystem /tools/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include-fixed -isystem /usr/include -D_LIBC_REENTRANT -include /tmp/glibc-2.33/build-glibc-2.33/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h -DPIC -DSHARED -DTOP_NAMESPACE=glibc -D'LOCALEDIR="/usr/share/locale"' -D'LOCALE_ALIAS_PATH="/usr/share/locale"' -o /tmp/glibc-2.33/build-glibc-2.33/intl/dcgettext.os -MD -MP -MF /tmp/glibc-2.33/build-glibc-2.33/intl/dcgettext.os.dt -MT /tmp/glibc-2.33/build-glibc-2.33/intl/dcgettext.os
/tmp/glibc-2.33/build-glibc-2.33/intl/plural.c:200:6: note: previous declaration of '__gettexterror' with type 'void(struct parse_args *, const char *)'
200 | void __gettexterror (struct parse_args *arg, const char *msg);
| ^~~~~~~~~~~~~~
make[2]: *** [../o-iterator.mk:9: /tmp/glibc-2.33/build-glibc-2.33/intl/plural.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/glibc-2.33/intl'
make[1]: *** [Makefile:479: intl/subdir_lib] Error 2
make[1]: Leaving directory '/tmp/glibc-2.33'
make: *** [Makefile:9: all] Error 2
---------------------------------
culprit: new bison-3.8