LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-13-2003, 04:03 PM   #1
vmicho
Member
 
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, 03:23 AM   #2
daver18qc
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, 02:09 PM   #3
pawn-o-matic
Member
 
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, 06:08 AM   #4
Swiff
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, 06:27 AM   #5
motub
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:

Quote:
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 ppy.tab.o lex.ppl.o y.tab.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
....help.....?
 
Old 10-04-2003, 05:22 PM   #6
doctor_no
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 08:25 AM.
 
Old 02-12-2004, 04:53 PM   #7
Gr3MliN
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?
 
  


Reply



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 07:23 PM
MDK9.3 / winex 3.3.1 CVS --- compile problem pete_bogg Mandriva 3 04-22-2004 01:45 PM
winex compile problem Abe_the_Man Linux - Games 0 01-17-2004 07:11 PM
WineX CVS compile problem Vipes Linux - Software 2 12-03-2003 08:00 PM
Hey ppl check this strange problem. linfreak Slackware 1 11-13-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:11 AM.

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