-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse_lex.l:79:5: error: 'yylval' undeclared (first use in this function) #22
Comments
Just checked out a clean copy on RHEL 7.3 and it built OK for me (I did get the 'input' warning). Configure says:
make V=1 says
Maybe check that your copy starts clean (not having yacc/lex results from a build somewhere else), and if that's not it, post your output here so we can compare? |
My build is by definition "clean" as I am using From my build:
and
Interestingly I don't have all of the:
that you have. My So I double-checked the build of that file by doing an |
yylval is defined in the parse_tab.h generated by bison. I can reproduce that error if I configure with
Installing bison might be a workaround for you, but we should get this fixed. |
Looks like Hmm, feels wrong, but this works with both bison and byacc diff --git a/powermand/parse_lex.l b/powermand/parse_lex.l
index d68962c..87f21e7 100644
--- a/powermand/parse_lex.l
+++ b/powermand/parse_lex.l
@@ -30,6 +30,7 @@
#endif
/* N.B. must define YYSTYPE before including parse_tab.h or type will be int. */
#define YYSTYPE char *
+extern YYSTYPE yylval;
#include <string.h>
#include <stdio.h>
#include <stdlib.h> |
So, yeah. I installed byacc just because that's what Simply installing bison, without doing anything else doesn't seem to resolve it. |
make clean? |
When I try to build master on EL 7.3 I get:
Yacc is one tool I never got my head around. Any idea what might be going wrong here?
The text was updated successfully, but these errors were encountered: