Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9470 - wxGTK 2.3.2-r2 breakds upon reaching ../src/common/fs_zip.cpp
Summary: wxGTK 2.3.2-r2 breakds upon reaching ../src/common/fs_zip.cpp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-22 00:41 UTC by Talli Somekh
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 Talli Somekh 2002-10-22 00:41:22 UTC
The ebuild for wxGTK-2.3.2-r2 breaks upon emerging. I did try other versions of
wxGTK, as well as downloading 2.3.3. I searched on the forums and found another
complaint about the same problem. Below is the error report from the emerge.

talli

------

++ -c    -D_GNU_SOURCE    -D__WXGTK__ -D_REENTRANT -DGTK_NO_CHECK_CASTS
-fno-rtti -fno-exceptions -MMD -mcpu=i686 -pipe -O2 -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 -I/usr/X11R6/include -Wall -fPIC -o fs_zip.o
./src/common/fs_zip.cpp
In file included from ./src/common/fs_zip.cpp:38:
src/common/unzip.h:130: syntax error before `('
src/common/unzip.h:143: syntax error before `('
src/common/unzip.h:154: syntax error before `('
src/common/unzip.h:161: syntax error before `('
src/common/unzip.h:169: syntax error before `('
src/common/unzip.h:182: syntax error before `('
src/common/unzip.h:188: syntax error before `('
src/common/unzip.h:195: syntax error before `('
src/common/unzip.h:208: syntax error before `('
src/common/unzip.h:234: syntax error before `('
src/common/unzip.h:240: syntax error before `('
src/common/unzip.h:247: syntax error before `('
src/common/unzip.h:261: syntax error before `('
src/common/unzip.h:266: syntax error before `('
src/common/unzip.h:271: syntax error before `('
./src/common/fs_zip.cpp: In method `wxZipFSHandler::~wxZipFSHandler()':
./src/common/fs_zip.cpp:61: implicit declaration of function `int unzClose(...)'
./src/common/fs_zip.cpp: In method `class wxString
wxZipFSHandler::FindFirst(const wxString &, int = 0)':
./src/common/fs_zip.cpp:138: implicit declaration of function `int unzOpen(...)'
./src/common/fs_zip.cpp:144: implicit declaration of function `int
unzGoToFirstFile(...)'
./src/common/fs_zip.cpp: In method `class wxString wxZipFSHandler::DoFind()':
./src/common/fs_zip.cpp:181: implicit declaration of function `int
unzGetCurrentFileInfo(...)'
./src/common/fs_zip.cpp:212: implicit declaration of function `int
unzGoToNextFile(...)'
make: *** [fs_zip.o] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -109, Exitcode 2
!!! make failed
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-22 02:26:23 UTC
which version of GCC?
Comment 2 Talli Somekh 2002-10-22 12:00:55 UTC
I was using gcc 2.95.3-r7. This morning, I updated to gcc 3.2-r2. However, upon
emerging wxGTK, I received the same error.

talli
Comment 3 Talli Somekh 2002-10-22 12:09:49 UTC
Someone else also posted this issue on the forums here:
http://forums.gentoo.org/viewtopic.php?t=19208

talli
Comment 4 Talli Somekh 2002-10-24 16:11:59 UTC
has anyone been able to look at this yet?

talli
Comment 5 Nick Hadaway 2002-10-24 16:16:07 UTC
I have not been able to recreate this problem...

how much RAM does your system have?
Comment 6 Talli Somekh 2002-10-24 16:17:11 UTC
i have 256 MB of RAM for a 667Mhz PIII

talli
Comment 7 SpanKY gentoo-dev 2002-10-24 21:13:58 UTC
raker: i'm experiencing this problem on my box, if you want you can debug the 
pkg on my machine 
Comment 8 SpanKY gentoo-dev 2002-10-25 16:28:01 UTC
http://bugs.gentoo.org/show_bug.cgi?id=9663 
 
but oddly enough, the src code does #include "../zlib/zconf.h" ... 
 
but that comment fixed this problem for me ... 
Comment 9 Nick Hadaway 2002-10-26 00:55:25 UTC
blackiepagano root # qpkg -f /usr/X11R6/include/zconf.h 
x11-base/xfree *
blackiepagano root # qpkg -f /usr/include/zconf.h       
sys-libs/zlib *
blackiepagano root # 

This brings us to a dilemma... but I would think that the zconf.h and zlib.h
from xfree86 shouldn't be installed...

I"ll post more here as more is learned.
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-26 09:29:33 UTC
Ok, xfree should be fixed.  I do not know if you want to change wxGTK's
pkg_setup() to something like:

pkg_setup() {

    # xfree should not install these, remove until the fixed
    # xfree is in main use.
    rm -f /usr/X11R6/include/{zconf.h,zlib.h}
}

Not clean, but is going to be the most "user friendly" approach.
Comment 11 SpanKY gentoo-dev 2002-10-26 14:20:37 UTC
i just added the fix to cvs, have fun guys :)