Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35883 - Many programs doesn't compile because bad flex.
Summary: Many programs doesn't compile because bad flex.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-15 11:00 UTC by Francisco José Cañizares Santofimia
Modified: 2004-01-25 17:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco José Cañizares Santofimia 2003-12-15 11:00:40 UTC
When i try to compile some programs (for example Xfree, Openoffice) with flex  2.5.31-r1, they fail to compile because the error that i paste on "Actual Results" . Please note that with flex-2.5.4a-r5 it compiles perfectly.

Reproducible: Always
Steps to Reproduce:
1.Use flex 2.5.31-r1
2.Compile Xfree (for example)

Actual Results:  
make[4]: Entering directory
`/var/tmp/portage/xfree-4.3.99.901/work/xc/config/pswrap'
gcc -march=pentium4 -O3 -O3 -O3 -O3 -pipe -fomit-frame-pointer -ansi -pedantic
-Wno-return-type -w     -I../.. 
-I../../exports/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L         
                 -D_POSIX_SOURC
E 
-D_XOPEN_SOURCE                -D_BSD_SOURCE -D_SVID_SOURCE                    
         -D_GNU_SOURCE         
                   
-DFUNCPROTO=15 -DNARROWPROTO
 -DXENVIRONMENT    -c -o main.o main.c
bison -y -d pswparser.y
conflicts: 1 shift/reduce
mv -f y.tab.c pswparser.c
+ mv -f y.tab.h pswparser.h
gcc -march=pentium4 -O3 -O3 -O3 -O3 -pipe -fomit-frame-pointer -ansi -pedantic
-Wno-return-type -w     -I../.. 
-I../../exports/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L         
                 -D_POSIX_SOURC
E 
-D_XOPEN_SOURCE                -D_BSD_SOURCE -D_SVID_SOURCE                    
         -D_GNU_SOURCE         
                   
-DFUNCPROTO=15 -DNARROWPROTO
 -DXENVIRONMENT    -c -o pswparser.o pswparser.c
flex -l  -t lexer.l > lexer.c
gcc -march=pentium4 -O3 -O3 -O3 -O3 -pipe -fomit-frame-pointer -ansi -pedantic
-Wno-return-type -w     -I../.. 
-I../../exports/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L         
                 -D_POSIX_SOURC
E 
-D_XOPEN_SOURCE                -D_BSD_SOURCE -D_SVID_SOURCE                    
         -D_GNU_SOURCE         
                   
-DFUNCPROTO=15 -DNARROWPROTO
 -DXENVIRONMENT    -c -o lexer.o lexer.c
<stdout>: En la funci
Comment 1 Francisco José Cañizares Santofimia 2003-12-15 11:00:40 UTC
When i try to compile some programs (for example Xfree, Openoffice) with flex  2.5.31-r1, they fail to compile because the error that i paste on "Actual Results" . Please note that with flex-2.5.4a-r5 it compiles perfectly.

Reproducible: Always
Steps to Reproduce:
1.Use flex 2.5.31-r1
2.Compile Xfree (for example)

Actual Results:  
make[4]: Entering directory
`/var/tmp/portage/xfree-4.3.99.901/work/xc/config/pswrap'
gcc -march=pentium4 -O3 -O3 -O3 -O3 -pipe -fomit-frame-pointer -ansi -pedantic
-Wno-return-type -w     -I../.. 
-I../../exports/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L         
                 -D_POSIX_SOURC
E 
-D_XOPEN_SOURCE                -D_BSD_SOURCE -D_SVID_SOURCE                    
         -D_GNU_SOURCE         
                   
-DFUNCPROTO=15 -DNARROWPROTO
 -DXENVIRONMENT    -c -o main.o main.c
bison -y -d pswparser.y
conflicts: 1 shift/reduce
mv -f y.tab.c pswparser.c
+ mv -f y.tab.h pswparser.h
gcc -march=pentium4 -O3 -O3 -O3 -O3 -pipe -fomit-frame-pointer -ansi -pedantic
-Wno-return-type -w     -I../.. 
-I../../exports/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L         
                 -D_POSIX_SOURC
E 
-D_XOPEN_SOURCE                -D_BSD_SOURCE -D_SVID_SOURCE                    
         -D_GNU_SOURCE         
                   
-DFUNCPROTO=15 -DNARROWPROTO
 -DXENVIRONMENT    -c -o pswparser.o pswparser.c
flex -l  -t lexer.l > lexer.c
gcc -march=pentium4 -O3 -O3 -O3 -O3 -pipe -fomit-frame-pointer -ansi -pedantic
-Wno-return-type -w     -I../.. 
-I../../exports/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L         
                 -D_POSIX_SOURC
E 
-D_XOPEN_SOURCE                -D_BSD_SOURCE -D_SVID_SOURCE                    
         -D_GNU_SOURCE         
                   
-DFUNCPROTO=15 -DNARROWPROTO
 -DXENVIRONMENT    -c -o lexer.o lexer.c
<stdout>: En la función `yylex':
<stdout>:1199: error: `yy_prev_more_offset' undeclared (first use in this function)
<stdout>:1199: error: (Each undeclared identifier is reported only once
<stdout>:1199: error: for each function it appears in.)
make[4]: *** [lexer.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/xfree-4.3.99.901/work/xc/config/pswrap'
make[3]: *** [../../config/pswrap/pswrap] Error 2
make[3]: Leaving directory `/var/tmp/portage/xfree-4.3.99.901/work/xc/lib/dps'
make[2]: *** [includes] Error 2
make[2]: Leaving directory `/var/tmp/portage/xfree-4.3.99.901/work/xc/lib'
make[1]: *** [includes] Error 2
make[1]: Leaving directory `/var/tmp/portage/xfree-4.3.99.901/work/xc'
make: *** [World] Error 2

!!! ERROR: x11-base/xfree-4.3.99.901 failed.
!!! Function src_compile, Line 491, Exitcode 2
!!! (no error message)



Expected Results:  
The program should compile.

root@TeLeFrancisco root # emerge info
Portage 2.0.50_pre1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-t
est-r1)
=================================================================
System uname: 2.4.22-gentoo-test-r1 i686 Intel(R) Pentium(R) 4 CPU 2.50GHz
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2
/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linu
x/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib apm arts avi berkdb bidi bindinst crypt cups dedicated directfb doc
 dvd encode fbcon foomaticdb gatos gdbm ggi gif gnome gpm gtk gtk2 imlib joystic
k jpeg kde libdsk libg++ libwww lirc mad mikmod mmx motif mozilla mpeg ncurses n
ls oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline sa
mba sdl slang spell sse ssl svga tcltk tcpd tiff truetype x86 xchattext xml xml2
 xmms xv zlib video_cards_radeon linguas_es"
Comment 2 Stephane Loeuillet 2003-12-22 16:33:48 UTC
see comments of http://bugs.gentoo.org/show_bug.cgi?id=33477
Comment 3 SpanKY gentoo-dev 2004-01-25 17:53:29 UTC
>=sys-devel/flex-2.5.23 has been package.mask-ed