Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 437074 - app-emulation/dosemu-1.4.1_pre20091009 fails to build - lex.yy.c:2029:11: error: conflicting types for ‘yyget_leng’
Summary: app-emulation/dosemu-1.4.1_pre20091009 fails to build - lex.yy.c:2029:11: err...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hanno Böck
: 459062 (view as bug list)
Depends on: 451092
  Show dependency tree
Reported: 2012-10-03 14:15 UTC by Chris Smith
Modified: 2013-07-17 17:20 UTC (History)
7 users (show)

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

dosemu-1.4.1_pre20130107.ebuild (dosemu-1.4.1_pre20130107.ebuild,1.55 KB, text/plain)
2013-01-09 17:57 UTC, Ben Kohler
modification of the previous ebuild to use git (dosemu-9999.ebuild,1.61 KB, text/plain)
2013-03-08 01:08 UTC, Andrew Bovill
Upstream patch for yyget_leng type incompatibility (dosemu-1.4.1_pre20091009-yyget_leng.diff,836 bytes, patch)
2013-05-23 21:52 UTC, Ivan Labáth
Details | Diff
Ebuild modified to use the patch. (dosemu-1.4.1_pre20091009.diff,677 bytes, patch)
2013-05-23 22:07 UTC, Ivan Labáth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2012-10-03 14:15:40 UTC
app-emulation/dosemu-1.4.1_pre20091009 fails to build (same problem previous to headers and gcc update)

Reproducible: Always

Actual Results:  
x86_64-pc-linux-gnu-gcc -c -MP -MMD -I../../../src/include -I../../../src/plugin/include -I. -Wall -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block -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’
In file included from lexer.l:58:0:
lexer.h:39:12: note: previous declaration of ‘yyget_leng’ was here
lex.yy.c:4975:11: error: conflicting types for ‘yyget_leng’
In file included from lexer.l:58:0:
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

emerge --info
Portage 2.2.0_alpha134 (default/linux/amd64/10.0/desktop/gnome, gcc-4.7.2, glibc-2.15-r3, 3.5.4-gentoo x86_64)
System uname: Linux-3.5.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2
Timestamp of tree: Wed, 03 Oct 2012 13:15:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo desktop server mythtv
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="V=1 -j1"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/desktop /usr/local/portage/server /usr/local/mythtv_portage/Gentoo"
USE="X a52 aac aalib acl acpi alsa amd64 amr apache2 audiofile bash-completion berkdb bluetooth branding bzip2 cairo caps cdaudio cdda cddb cdparanoia cdr cdrdao chm cli colord consolekit cracklib crypt cups curl cxx dbus designer-plugin djvu dri dts dv dvb dvd dvdr ebook emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif gmp gnome gnome-keyring gnome-online-accounts gphoto2 gpm gps graphite gstreamer gtk gtk3 iconv icu ieee1394 imagemagick imap imlib ipv6 jack java jpeg jpeg2k kpathsea lame lcms libffi libnotify mad marble midi mmap mmx mng modules mozilla mp3 mp4 mpeg mudflap multilib musicbrainz mythtv nautilus ncurses network nls nodrm nptl nsplugin nvidia ofx ogg opencl openexr opengl openmp pam pango pcre pdf png policykit ppds pulseaudio quicktime readline samba sasl scanner sdl semantic-desktop session slp smp sndfile socialweb spell sse sse2 ssl startup-notification subversion svg theora threads tiff tk transparency truetype udev udisks unicode upower usb v4l vcd vdpau vim-syntax vorbis vpx wav wavpack wmf wxwidgets x264 xattr xcomposite xine xml xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel hdsp hpet hrtimer rtctimer seqdummy virmidi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" NGINX_MODULES_HTTP="autoindex gzip" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 1 Ben Kohler gentoo-dev 2012-11-23 16:49:45 UTC
This seems to be caused by a change introduced in sys-devel/flex-2.5.37.  Found a patch @ opensuse here:

This seems to allow building against flex-2.5.37 but breaks building against stable 2.5.35_p10, at least for me.
Comment 2 Konstantin (elxa) 2012-12-04 23:23:33 UTC
(In reply to comment #1)
> This seems to be caused by a change introduced in sys-devel/flex-2.5.37. 
> Found a patch @ opensuse here:
> patch&package=dosemu&project=openSUSE%3AFactory&rev=90347050e4d1257628527844b
> ae6ba3f
> This seems to allow building against flex-2.5.37 but breaks building against
> stable 2.5.35_p10, at least for me.

This worked for me, thanks! could we get this patch into the tree? I was following this guide ( to create a dos bootable usb stick and got stuck on emerging app-emulation/dosemu-1.4.1_pre20091009. Installed sys-devel/flex version was 2.5.37.
Comment 3 Konstantin (elxa) 2012-12-04 23:24:23 UTC
my emerge --info:
Comment 4 Michelangelo Scopelliti 2013-01-09 12:23:57 UTC
I have the same problem on a couple of amd64 machines.
The patch works for me too; any news about the inclusion in the tree?
Comment 5 Ben Kohler gentoo-dev 2013-01-09 16:15:01 UTC
I suspect this is fixed in this upstream commit:

But I don't think they're gonna make any new releases soon.
Comment 6 Ben Kohler gentoo-dev 2013-01-09 17:57:37 UTC
Created attachment 334982 [details]

Attached is a new ebuild which uses an updated snapshot from upstream's git.  I don't know if it's possible to pull a snapshot directly from SF, so I have manually created the tarball and stashed it on dropbox for now.

Seems to build & run fine against all versions of flex in the tree now.
Comment 7 Andrew Bovill 2013-03-08 01:08:09 UTC
Created attachment 341274 [details]
modification of the previous ebuild to use git

I went ahead and modified the previously submitted ebuild to use the git repo instead of a tarball
Comment 8 Ivan Labáth 2013-05-23 21:52:53 UTC
Created attachment 349032 [details, diff]
Upstream patch for yyget_leng type incompatibility

Upstream patch for yyget_leng type incompatibility,
as identified by Ben Kohler.
Comment 9 Ivan Labáth 2013-05-23 22:07:08 UTC
Created attachment 349034 [details, diff]
Ebuild modified to use the patch.

This makes the ebuild use the patch.
Otherwise, everything should be the same, except I have upgraded to EAPI=2, as I am not sure how to write it in src_unpack.

This makes dosemu compile on my (x86) system. Hopefully, it can be included in the portage tree. Newer versions might be nice, but that seems like another issue to me.
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2013-06-11 19:41:57 UTC
Pushed upstream fix as:

> 11 Jun 2013; Sergei Trofimovich <>
> +files/dosemu-1.4.1_pre20091009-flex.patch, dosemu-1.4.1_pre20091009.ebuild:
> Fix build failure against modern flex (like 2.5.37). Bug #437074 by Chris
> Smith and others.

Thanks guys! Sorry for such a long delay.
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2013-06-11 19:44:42 UTC
*** Bug 459062 has been marked as a duplicate of this bug. ***