You are not logged in.

#1 2013-07-27 04:54:34

jawbonegroove
Member
From: pdx / usa
Registered: 2013-07-05
Posts: 7

YYLEX undefined...?

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

#2 2013-07-27 17:31:31

jawbonegroove
Member
From: pdx / usa
Registered: 2013-07-05
Posts: 7

Re: YYLEX undefined...?

Have I posted this in the right place?

Offline

#3 2013-07-29 07:14:31

efinvold
Member
Registered: 2013-07-29
Posts: 1

Re: YYLEX undefined...?

Hi,

The last bison update looks incomplete. I just downgraded to 2.7.1-1 again, and wine compiled just fine.

Offline

#4 2013-07-29 07:26:26

jawbonegroove
Member
From: pdx / usa
Registered: 2013-07-05
Posts: 7

Re: YYLEX undefined...?

Okay, I'll try that.  Thanks!

Offline

#5 2013-08-13 01:44:21

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: YYLEX undefined...?

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

#6 2013-09-23 13:06:58

sim4lin
Member
Registered: 2008-03-09
Posts: 32

Re: YYLEX undefined...?

Thank you. smile


ASRock N68C-GS FX motherboard
AMD X2 240 @ 2.8G
Nvidia 9500GT @ 1G
Kingston 800Mhz DDR2 @ 4G

Offline

#7 2014-03-29 23:50:52

l8star
Member
Registered: 2013-07-31
Posts: 5

Re: YYLEX undefined...?

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

Board footer

Powered by FluxBB