Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 386123 - [qting-edge] qt-webkit-4.8.0_rc1 and 4.8.9999 fails to compile - conflicting declaration of UChar32
Summary: [qting-edge] qt-webkit-4.8.0_rc1 and 4.8.9999 fails to compile - conflicting ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-07 18:18 UTC by Stefan Böhmann
Modified: 2011-12-31 12:01 UTC (History)
4 users (show)

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


Attachments
tail -n 200 build.log (build.log,727.28 KB, text/plain)
2011-10-07 18:21 UTC, Stefan Böhmann
Details
emerge --info (emerge_info,5.08 KB, text/plain)
2011-10-07 18:22 UTC, Stefan Böhmann
Details
build.log of 4.8.0_rc1 (last 200 lines) (build.log,741.49 KB, text/plain)
2011-10-17 09:08 UTC, Stefan Böhmann
Details
qt-webkit-4.8.0_rc1-r1.ebuild (qt-webkit-4.8.0_rc1-r1.ebuild,1.26 KB, text/plain)
2011-10-21 16:11 UTC, Stefan Böhmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Böhmann 2011-10-07 18:18:13 UTC
From build.log:
In file included from /usr/include/unicode/utypes.h:36:0,
                 from /usr/include/unicode/ucnv_err.h:86,
                 from /usr/include/unicode/ucnv.h:50,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:807,
                 from /usr/include/gstreamer-0.10/gst/gstconfig.h:200,
                 from /usr/include/gstreamer-0.10/gst/gstelement.h:55,
                 from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
                 from /usr/include/gstreamer-0.10/gst/gst.h:34,
                 from platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:32,
                 from platform/graphics/MediaPlayer.cpp:46:
/usr/include/unicode/umachine.h:345:17: error: conflicting declaration ‘typedef int32_t UChar32’’
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:71:18: error: ‘UChar32’ has a previous declaration as ‘typedef uint32_t UChar32’

Reproducible: Always
Comment 1 Stefan Böhmann 2011-10-07 18:21:25 UTC
Created attachment 289099 [details]
tail -n 200 build.log
Comment 2 Stefan Böhmann 2011-10-07 18:22:19 UTC
Created attachment 289101 [details]
emerge --info
Comment 3 Stefan Böhmann 2011-10-17 09:05:20 UTC
Also x11-libs/qt-webkit-4.8.0_rc1 fails.
Comment 4 Stefan Böhmann 2011-10-17 09:08:00 UTC
Created attachment 290031 [details]
build.log of 4.8.0_rc1 (last 200 lines)
Comment 5 VoofT 2011-10-17 13:19:17 UTC
Confirm fail for 4.8.0_rc1
It seems Apple removed Phonon support at all http://trac.webkit.org/changeset/89832/trunk/Source/WebCore/platform/graphics/MediaPlayer.cpp
Comment 6 Tommi Asp 2011-10-17 16:37:41 UTC
Had same problem.
Got it to compile by adding 
"-no-phonon -no-phonon-backend -no-multimedia -no-audio-backend"
to ebuilds myconf, but could be it is only phonon related.
Comment 7 Stefan Böhmann 2011-10-18 10:04:25 UTC
Thank you for the Phonon/Multimedia pointer. I've just tried it with "-no-phonon -no-phonon-backend" but had no luck. I'll try again now with your settings ("-no-phonon -no-phonon-backend -no-multimedia -no-audio-backend").
Comment 8 Stefan Böhmann 2011-10-18 12:39:14 UTC
For me also "-no-phonon -no-phonon-backend -no-multimedia -no-audio-backend" doesn't work.
Comment 9 VoofT 2011-10-18 17:27:35 UTC
If we place "#define GST_DISABLE_DEPRECATED" before including MediaPlayerPrivateGStreamer.h it is possible to compile MediaPlayer.cpp.

This define prevents including of libxml/parser.h which is not necessary right here (see comments in gstconfig.h).

But there're some other files that use one of gstreamer's headers.
Comment 10 Stefan Böhmann 2011-10-21 16:09:46 UTC
(In reply to comment #9)
> If we place "#define GST_DISABLE_DEPRECATED" before including
> MediaPlayerPrivateGStreamer.h it is possible to compile MediaPlayer.cpp.

This was the right hint for me. If I add GST_DISABLE_DEPRECATED to the preprocessor (add -D GST_DISABLE_DEPRECATED to myconf) I can finally compile qt-webkit.

Thank you VoofT!
Comment 11 Stefan Böhmann 2011-10-21 16:11:24 UTC
Created attachment 290459 [details]
qt-webkit-4.8.0_rc1-r1.ebuild
Comment 12 VoofT 2011-10-26 18:00:32 UTC
Also, as i wrote before, it seems, there is no any phonon dependency, so we can simply delete it. But if it is so, there is gstreamer dependency.
Look here: https://bugs.webkit.org/show_bug.cgi?id=63448
Comment 13 Davide Pesavento gentoo-dev 2011-12-31 01:02:27 UTC
Is this still an issue in 4.8.0 ?
Comment 14 Stefan Böhmann 2011-12-31 12:01:44 UTC
(In reply to comment #13)
> Is this still an issue in 4.8.0 ?

No - the qting-edge 4.8.0 ebuilds works for me.