# MAKEOPTS=-j1 emerge app-misc/boxes Calculating dependencies ... done! >>> Emerging (1 of 1) app-misc/boxes-1.0.1 to / >>> checking ebuild checksums ;-) >>> checking auxfile checksums ;-) >>> checking miscfile checksums ;-) >>> checking boxes-1.0.1.src.tar.gz ;-) >>> Unpacking source... >>> Unpacking boxes-1.0.1.src.tar.gz to /var/tmp/portage/boxes-1.0.1/work * Applying boxes-1.0.1-gentoo.diff ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/boxes-1.0.1/work/boxes-1.0.1 ... rm -f doc/boxes.1 make -C src clean make[1]: Entering directory `/var/tmp/portage/boxes-1.0.1/work/boxes-1.0.1/src' rm -f parser.o lex.yy.o boxes.o tools.o shape.o generate.o remove.o rm -f parser.c lex.yy.c parser.h boxes.h rm -f core boxes make -C regexp clean make[2]: Entering directory `/var/tmp/portage/boxes-1.0.1/work/boxes-1.0.1/src/regexp' rm -f regexp.o regsub.o libregexp.a core make[2]: Leaving directory `/var/tmp/portage/boxes-1.0.1/work/boxes-1.0.1/src/regexp' make[1]: Leaving directory `/var/tmp/portage/boxes-1.0.1/work/boxes-1.0.1/src' sed -e 's/--BVERSION--/1.0.1/; s/--GLOBALCONF--/\/usr\/share\/boxes\/boxes-config/' src/boxes.h.in > src/boxes.h sed -e 's/--BVERSION--/1.0.1/; s/--GLOBALCONF--/\/usr\/share\/boxes\/boxes-config/' doc/boxes.1.in > doc/boxes.1 make -C src build make[1]: Entering directory `/var/tmp/portage/boxes-1.0.1/work/boxes-1.0.1/src' make CFLAGS_ADDTL=-O boxes make[2]: Entering directory `/var/tmp/portage/boxes-1.0.1/work/boxes-1.0.1/src' bison -o parser.c -d parser.y gcc -O2 -march=athlon64 -m3dnow -msse -msse2 -msse3 -fomit-frame-pointer -pipe -I. -Iregexp -c -o parser.o parser.c flex -t lexer.l > lexer.tmp.c echo '#include "config.h"' > lex.yy.c cat lexer.tmp.c >> lex.yy.c rm lexer.tmp.c gcc -O2 -march=athlon64 -m3dnow -msse -msse2 -msse3 -fomit-frame-pointer -pipe -I. -Iregexp -c -o lex.yy.o lex.yy.c lexer.l:119: error: redefinition of ‘yylineno’ <stdout>:349: error: previous definition of ‘yylineno’ was here lexer.l: In function ‘inflate_inbuf’: lexer.l:472: error: invalid lvalue in assignment make[2]: *** [lex.yy.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/boxes-1.0.1/work/boxes-1.0.1/src' make[1]: *** [build] Error 2 make[1]: Leaving directory `/var/tmp/portage/boxes-1.0.1/work/boxes-1.0.1/src' make: *** [build] Error 2 !!! ERROR: app-misc/boxes-1.0.1 failed. Call stack: ebuild.sh, line 1540: Called dyn_compile ebuild.sh, line 940: Called src_compile boxes-1.0.1.ebuild, line 27: Called die and same with MAKEOPTS=-j3 $ emerge --info Portage 2.1.1_pre1-r1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.16-gentoo-r10! x86_64) ================================================================= System uname: 2.6.16-gentoo-r10! x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 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-r2 sys-devel/binutils: 2.17.50.0.2 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -m3dnow -msse -msse2 -msse3 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon64 -m3dnow -msse -msse2 -msse3 -fomit-frame-pointer -pipe" DISTDIR="/portage/distfiles" FEATURES="autoconfig candy distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.linux.cz/pub/linux/gentoo http://mirror.gentoo.sk/pub http://distfiles.gentoo.org/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LINGUAS="cs" MAKEOPTS="-j3" PKGDIR="/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/portage" PORTDIR_OVERLAY="/overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X a52 aac acpi alsa apm asf audiofile avi bash-completion bitmap-fonts bzip2 cairo cdparanoia cdr cli css cups curl curlwrappers dbus dga dts dvd dvdr dvdread emboss encode expat fbcon ffmpeg flac flash fortran ftp gdbm gif gpm hal icq id3 id3v2 imagemagick imlib isdnlog jabber javascript jingle jpeg kde kdeenablefinal lame lcms libg++ mad matroska mime mp3 mpeg mplayer ncurses nls nowebdav nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl oscar pcre pdflib perl pic png posix ppds pppd python qt qt4 quicktime readline reflection ruby sdl session sockets spl subversion svg symlink theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis wma xcomposite xine xml xml2 xorg xpm xrandr xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_cs userland_GNU video_cards_nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I've got the exact same problem. Just ask if you want to see my "emerge --info" details also.
Created attachment 90730 [details, diff] boxes-1.0.1-flex.patch http://boxes.thomasjensen.com/docs/faq.shtml#q5
With patch it compiles & works ...
caused by newer versions of flex, not gcc-4.1. removing block on #117482.
New version (1.1) is avaible. It compiles, but it still needs that gentoo patch $ boxes <<< lol boxes: Alleged system-wide config file '/usr/share/boxes' is a directory but patch needs to be changed, because it fails to apply...
that would be bug #142476 ;d
same here
Patch from comment #2 WORKSFORME here
http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/boxes/files/boxes-1.0.1-Makefile.patch?rev=1.1&view=markup http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/boxes/files/boxes-1.0.1-flex.patch?rev=1.1&view=markup http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/boxes/boxes-1.0.1.ebuild?rev=1.25&view=markup http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/boxes/boxes-1.0.1.ebuild?r1=1.24&r2=1.25 fixed