You are not logged in.
Pages: 1
okay, so i'm trying to build wine and i'm getting this error.
../../../wine-git/tools/wrc/parser.y: In function 'rsrcid_to_token':
../../../wine-git/tools/wrc/parser.y:2840:15: error: 'YYLEX' undeclared (first use in this function)
lookahead = YYLEX;
^
../../../wine-git/tools/wrc/parser.y:2840:15: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [parser.tab.o] Error 1
make[1]: Leaving directory `/aur/wine-git/src/wine-git-64-build/tools/wrc'
make: *** [tools/wrc] Error 2
==> ERROR: A failure occurred in build().
Aborting...
it looks like there's a problem with the flex library i guess, but ...well, i don't think there should be. i even removed / cleaned / synced, checked aur for other/newer releases, etc. what it's complaining about is this --
static int rsrcid_to_token(int lookahead)
{
int token;
/* Get a token if we don't have one yet */
if(lookahead == YYEMPTY)
lookahead = YYLEX;
/* Only numbers are possibly interesting */
switch(lookahead)
{
case tNUMBER:
case tLNUMBER:
break;
default:
return lookahead;
}
.
.
.
this seems to be the only call to YYLEX in the file. now, it SHOULD be defined here...
#if defined(YYBYACC)
/* Berkeley yacc (byacc) doesn't seem to know about these */
/* Some *BSD supplied versions do define these though */
# ifndef YYEMPTY
# define YYEMPTY (-1) /* Empty lookahead value of yychar */
# endif
# ifndef YYLEX
# define YYLEX yylex()
# endif
#elif defined(YYBISON)
/* Bison was used for original development */
/* #define YYEMPTY -2 */
/* #define YYLEX yylex() */
#else
/* No yacc we know yet */
# if !defined(YYEMPTY) || !defined(YYLEX)
# error Yacc version/type unknown. This version needs to be verified for settings of YYEMPTY and YYLEX.
# elif defined(__GNUC__) /* gcc defines the #warning directive */
# warning Yacc version/type unknown. It defines YYEMPTY and YYLEX, but is not tested
/* #else we just take a chance that it works... */
# endif
#endif
so...i'm new to arch but i'm no fool and this doesn't seem to be a common problem.
help?
Offline
Have I posted this in the right place?
Offline
Hi,
The last bison update looks incomplete. I just downgraded to 2.7.1-1 again, and wine compiled just fine.
Offline
Okay, I'll try that. Thanks!
Offline
hey, thanks for this - i wasn't sure what was going on here, when trying to compile wine...
bison 3.0 is definitely the problem and thus, i downgraded. so thx!
Offline
Thank you.
ASRock N68C-GS FX motherboard
AMD X2 240 @ 2.8G
Nvidia 9500GT @ 1G
Kingston 800Mhz DDR2 @ 4G
Offline
I run into the same problem when I try to build qcl which is a kind of quantum programming tool. Basically there are some missing dependancies.
QCL qcl-0.6.4 : http://tph.tuwien.ac.at/~oemer/qcl.html which is a C like quantum Programming language.
after I run sudo make I get :
g++ types.o syntax.o typcheck.o symbols.o error.o lex.o yacc.o print.o quheap.o extern.o eval.o exec.o parse.o options.o debug.o cond.o dump.o plot.o format.o qcl.o -Lqc -O2 -g -DQCL_DEBUG -DQC_DEBUG -L/usr/X11/lib -lplotter -lm -lfl -lqc -lreadline -lncurses -o qcl
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libfl.so: undefined reference to `yylex'
collect2: error: ld returned 1 exit status
Makefile:130: recipe for target 'qcl' failed
make: *** [qcl] Error 1
my workarround is to switch to the older version
QCL : 0.5.1
Last edited by l8star (2014-03-30 01:47:10)
Offline
Pages: 1