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

Bug 459062

Summary: app-emulation/dosemu-1.4.1_pre20091009 - lex.yy.c:{2029,4975}:11: error: conflicting types for ‘yyget_leng’
Product: Gentoo Linux Reporter: far jump <far.jmp>
Component: Current packagesAssignee: Hanno Böck <hanno>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: 10.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build log
lexer patch

Description far jump 2013-02-24 19:02:21 UTC
Created attachment 340004 [details]
emerge --info

while emerge -u world

[I] app-emulation/dosemu
     Available versions:  ~1.4.0.1 1.4.1_pre20091009 {{X alsa debug gpm sndfile svga}}
     Installed versions:  1.4.1_pre20091009(08:52:43 PM 11/29/2012)(X gpm -alsa -debug -sndfile -svga)


x86_64-pc-linux-gnu-gcc -c -MP -MMD -I../../../src/include -I../../../src/plugin/include -I. -Wall -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -march=k8 -O2 -pipe -fno-pic -fno-strict-aliasing -Wno-pointer-sign -pipe  -DYYPURE  -o lex.yy.o lex.yy.c
lex.yy.c:2029:11: error: conflicting types for ‘yyget_leng’
lexer.h:39:12: note: previous declaration of ‘yyget_leng’ was here
lex.yy.c:4975:11: error: conflicting types for ‘yyget_leng’
lexer.h:39:12: note: previous declaration of ‘yyget_leng’ was here
lexer.l: In function ‘dump_input’:
lexer.l:1135:13: warning: variable ‘lastrule’ set but not used [-Wunused-but-set-variable]
make[2]: *** [lex.yy.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-emulation/dosemu-1.4.1_pre20091009/work/dosemu/src/base/init'
make[1]: *** [base/init] Error 2
make[1]: *** Waiting for unfinished jobs....
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-24 19:52:07 UTC
Please attach the complete build log.
Comment 2 far jump 2013-02-24 20:25:48 UTC
Created attachment 340008 [details]
build log
Comment 3 Muffy 2013-02-25 12:32:43 UTC
Created attachment 340068 [details, diff]
lexer patch

Taken from: http://comments.gmane.org/gmane.linux.msdos.dosemu.devel/130

I can confirm that dosemu-1.4.1_pre20091009 builds for me after applying the patch.
Comment 4 far jump 2013-02-25 17:40:44 UTC
every linux box (3 AMDs, 1 intel) has this error, either by re-emerge or new install
Comment 5 far jump 2013-02-25 18:59:51 UTC
I can also confirm that dosemu-1.4.1_pre20091009 builds for me after applying the above patch.

however when I run dosemu from user command line it just hangs -  NO dos environment
Comment 6 far jump 2013-03-25 23:43:58 UTC
I found this bug: https://bugs.gentoo.org/show_bug.cgi?id=437074
will this problem be addressed?  each emerge --sync breaks this fix
Comment 7 Tom 2013-05-19 19:48:17 UTC
My workaround is:
- uninstall flex 2.5.37 by emerge -C flex
- compile and install flex 2.5.33 by hand
- emerge dosemu, which compiles fine
- uninstall flex 2.5.33 by hand
- re-emerge flex 2.5.37
Comment 8 far jump 2013-05-19 20:25:47 UTC
Portage does not have 2.5.33

Available versions:  2.5.35 2.5.35_p10 2.5.37 {{nls static test}}
Comment 9 Tom 2013-05-20 12:32:50 UTC
Hi far jump,

that's why I've installed the older sources, fetched from the net, under /usr/local/src:
./configure --prefix=/usr ; make install
After dosemu has been compiled, just do a: make uninstall ; emerge -1 flex
and all is the same as before.

CU Tom
Comment 10 far jump 2013-06-06 22:42:06 UTC
(In reply to Tom from comment #9)
 
> that's why I've installed the older sources, fetched from the net, under
> /usr/local/src:

Thanks Tom, I see how that can work, but is it not easier to apply the patch that Muffy created?  It works and follows emerge protocal.
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2013-06-11 19:44:42 UTC

*** This bug has been marked as a duplicate of bug 437074 ***