Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254546 - qt-3.3.8[b[-r1]]: compile fix against xproto-git / xproto-9999
Summary: qt-3.3.8[b[-r1]]: compile fix against xproto-git / xproto-9999
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-11 13:51 UTC by Manuel Lauss
Modified: 2009-03-27 20:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
qt-3.3.8 / xproto-9999 compile fix (qt-3.3.8b-xorg-git.patch,618 bytes, patch)
2009-01-11 13:52 UTC, Manuel Lauss
Details | Diff
qt-3.3.8 / xproto-9999 fix (qt-3.3.8-git-xorg.patch,567 bytes, patch)
2009-02-03 15:17 UTC, John Troy
Details | Diff
ebuild incorporating previously posted patch (qt-3.3.8b-r1.ebuild,10.64 KB, text/plain)
2009-02-03 15:18 UTC, John Troy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Lauss 2009-01-11 13:51:40 UTC
Compiling qt-3.3.8[b[-r1]] against xproto-9999 w. gcc-4.3 stops with this error:

make[1]: Entering directory `/mnt/data/portage-tmp/portage/x11-libs/qt-3.3.8b-r1/work/qt-x11-free-3.3.8b/src'
i686-pc-linux-gnu-g++ -c -pipe -fno-exceptions -Wall -W -O2 -march=pentium-m -mtune=pentium-m -fno-strict-aliasing -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_NIS -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_COMPACT -DQT_NO_STYLE_POCKETPC -I/mnt/data/portage-tmp/portage/x11-libs/qt-3.3.8b-r1/work/qt-x11-free-3.3.8b/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qtaddons_x11.o kernel/qtaddons_x11.cpp
In file included from /usr/include/X11/extensions/Xge.h:33,
                 from /usr/include/X11/extensions/XInput.h:54,
                 from kernel/qt_x11_p.h:90,
                 from kernel/qtaddons_x11.cpp:25:
/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'
make[1]: *** [.obj/release-shared-mt/qtaddons_x11.o] Error 1
make[1]: Leaving directory `/mnt/data/portage-tmp/portage/x11-libs/qt-3.3.8b-r1/work/qt-x11-free-3.3.8b/src'
make: *** [sub-src] Error 2

Fixed by simply adding the definitions from the Xmd.h header to include/qglobal.h.   Run-tested on x86, x86_64, mips and sh.

Setting severity to minor since this does not happen when the default stable
xproto headers are used.


Reproducible: Always
Comment 1 Manuel Lauss 2009-01-11 13:52:49 UTC
Created attachment 178045 [details, diff]
qt-3.3.8 / xproto-9999 compile fix

proposed fix.  Successfully run-tested on x86, x86_64, mips and sh.
Comment 2 John Troy 2009-02-03 15:17:30 UTC
Created attachment 180818 [details, diff]
qt-3.3.8 / xproto-9999 fix

I couldn't make sense of your patch when I read it so I followed your example and made my own. I think this patch better shows what's being changed.
Comment 3 John Troy 2009-02-03 15:18:33 UTC
Created attachment 180820 [details]
ebuild incorporating previously posted patch
Comment 4 Manuel Lauss 2009-02-03 18:59:07 UTC
(In reply to comment #2)
> Created an attachment (id=180818) [edit]
> qt-3.3.8 / xproto-9999 fix
> 
> I couldn't make sense of your patch when I read it so I followed your example
> and made my own. I think this patch better shows what's being changed.

Now that you mention it, your patch looks like what mine was supposed to.
Thanks!
Comment 5 Ben de Groot (RETIRED) gentoo-dev 2009-03-27 20:36:22 UTC
We don't support X development versions.