Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11312 - wxGTK package fails to compile.
Summary: wxGTK package fails to compile.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
: 11311 11705 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-27 14:31 UTC by Adam Olsen
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Olsen 2002-11-27 14:31:33 UTC
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
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-11-27 14:36:22 UTC
*** This bug has been marked as a duplicate of 11311 ***
Comment 2 SpanKY gentoo-dev 2002-11-28 09:23:32 UTC
*** Bug 11311 has been marked as a duplicate of this bug. ***
Comment 3 Michael Tartsch 2002-12-05 07:50:55 UTC
I had the same error.

Adding zlib to USE solves my problem.

Perhaps a bug in wxGTK --with-zlib --without-zlib
Comment 4 SpanKY gentoo-dev 2002-12-05 09:28:36 UTC
Adam Olsen: can you verify this fixed the problem for you too ? 
Comment 5 Adam Olsen 2002-12-05 09:40:28 UTC
Yup, that worked!  Thanks a lot.

Sorry about the duplicate bug, was my first time reporting one.  Won't happen again!
Comment 7 SpanKY gentoo-dev 2002-12-06 22:51:41 UTC
*** Bug 11705 has been marked as a duplicate of this bug. ***
Comment 8 katerina 2002-12-07 06:51:14 UTC
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.
Comment 9 SpanKY gentoo-dev 2002-12-07 15:18:59 UTC
alright ill take another look at it