Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124084 - wine fails to emerge with flex-2.5.33
Summary: wine fails to emerge with flex-2.5.33
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
: 124171 126093 140846 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-25 09:37 UTC by Peter Fox
Modified: 2006-07-17 22:47 UTC (History)
6 users (show)

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


Attachments
ugly patch to fix the error in lex.yy.c (wine-0.9.8-r1-wrclex.patch,2.78 KB, patch)
2006-02-25 17:02 UTC, Ewgenij Starostin
Details | Diff
ebuild for the ugly patch (wine-0.9.8-r1.ebuild,3.50 KB, application/octet-stream)
2006-02-25 17:05 UTC, Ewgenij Starostin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Fox 2006-02-25 09:37:56 UTC
emerge -puNDv world:

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild     U ] app-emulation/wine-0.9.8-r1 [0.9.7] USE="X alsa cups gif glut jpeg lcms ncurses opengl truetype xml2 -arts -debug -esd -jack -ldap -nas -oss -scanner" 0 kB

Total size of downloads: 0 kB

This is the tail end of the build process, I've tried rebuilding flex with no change:
....
bison -d -t ./parser.y -o parser.tab.c
./parser.y: conflicts: 5 shift/reduce
i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -DINCLUDEDIR="\"/usr/include/wine\""  -Wall -pipe -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-arith  -march=athlon-xp -pipe -O2  -o parser.tab.o parser.tab.c
flex ./parser.l
i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -DINCLUDEDIR="\"/usr/include/wine\""  -Wall -pipe -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-arith  -march=athlon-xp -pipe -O2  -o lex.yy.o lex.yy.c
lex.yy.c:2610: error: parse error before numeric constant
lex.yy.c: In function `yy_scan_string':
lex.yy.c:2611: error: number of arguments doesn't match prototype
lex.yy.c:305: error: prototype declaration
lex.yy.c:2613: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
lex.yy.c:2613: warning: passing arg 1 of `yy_scan_bytes' makes pointer from integer without a cast
make[2]: *** [lex.yy.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/wine-0.9.8-r1/work/wine-0.9.8/tools/wrc'
make[1]: *** [wrc] Error 2
make[1]: Leaving directory `/var/tmp/portage/wine-0.9.8-r1/work/wine-0.9.8/tools'
make: *** [tools] Error 2

!!! ERROR: app-emulation/wine-0.9.8-r1 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile

emerge --info:
Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.6-r3, 2.6.15-gentoo-r3 i686)
=================================================================
System uname: 2.6.15-gentoo-r3 i686 AMD Sempron(tm) Processor 2800+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mmmx -msse -mfpmath=sse -m3dnow -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mmmx -msse -mfpmath=sse -m3dnow -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://peter/pub ftp://cool/ http://distfiles.gentoo.org"
LANG="en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/gentoo/portage"
SYNC="rsync://peter/gentoo-portage"
USE="x86 3dnow X aalib acpi alsa apm avi berkdb bitmap-fonts cdr crypt cups doc dvdr eds emboss encode firefox flac foomaticdb fortran gdbm gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml imlib jpeg lcms libg++ libwww lynxkeymap mad mikmod mmx mng motif mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl pam pdflib perl png python qemu-fast qt quicktime readline sdl softmmu spell sse ssl svg tcpd tiff truetype truetype-fonts type1-fonts usb vorbis win32codecs wmf xine xml2 xmms xv zlib elibc_glibc kernel_linux userland_GNU video_cards_via"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, LDFLAGS, LINGUAS

------------------------------------------
This compiled fine on another machine, which has different use flags and the stable portage, emerge -pv wine:

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] app-emulation/wine-0.9.8-r1  +X +alsa -arts +cups -debug +esd +gif +glut +jack +jpeg +lcms -ldap -nas +ncurses +opengl +oss +scanner +truetype +xml2 0 kB

Total size of downloads: 0 kB
Comment 1 John5788 2006-02-25 11:06:12 UTC
Same problems here:

i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -DINCLUDEDIR="\"/usr/include/wine\""  -Wall -pipe -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-arith  -march=pentium4 -O2 -pipe  -o translation.o translation.c
i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -DINCLUDEDIR="\"/usr/include/wine\""  -Wall -pipe -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-arith  -march=pentium4 -O2 -pipe  -o utils.o utils.c
i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -DINCLUDEDIR="\"/usr/include/wine\""  -Wall -pipe -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-arith  -march=pentium4 -O2 -pipe  -o wrc.o wrc.c
i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -DINCLUDEDIR="\"/usr/include/wine\""  -Wall -pipe -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-arith  -march=pentium4 -O2 -pipe  -o writeres.o writeres.c
bison -d -t ./parser.y -o parser.tab.c
./parser.y: conflicts: 5 shift/reduce
i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -DINCLUDEDIR="\"/usr/include/wine\""  -Wall -pipe -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-arith  -march=pentium4 -O2 -pipe  -o parser.tab.o parser.tab.c
flex ./parser.l
i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -DINCLUDEDIR="\"/usr/include/wine\""  -Wall -pipe -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-arith  -march=pentium4 -O2 -pipe  -o lex.yy.o lex.yy.c
lex.yy.c:2610: error: parse error before numeric constant
lex.yy.c: In function `yy_scan_string':
lex.yy.c:2611: error: number of arguments doesn't match prototype
lex.yy.c:305: error: prototype declaration
lex.yy.c:2613: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
lex.yy.c:2613: warning: passing arg 1 of `yy_scan_bytes' makes pointer from integer without a cast
make[2]: *** [lex.yy.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/wine-0.9.8-r1/work/wine-0.9.8/tools/wrc'
make[1]: *** [wrc] Error 2
make[1]: Leaving directory `/var/tmp/portage/wine-0.9.8-r1/work/wine-0.9.8/tools'
make: *** [tools] Error 2

!!! ERROR: app-emulation/wine-0.9.8-r1 failed.
Comment 2 Thomas Scheiblauer 2006-02-25 13:06:16 UTC
the same here.

Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r3, 2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -mmmx -msse -msse2 -mfpmath=sse -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -mmmx -msse -msse2 -mfpmath=sse -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_AT.utf8"
LC_ALL="de_AT.utf8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-gentopia"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acl acpi alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bluetooth bonobo bzip2 cairo cdr cpdflib crypt cups curl curlwrappers dba dbus dga dio divx4linux dts dv dvd dvdr dvdread eds emboss encode exif ffmpeg flac flash foomaticdb fortran ftp gd gdbm gif gmp gnome gpm gstreamer gtk gtk2 gtkhtml hal ieee1394 imagemagick imap imlib ipv6 java javascript jpeg ldap libcaca libg++ libwww mad matroska mikmod mime ming mmx mono motif mozilla mp3 mpeg mpi mysql nas ncurses nls nptl nptlonly nsplugin odbc ogg oggvorbis opengl oss pam pcmcia pda pdflib perl php plotutils png pnp ppds python qt quicktime readline samba scanner sdl session sharedmem smartcard sockets spell sse sse2 ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales utf8 v4l vcd vhosts vorbis wifi win32codecs wxwindows xml xml2 xmms xv xvid xvmc zlib elibc_glibc kernel_linux linguas_de userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS
Comment 3 Chris Smith 2006-02-25 13:52:32 UTC
ditto
Comment 4 Ewgenij Starostin 2006-02-25 17:02:29 UTC
Created attachment 80726 [details, diff]
ugly patch to fix the error in lex.yy.c

This patch should prevent the error in lex.yy.c.
Comment 5 Ewgenij Starostin 2006-02-25 17:05:10 UTC
Created attachment 80727 [details]
ebuild for the ugly patch

Modified ebuild to include the ugly patch. (Don
Comment 6 Ewgenij Starostin 2006-02-25 17:05:10 UTC
Created attachment 80727 [details]
ebuild for the ugly patch

Modified ebuild to include the ugly patch. (Don?t forget to run ebuild ? digest.)
Comment 7 SpanKY gentoo-dev 2006-02-25 21:11:38 UTC
works with <=flex-2.5.31
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-02-26 09:06:46 UTC
*** Bug 124171 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2006-02-26 16:47:00 UTC
flex-2.5.33-r1 fixes this
Comment 10 Martin Walch 2006-03-13 10:26:54 UTC
(In reply to comment #8)
> flex-2.5.33-r1 fixes this

Not for me. Still got exactly the same problem.
Comment 11 SpanKY gentoo-dev 2006-03-13 10:36:10 UTC
bug wasnt in flex, it was in wine

so update your tree and 0.9.8 / 0.9.9 should work
Comment 12 SpanKY gentoo-dev 2006-03-14 06:07:21 UTC
*** Bug 126093 has been marked as a duplicate of this bug. ***
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-07-17 15:31:28 UTC
*** Bug 140846 has been marked as a duplicate of this bug. ***