On 10/6/2014 3:44 PM, Stephen Cameron wrote:
I suspect that your version of yacc does not comprehend the --no-lines
option (which we needed only in order to avoid a bug in some other
versions of yacc). From the usage message it does appear to
understand both -d and -l though.
Try changing the --no-lines option in the Makefile to -l instead, and
see if that helps.
The same problem occurs on FreeBSD 10. After changing "--no-lines" to
"-l" the build works, with the following warnings:
YACC y.tab.c
CC lex.yy.o
lex.yy.c:1245:3: warning: incompatible pointer types passing 'yy_size_t
*' (aka 'unsigned long *') to parameter of type 'int *'
[-Wincompatible-pointer-types]
YY_INPUT(
(&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exp/expression-parser.l:31:25: note: expanded from macro 'YY_INPUT'
lexer_input((buffer), &(bytes_read), (bytes_requested))
^~~~~~~~~~~~~
exp/expression-parser.l:27:43: note: passing argument to parameter
'nbytes' here
extern int lexer_input(char* buffer, int *nbytes, int buffersize);
--
Bruce
--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html