This is the error I get: c++ -c -I./lib/wx/include/gtk-2.3 -I./include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DGTK_NO_CHECK_CASTS -O2 -MMD -march=i686 -O3 -pipe -pthread -Wall -fPIC -o fs_zip.o ./src/common/fs_zip.cpp ./src/common/fs_zip.cpp: In method `class wxFSFile * wxZipFSHandler::OpenFile(wxFileSystem &, const wxString &)': ./src/common/fs_zip.cpp:92: parse error before `(' ./src/common/fs_zip.cpp:82: warning: `class wxInputStream * s' might be used uninitialized in this function make: *** [fs_zip.o] Error 1 And I was also asked to paste this: root@susan wxGTK-2.3.3 # find / -name zlib.h /var/tmp/portage/wxGTK-2.3.3/work/wxGTK-2.3.3/src/zlib/zlib.h /usr/lib/mozilla/include/zlib/zlib.h /usr/lib/mozilla/include/nss/zlib.h /usr/include/zlib.h /usr/src/linux-2.4.19-gentoo-r5/include/linux/zlib.h /usr/src/linux-2.4.19-gentoo-r5/arch/ppc/boot/include/zlib.h /usr/src/linux-2.4.19-gentoo-r5/arch/ppc64/boot/zlib.h /usr/src/linux-2.4.19-xfs-r2/fs/jffs2/zlib.h /usr/src/linux-2.4.19-xfs-r2/net/ipsec/zlib/zlib.h /usr/src/linux-2.4.19-xfs-r2/drivers/net/zlib.h /usr/src/linux-2.4.19-xfs-r2/arch/ppc64/boot/zlib.h /usr/src/linux-2.4.19-xfs-r2/arch/ppc/boot/include/zlib.h /home/synic/downloads/wxGTK-2.3.3/work/wxGTK-2.3.3/src/zlib/zlib.h /home/synic/downloads/wxWindows-20021127/src/zlib/zlib.h
*** This bug has been marked as a duplicate of 11311 ***
*** Bug 11311 has been marked as a duplicate of this bug. ***
I had the same error. Adding zlib to USE solves my problem. Perhaps a bug in wxGTK --with-zlib --without-zlib
Adam Olsen: can you verify this fixed the problem for you too ?
Yup, that worked! Thanks a lot. Sorry about the duplicate bug, was my first time reporting one. Won't happen again!
thx for the info :) http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/x11-libs/wxGTK/wxGTK-2.3.3.ebuild.diff?r1=1.3&r2=1.4
*** Bug 11705 has been marked as a duplicate of this bug. ***
I've run emerge rsync several times, and my ebuild for wxGTK 2.3.3 matches the one in the patch. If zlib is not in my USE variable, I still get the error: c++ -c -I./lib/wx/include/gtk-2.3 -I./include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DGTK_NO_CHECK_CASTS -O2 -MMD -pthread -Wall -fPIC -o fs_zip.o ./src/common/fs_zip.cpp ./src/common/fs_zip.cpp: In method `class wxFSFile * wxZipFSHandler::OpenFile(wxFileSystem &, const wxString &)': ./src/common/fs_zip.cpp:92: parse error before `(' ./src/common/fs_zip.cpp:82: warning: `class wxInputStream * s' might be used uninitialized in this function make: *** [fs_zip.o] Error 1 My emerge info output is: Portage 2.0.45 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r7) ================================================================= System uname: 2.4.19-gentoo-r1 i686 Pentium II (Klamath) USE="x86 oss avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses pdflib quicktime spell xml2 xmms xv aalib berkdb bonobo cdr directfb esd gdbm ggi gif gnome-libs gpm gtkhtml imlib java libwww motif mozilla nls oggvorbis opengl pam png readline scanner sdl slang ssl tcpd tetex tiff X -3dnow -apm -arts -gnome -gtk -kde -svga -qt -qtmt alsa guile perl python ruby sse tcltk truetype" ARCH="x86" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="" CXXFLAGS="" ACCEPT_KEYWORDS="x86 ~x86" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" MAKEOPTS="-j2" JDK_HOME="" JAVA_HOME="" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" (I've changed the environment variables ACCEPT_KEYWORDS to include ~x86, and CFLAGS and CXXFLAGS to "" as wxGTK didn't build with my usual ones.) If I also set USE="zlib", so that emerge info shows (identical to above, except): USE="x86 oss avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses pdflib quicktime spell xml2 xmms xv aalib berkdb bonobo cdr directfb esd gdbm ggi gif gnome-libs gpm gtkhtml imlib java libwww motif mozilla nls oggvorbis opengl pam png readline scanner sdl slang ssl tcpd tetex tiff X -3dnow -apm -arts -gnome -gtk -kde -svga -qt -qtmt alsa guile perl python ruby sse tcltk truetype zlib" wxGTK compiles successfully. >>> original instance of package unmerged safely. >>> Regenerating /etc/ld.so.cache... >>> x11-libs/wxGTK-2.3.3 merged.
alright ill take another look at it
ok, i forgot to do this before, my bad http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/x11-libs/wxGTK/wxGTK-2.3.3.ebuild.diff?r1=1.5&r2=1.6