[Mono-winforms-list] openlink patch?

Bob Pappas bpappas@macromedia.com
Thu, 15 Jan 2004 14:01:48 -0800


Found the solution (from http://kt.zork.net/wine/wn20030509_169.html):

4. Broken flex
5/01/2003 (5 posts) Archive Link: "Cant compile wine.. CVS or release."
Topics: Build Process
People: mdew, Rein Klazes


I meant to put this one in last week, but it slipped through the cracks.
Someone had a problem compiling Wine out of CVS and posted some info on
their tools and the error generated:


Debian Sid x86 
kernel: 2.4.20 
flex version: 2.5.31-4 
bison: 1.875a-1 
gcc: 3.2.3 
binutils: 2.13.90.0.18-1 


gcc -c -I. -I. -I../../include -I../../include -Wall
-mpreferred-stack-boundary=2 -gstabs+ -Wpointer-arith -g -O2 -o lex.yy.o
lex.yy.c
./ppl.l:97:1: warning: "/*" within comment
./ppl.l: In function `pplex':
./ppl.l:309: `pp_incl_state' undeclared (first use in this function)
./ppl.l:309: (Each undeclared identifier is reported only once
./ppl.l:309: for each function it appears in.)
./ppl.l:309: `pp_pp' undeclared (first use in this function)
[....] /usr/include/stdlib.h: At top level:
lex.yy.c:15493: warning: `yyunput' defined but not used
make[2]: *** [lex.yy.o] Error 1
make[2]: Leaving directory `/root/cvs/wine/libs/wpp'

A few minutes later Rein Klazes responded with the solution, " Flex 2.5.31
bug. Downgrade to 2.5.3a, "make clean" in the tools directory and you are
back." 




> -----Original Message-----
> From: mono-winforms-list-admin@lists.ximian.com 
> [mailto:mono-winforms-list-admin@lists.ximian.com] On Behalf 
> Of Bob Pappas
> Sent: Thursday, January 15, 2004 3:32 PM
> To: 'Alexandre Pigolkine'
> Cc: 'mono-winforms-list@lists.ximian.com'
> Subject: RE: [Mono-winforms-list] openlink patch?
> 
> 
> Ok, I downgraded flex and still get the errors below.
> 
> I've got Debian 3.0r2.
> Flex flex 2.5.4a-24.
> 
> Any other thoughts?
> 
> > -----Original Message-----
> > From: Alexandre Pigolkine [mailto:pigolkine@gmx.de]
> > Sent: Thursday, January 15, 2004 1:47 AM
> > To: Bob Pappas
> > Cc: mono-winforms-list@lists.ximian.com
> > Subject: RE: [Mono-winforms-list] openlink patch?
> > 
> > 
> > Hello,
> > 
> > Looks like you need to use a different version of flex.
> > 
> > Please check the following link:
> > http://www.winehq.org/hypermail/wine-users/2003/04/0228.html
> > 
> > 
> > Alexandre Pigolkine
> > 
> > 
> > > Thanks.
> > >  
> > > I'm getting these build errors: (am I missing any
> > prerequisites? Does
> > > wine need to be in a specific directory?)
> > > 
> > > > bpappas@debian:~/mono/wine/wine-20030318$ make wine-shared cd
> > > > library && make wine;
> > > > make[1]: Entering directory
> > > > `/home/bpappas/mono/wine/wine-20030318/library'
> > > 
> > > <snip>
> > > 
> > > > `/home/bpappas/mono/wine/wine-20030318/unicode'
> > > > cd tools && make;
> > > > make[1]: Entering directory 
> > > > `/home/bpappas/mono/wine/wine-20030318/tools'
> > > > make[2]: Entering directory
> > > > `/home/bpappas/mono/wine/wine-20030318/tools/wpp'
> > > > gcc -c -I. -I. -I../../include -I../../include  -g -O2 -Wall 
> > > > -mpreferred-stack-boundary=2 -gstabs+ -Wpointer-arith   
> > > > -D_REENTRANT -o lex.yy.o lex.yy.c
> > > > ./ppl.l:98:1: warning: "/*" within comment
> > > > ./ppl.l:107:2: #endif without #if
> > > > ./ppl.l: In function `pplex':
> > > > ./ppl.l:309: error: `pp_incl_state' undeclared (first use in 
> > > > this function)
> > > > ./ppl.l:309: error: (Each undeclared identifier is 
> > reported only once
> > 
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>