Index: emerge/portage/libs/qt/qt-4.4.0.20080222.py
===================================================================
--- emerge/portage/libs/qt/qt-4.4.0.20080222.py	(wersja 805088)
+++ emerge/portage/libs/qt/qt-4.4.0.20080222.py	(kopia robocza)
@@ -148,6 +148,14 @@
         inctmp = os.getenv( "INCLUDE" )
         if self.compiler == "msvc2005":
             platform = "win32-msvc2005"
+            # remove 'include/msvc' from the path to avoid unresolved kdewin32 symbols like __INFF
+            inclist = []
+            incmsvc = '/include/msvc'
+            for path in inctmp.split(';'):
+                if (path.lower().find(incmsvc)+len(incmsvc)) != len(path):
+                  inclist.append(path.replace('/','\\'))
+            os.environ[ "INCLUDE" ] = ';'.join(inclist)
+            print "modified %INCLUDE%: ", os.environ[ "INCLUDE" ]
         elif self.compiler == "mingw":
             os.environ[ "LIB" ] = ""
             os.environ[ "INCLUDE" ] = ""
@@ -157,14 +165,24 @@
 
         os.environ[ "USERIN" ] = "y"
         os.chdir( qtsrcdir )
+        # (note: -qt-zlib is needed because we can already have zlib.h on within INCLUDE paths)
         command = r"echo y | configure.exe -platform %s -prefix %s " \
-          "-qt-gif -qt-libpng -qt-libjpeg -qt-libtiff " \
+          "-qt-gif -qt-libpng -qt-libjpeg -qt-libtiff -qt-zlib " \
           "-qdbus -openssl " \
           "-fast -no-vcproj -no-dsp " \
           "-I %s -L %s " % \
           ( platform, prefix,
             os.path.join( thirdparty_dir, "include" ),
             os.path.join( thirdparty_dir, "lib" ) )
+
+        # with qt-4.4.0.20080222, we need on this option for the old behaviour
+        # otherwise binaries like qdbusxml2cpp build with mingw 
+        # will only search for "dbus-1.dll" and fail with a message like
+        # "Cannot find libdbus-1 in your system to resolve symbol
+        #  'dbus_signature_validate_single'."
+        if self.compiler == "mingw":
+            command = command + " -dbus-linked"
+
         if self.buildType == "Debug":
           command = command + " -debug "
         else: