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" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block" CHOST="x86_64-pc-linux-gnu" 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" DISTDIR="/usr/portage/distfiles" 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" GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ ftp://mirrors.rit.edu/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_US en" MAKEOPTS="V=1 -j1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/desktop /usr/local/portage/server /usr/local/mythtv_portage/Gentoo" SYNC="rsync://rsync11.us.gentoo.org/gentoo-portage" 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" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
This seems to be caused by a change introduced in sys-devel/flex-2.5.37. Found a patch @ opensuse here: https://build.opensuse.org/package/view_file?expand=1&file=dosemu-flex.patch&package=dosemu&project=openSUSE%3AFactory&rev=90347050e4d1257628527844bae6ba3f This seems to allow building against flex-2.5.37 but breaks building against stable 2.5.35_p10, at least for me.
(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: > https://build.opensuse.org/package/view_file?expand=1&file=dosemu-flex. > 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 (http://wiki.gentoo.org/wiki/Bootable_DOS_USB_stick) 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.
my emerge --info: http://bpaste.net/show/62236/
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?
I suspect this is fixed in this upstream commit: http://sourceforge.net/p/dosemu/code/ci/81232816b90e85488d7f11f96b8fcdc5f4988c93/ But I don't think they're gonna make any new releases soon.
Created attachment 334982 [details] dosemu-1.4.1_pre20130107.ebuild 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.
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
Created attachment 349032 [details, diff] Upstream patch for yyget_leng type incompatibility Upstream patch for yyget_leng type incompatibility, as identified by Ben Kohler.
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.
Pushed upstream fix as: > 11 Jun 2013; Sergei Trofimovich <slyfox@gentoo.org> > +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.
*** Bug 459062 has been marked as a duplicate of this bug. ***