When compiling CVS HEAD on mips-linux-gnu, I get the following errors: gcc -DHAVE_CONFIG_H -I. -I../../gas -I. -D_GNU_SOURCE -I. -I../../gas -I../bfd -I../../gas/config -I../../gas/../include -I../../gas/.. -I../../gas/../bfd -I../../gas/../intl -I../intl -DLOCALEDIR="\"/usr/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c itbl-lex.c cc1: warnings being treated as errors itbl-lex.c:1694: warning: no previous prototype for 'yyget_lineno' itbl-lex.c:1703: warning: no previous prototype for 'yyget_in' itbl-lex.c:1711: warning: no previous prototype for 'yyget_out' This is a regression from 2.16.1. The compiler is: gcc (GCC) 4.0.2 20050821 (prerelease) (Debian 4.0.1-6) This is on Debian unstable.
It could be a flex bug. I am using flex-2.5.4a-29 on RHEL 3 and have no problem.
Created attachment 659 [details] Fixes Flex Warning in binutils
I have attached a patch I just sent HJL to fix the issue. This issue is similar to the one reported before. http://sources.redhat.com/ml/binutils/2005-03/msg00694.html
Fixed by: 2005-11-01 Thiemo Seufer <ths@networkno.de> PR gas/1299 * Makefile.am: Disable -Werror for the itbl-lex.o rule. * Makefile.in: Regenerate. If there are continued problems with the code generated by flex, we should work to get those corrected in flex itself.