While attempting to emerge visualboyadvance, I receive the following error: In file included from ../win32/include/zlib/zutil.h:16, from memgzio.h:12, from Util.cpp:84: ../win32/include/zlib/zlib.h:40:1: warning: "ZLIB_VERSION" redefined In file included from Util.cpp:63: /usr/include/zlib.h:40:1: warning: this is the location of the previous definition In file included from ../win32/include/zlib/zutil.h:16, from memgzio.h:12, from Util.cpp:84: ../win32/include/zlib/zlib.h:68: error: redefinition of `struct z_stream_s' /usr/include/zlib.h:84: error: previous definition of `struct z_stream_s' ../win32/include/zlib/zlib.h:704: error: declaration of C function `int gzwrite(void*, void*, unsigned int)' conflicts with /usr/include/zlib.h:981: error: previous declaration `int gzwrite(void*, const void*, unsigned int)' here make[2]: *** [Util.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/visualboyadvance-1.6a/work/VisualBoyAdvance-1.6a/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/visualboyadvance-1.6a/work/VisualBoyAdvance-1.6a/src' make: *** [all-recursive] Error 1 !!! ERROR: games-emulation/visualboyadvance-1.6a failed. !!! Function src_compile, Line 40, Exitcode 2 !!! (no error message) After checking out bugs.gentoo.org, I found a proposed ebuild for version 1.7 (current version in portage is 1.6a). Attempting to run that ebuild ended in the same error message. So I'm assuming the bug is not with the ebuild itself, but with Gentoo in general. Reproducible: Always Steps to Reproduce: 1. #emerge visualboyadvance 2. 3. Actual Results: The ebuild began to compile and ran for a couple minutes. Then ended with the error posted above. Expected Results: It should not have given me the error message and compiled properly. :o) root@gentoo kaput # emerge info Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031212-r0, 2.6.0) ================================================================= System uname: 2.6.0 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X apm avi berkdb bonobo cdr crypt cups dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pda pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib video_cards_i810"
Got it working by downgrading zlib to 1.1.4r4
*** Bug 37127 has been marked as a duplicate of this bug. ***
fixed in cvs