Bug 436703 - conflicting declaration 'typedef long int INT32' with qt-3.3.8
Summary: conflicting declaration 'typedef long int INT32' with qt-3.3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-proto-devel
Version: rawhide
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-09 17:46 UTC by Than Ngo
Modified: 2008-04-01 19:58 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-04-01 19:58:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.