Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-13-2003, 05:03 PM   #1
Registered: Jun 2003
Location: Slovakia
Distribution: Debian unstable i586
Posts: 38

Rep: Reputation: 15
Winex compile problem with ppl.l

When I compile winex (latest from CVS), I get this error:

gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fno-keep-static-consts -D__int8=char - D__int16=short -D__int32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -I/usr/X11R6/include -o lex.ppl.o lex.ppl.c
./ppl.l:81:1: warning: "/*" within comment
./ppl.l: In function `pplex':
./ppl.l:305: `seen_junk' undeclared (first use in this function)
./ppl.l:305: (Each undeclared identifier is reported only once
./ppl.l:305: for each function it appears in.)

make[2]: *** [lex.ppl.o] Error 1
make[2]: Leaving directory `/root/downcvs/wine/tools/wrc'
make[1]: *** [wrc] Error 2
make[1]: Leaving directory `/root/downcvs/wine/tools'
make: *** [tools] Error 2

I looked into wine/tools/ppl.l file, but it contains some bizarre code I dont understand. I have gcc version 3.2.3
Can somebody help me with this please?
Old 07-20-2003, 04:23 AM   #2
LQ Newbie
Registered: Jul 2003
Location: Quebec, Canada
Distribution: Suse 8.2, Mandrake 9.1, Slackware 9, RedHat 9
Posts: 2

Rep: Reputation: 0
I have the exact same problem

I tried installing 2 versions of Flex (there is only 2) but give me the same error.

I downloaded WineX from CVS with the infos on their web page and tried to compile like this :
./configure --enable-opengl #no error
make depend #no error
make #error

I'm running this :

Mandrake 9.1 (All Updates)
Nvidia Drivers (Latest)
Bison (Latest)
Flex (Latest)

Please if someone could help us, i would be very happy !!
Old 07-25-2003, 03:09 PM   #3
Registered: Jul 2003
Posts: 44

Rep: Reputation: 15
You have to remove the big comment at the head of he file ./tools/wrc/ppl.l

And it will work fine ;-)
Old 08-21-2003, 07:08 AM   #4
LQ Newbie
Registered: Aug 2003
Location: Denmark
Distribution: Debian
Posts: 1

Rep: Reputation: 0
I can only support pawn-o-matic - except I had to edit another file, similar to the one his mentioning. The full solution must be this:

Edit tools/widl/ppl.l and tools/wrc/ppl.l and remove the big comment in top of the files. This actually worked for me.
Old 09-13-2003, 07:27 AM   #5
Senior Member
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
I hate to bring this thread back up, but I still need some help with this.

I had a huge number of errors in ppp.l while trying to compile WineX from CVS (under Debian Sid).

Taking the advice above eliminated the vast majority of errors, but leaving me with this:

gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fno-keep-static-consts -D__int8=char -D__int16=short -D__int32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -I/usr/X11R6/include -o lex.yy.o lex.yy.c
lex.yy.c:7127: warning: `yyunput' defined but not used
lex.yy.c:7706: warning: `yy_top_state' defined but not used
gcc -g -O2 -Wall -mpreferred-stack-boundary=2 -fno-keep-static-consts -D__int8=char -D__int16=short -D__int32=int "-D__int64=long long" -o wrc dumpres.o genres.o newstruc.o preproc.o readres.o utils.o wrc.o writeres.o lex.ppl.o lex.yy.o -L../../unicode -lwine_unicode -lfl
wrc.o(.text+0x9a8): In function `main':
/home/motubmpx/temp/winex-stable/wine/tools/wrc/wrc.c:632: the use of `tmpnam' is dangerous, better use `mkstemp'
wrc.o(.text+0x591):/home/motubmpx/temp/winex-stable/wine/tools/wrc/wrc.c:560: undefined reference to `ppdebug'
lex.ppl.o(.text+0x482a): In function `push_buffer':
./ppl.l:1060: undefined reference to `ppdebug'
lex.ppl.o(.text+0x4a6d): In function `pop_buffer':
./ppl.l:1150: undefined reference to `ppdebug'
collect2: ld returned 1 exit status
make[2]: *** [wrc] Error 1
make[2]: Leaving directory `/home/motubmpx/temp/winex-stable/wine/tools/wrc'
make[1]: *** [wrc] Error 2
make[1]: Leaving directory `/home/motubmpx/temp/winex-stable/wine/tools'
make: *** [tools] Error 2
Old 10-04-2003, 06:22 PM   #6
LQ Newbie
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
The solution that should work for everyone is to install flex-old, because the new flex version brought up many problems using older flex scripts. If that doesn't work for you, remove the long comments at the beginning.

Last edited by doctor_no; 02-14-2004 at 09:25 AM.
Old 02-12-2004, 05:53 PM   #7
LQ Newbie
Registered: Oct 2003
Location: Norway
Distribution: Redhat 9
Posts: 8

Rep: Reputation: 0
I had this problem, and I found this thread from google. I can't understand why that removing the comments would make it work (It does, I'm compiling at this moment). Could anyone explain to med why it suddenly works?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cvs winex compile problem gonus Linux - Software 0 08-03-2004 08:23 PM
MDK9.3 / winex 3.3.1 CVS --- compile problem pete_bogg Mandriva 3 04-22-2004 02:45 PM
winex compile problem Abe_the_Man Linux - Games 0 01-17-2004 08:11 PM
WineX CVS compile problem Vipes Linux - Software 2 12-03-2003 09:00 PM
Hey ppl check this strange problem. linfreak Slackware 1 11-13-2003 12:24 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration