Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 23633

Summary: unixODBC don't compile with flex 2.5.31
Product: Gentoo Linux Reporter: Bernd Martin Wollny <bernd>
Component: Current packagesAssignee: Ryan Phillips (RETIRED) <rphillips>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to fix YY_FLUSH_BUFFER problem

Description Bernd Martin Wollny 2003-06-27 23:03:25 UTC
hello, 

unixODBC stop compiling with the following Error 

lex.l: In function `yyerror':
lex.l:241: error: `YY_FLUSH_BUFFER' undeclared (first use in this function)
lex.l:241: error: (Each undeclared identifier is reported only once
lex.l:241: error: for each function it appears in.)
make[1]: *** [lex.lo] Error 1

in lex.c are a undefined of YY_FLUSH_BUFFER in front of the include of lex.l. 
As work around we can define YY_FLUSH_BUFFER  in lex.l again.

workaround patch will appended soon. 

bye bernd 

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.3, glibc-2.3.2-r2)
=================================================================
System uname: 2.4.20-ck4 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="rsync://ftp.belnet.be/gentoo/ 
PORTDIR="/usr/portage"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg kde gnome libg++ mikmod
mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib
directfb gtkhtml alsa gdbm berkdb slang readline arts tetex aalib bonobo svga
ggi tcltk java guile mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib
oggvorbis gtk qt motif opengl mozilla ldap cdr"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-tbird -march=athlon-tbird -O3 -pipe"
CXXFLAGS="-mcpu=athlon-tbird -march=athlon-tbird -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache notitles"
Comment 1 Bernd Martin Wollny 2003-06-28 00:44:23 UTC
Created attachment 13958 [details, diff]
Patch to fix YY_FLUSH_BUFFER problem 


this patch are a work around. To solve the Problem there must be checked why
YY_FLUSH_BUFFER will be undefined drictly befor including lex.l
Comment 2 Ryan Phillips (RETIRED) gentoo-dev 2003-07-31 12:34:51 UTC
Bernd: Does this patch work with newer and older versions of flex? 
Comment 3 Ryan Phillips (RETIRED) gentoo-dev 2003-10-05 18:50:16 UTC
Appears to work with flex 2.5.4a.