Bug 436703

Summary: conflicting declaration 'typedef long int INT32' with qt-3.3.8
Product: [Fedora] Fedora Reporter: Than Ngo <than>
Component: xorg-x11-proto-develAssignee: Adam Jackson <ajax>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-01 19:58:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Than Ngo 2008-03-09 17:46:22 UTC
Description of problem:
the new version of xorg-x11-proto-devel causes conflicting declaration with 
qt-3.3.8

Version-Release number of selected component (if applicable):
xorg-x11-proto-devel-7.3-8.fc9

How reproducible:
rebuilt qt-3.3.8b in rawhide against new xorg-x11-proto-devel-7.3-8.fc9. The 
rebuild will break with following errors:

g++ -c -pipe -fno-exceptions -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_POCKETPC -I/home/than/rpm/BUILD/qt-x11-free-3.3.8b/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qpaintdevice_x11.o 
kernel/qpaintdevice_x11.cpp
In file included from /usr/include/X11/extensions/XI.h:56,
                 from /usr/include/X11/extensions/XInput.h:57,
                 from kernel/qt_x11_p.h:91,
                 from kernel/qpaintdevice_x11.cpp:48:
/usr/include/X11/Xmd.h:137: error: conflicting declaration 'typedef long int 
INT32'
../include/qglobal.h:709: error: 'INT32' has a previous declaration 
as 'typedef int INT32'


Actual results:
rebuild breaks with errors

Expected results:
rebuild should work

Additional info:
it works with previous version xorg-x11-proto-devel-7.3-7.fc9. I have taken a 
look in XI.h in new version

-#include <X11/X.h> /* CARD32 */
+#include <X11/Xmd.h> /* CARD32 */


this change causes the conflicting declaration 'typedef long int INT32'

rebuild of qt works again i revert this change.

Comment 1 Adam Jackson 2008-04-01 19:58:24 UTC
Fixed in xorg-x11-proto-devel 7.3-11