One twist is that I'm using gcc-2.5.x w/ Gentoo 1.4_rc1, but the url above seems to illustrate the same problem w/ gcc-3.x. Here's the result of "emerge info": System uname: 2.4.19-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 1.90GHz USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg kde libg++ libwww mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime sdl spell svga truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline arts bonobo java guile X gpm tcpd pam ssl perl python esd imlib oggvorbis gnome gtk qt motif opengl mozilla tcltk" ARCH="x86" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=i686 -O2 -pipe" CXXFLAGS="-mcpu=i686 -O2 -pipe" ACCEPT_KEYWORDS="x86" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" MAKEOPTS="-j2" JDK_HOME="" JAVA_HOME="" AUTOCLEAN="no" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" Here's the error: g++ -c -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/X11R6/include -I/usr/qt/3/include -I/usr/qt/3/mkspecs/linux-g++ -o zip.o zip.cpp g++ -c -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/X11R6/include -I/usr/qt/3/include -I/usr/qt/3/mkspecs/linux-g++ -o iconset.o iconset.cpp In file included from zip.cpp:7: minizip/unzip.h:114: syntax error before `(' minizip/unzip.h:127: syntax error before `(' minizip/unzip.h:138: syntax error before `(' minizip/unzip.h:145: syntax error before `(' minizip/unzip.h:153: syntax error before `(' minizip/unzip.h:166: syntax error before `(' minizip/unzip.h:172: syntax error before `(' minizip/unzip.h:179: syntax error before `(' minizip/unzip.h:192: syntax error before `(' minizip/unzip.h:218: syntax error before `(' minizip/unzip.h:224: syntax error before `(' minizip/unzip.h:231: syntax error before `(' minizip/unzip.h:245: syntax error before `(' minizip/unzip.h:250: syntax error before `(' minizip/unzip.h:255: syntax error before `(' zip.cpp: In method `bool UnZip::open()': zip.cpp:46: implicit declaration of function `int unzOpen(...)' zip.cpp:46: assignment to `void *' from `int' lacks a cast zip.cpp: In method `void UnZip::close()': zip.cpp:56: implicit declaration of function `int unzClose(...)' zip.cpp: In method `bool UnZip::getList()': zip.cpp:71: implicit declaration of function `int unzGetGlobalInfo(...)' zip.cpp:79: implicit declaration of function `int unzGetCurrentFileInfo(...)' zip.cpp:86: implicit declaration of function `int unzGoToNextFile(...)' zip.cpp: In method `bool UnZip::readFile(const QString &, QByteArray *, int = 0)': zip.cpp:99: implicit declaration of function `int unzLocateFile(...)' zip.cpp:109: implicit declaration of function `int unzOpenCurrentFile(...)' zip.cpp:116: implicit declaration of function `int unzReadCurrentFile(...)' zip.cpp:118: implicit declaration of function `int unzCloseCurrentFile(...)' make: *** [zip.o] Error 1 make: *** Waiting for unfinished jobs....
Okay, the problem seems to be that psi finds the zconf.h and zlib.h in /usr/X11R6/include instead of whatever ones they should find. A temporary work-around is to do the following: cd /usr/X11R6/include/ mv zconf.h zconf.h.hold mv zlib.h zlib.h.hold emerge psi mv zconf.h.hold zconf.h mv zlib.h.hold zlib.h
does X11 really need a separate zlib?
http://bugs.gentoo.org/show_bug.cgi?id=9470#c10 xfree has been fixed and a small work around has been added to the wxGTK ebuild since it too had the same problem ... see that comment for info on how to fix psi
fix is in cvs now http://www.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/net-im/psi/psi-0.8.6.ebuild.diff?r1=1.6&r2=1.7