Tried to emerge PyQT4-4.3 and it failed while compile QTCore with the following error: make[1]: Entering directory `/var/tmp/portage/dev-python/PyQt4-4.3/work/PyQt-x11-gpl-4.3/QtCore' g++ -c -pipe -fPIC -O2 -march=i686 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I/usr/include/python2.5 -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I/usr/include -o sipQtCorecmodule.o sipQtCorecmodule.cpp sipQtCorecmodule.cpp: In function 'PyObject* func_qUncompress(PyObject*, PyObject*)': sipQtCorecmodule.cpp:8312: error: 'qUncompress' was not declared in this scope sipQtCorecmodule.cpp: In function 'PyObject* func_qCompress(PyObject*, PyObject*)': sipQtCorecmodule.cpp:8343: error: 'qCompress' was not declared in this scope sip/QtCore/qobject.sip: In function 'void initQtCore()': sip/QtCore/qobject.sip:2943: warning: dereferencing type-punned pointer will break strict-aliasing rules make[1]: *** [sipQtCorecmodule.o] Error 1 mamake[1]: Entering directory `/var/tmp/portage/dev-python/PyQt4-4.3/work/PyQt-x11-gpl-4.3/QtCore' g++ -c -pipe -fPIC -O2 -march=i686 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I/usr/include/python2.5 -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I/usr/include -o sipQtCorecmodule.o sipQtCorecmodule.cpp sipQtCorecmodule.cpp: In function 'PyObject* func_qUncompress(PyObject*, PyObject*)': sipQtCorecmodule.cpp:8312: error: 'qUncompress' was not declared in this scope sipQtCorecmodule.cpp: In function 'PyObject* func_qCompress(PyObject*, PyObject*)': sipQtCorecmodule.cpp:8343: error: 'qCompress' was not declared in this scope sip/QtCore/qobject.sip: In function 'void initQtCore()': sip/QtCore/qobject.sip:2943: warning: dereferencing type-punned pointer will break strict-aliasing rules make[1]: *** [sipQtCorecmodule.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-python/PyQt4-4.3/work/PyQt-x11-gpl-4.3/QtCore' ke[1]: Leaving directory `/var/tmp/portage/dev-python/PyQt4-4.3/work/PyQt-x11-gpl-4.3/QtCore' Reproducible: Always Steps to Reproduce: 1.emerge PyQT 2. 3. Expected Results: For it to work... sideshow ~ # emerge --info Portage 2.1.3.3 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.6-r0, 2.6.23-rc1-mm1 i686) ================================================================= System uname: 2.6.23-rc1-mm1 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ Gentoo Base System release 1.12.10 Timestamp of tree: Thu, 09 Aug 2007 23:00:01 +0000 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/opt/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X accessibility addbookmarks aim alias alsa arts artswrappersuid asf automount autoreplace avahi berkdb bitmap-fonts bluetooth bonjour bzip2 cairo cdparanoia cdr cli connectionstatus contactnotes cracklib crypt cups dbus divx doc dri dvd dvdr dvdread eds emboss encode esd fam firefox foomaticdb gcj gdbm gif gmedia gnutls gphoto2 gpm gstreamer gtk gtk2 hal highlight history iconv ieee1394 ipv6 irc isdnlog jingle jpeg jpeg2k kde kdepim kdm kexi kipi libnotify mad mdnsresponder-compat midi mikmod mp3 mpeg mplayer msn mudflap mysql ncurses netmeeting nls nowlistening nptl nptlonly nsplugin ntfs ogg opengl openmp oss pam pcre pdf perl png postgres ppds pppd python qt3 qt4 quicktime rdesktop readline real realmedia reflection reiser4 reiserfs samba sdl session silc slp sms spell spl sql sqlite3 ssl startup-notification statistics subversion svg symlink tcpd texteffect tiff translator truetype truetype-fonts type1-fonts unicode usb v4l2 vorbis webpresence win32codecs winpopup wmp x86 xine xinerama xml xorg xscreensaver xv yahoo zeroconf" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa fbdev vmware" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Here is the emerge output.... `/var/tmp/portage/dev-python/PyQt4-4.3/work/PyQt-x11-gpl-4.3/qpy/QtDesigner' make[1]: Leaving directory `/var/tmp/portage/dev-python/PyQt4-4.3/work/PyQt-x11-gpl-4.3/qpy' make[1]: Entering directory `/var/tmp/portage/dev-python/PyQt4-4.3/work/PyQt-x11-gpl-4.3/QtCore' g++ -c -pipe -fPIC -O2 -march=i686 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I/usr/include/python2.5 -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I/usr/include -o sipQtCorecmodule.o sipQtCorecmodule.cpp sipQtCorecmodule.cpp: In function 'PyObject* func_qUncompress(PyObject*, PyObject*)': sipQtCorecmodule.cpp:8312: error: 'qUncompress' was not declared in this scope sipQtCorecmodule.cpp: In function 'PyObject* func_qCompress(PyObject*, PyObject*)': sipQtCorecmodule.cpp:8343: error: 'qCompress' was not declared in this scope sip/QtCore/qobject.sip: In function 'void initQtCore()': sip/QtCore/qobject.sip:2943: warning: dereferencing type-punned pointer will break strict-aliasing rules make[1]: *** [sipQtCorecmodule.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-python/PyQt4-4.3/work/PyQt-x11-gpl-4.3/QtCore' make: *** [all] Error 2 * r/tmp/portage/dev-python/PyQt4-4.3/work/PyQt-x11-gpl-4.3/QtCore' make: *** [all] Error 2 *
I'm going to guess this is a bug in PyQt or sip. You might want to contact the PyQt devs to see if a patch is needed to sort this one out.
*** Bug 189393 has been marked as a duplicate of this bug. ***
I posted the probable solution in Bug 189393.
added a zlib check to the ebuild