<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>82824</bug_id>
          
          <creation_ts>2012-03-31 00:01:44 -0700</creation_ts>
          <short_desc>Webkit compilation error in file UnicodeQt4.h</short_desc>
          <delta_ts>2015-11-13 12:53:00 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Qt</component>
          <version>412</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Sergey Gusarov">laborer2008</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>allan.jensen</cc>
    
    <cc>ap</cc>
    
    <cc>devurandom</cc>
    
    <cc>lamarque</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>592810</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Gusarov">laborer2008</who>
    <bug_when>2012-03-31 00:01:44 -0700</bug_when>
    <thetext>An error appears at &quot;qt-everywhere-opensource-src-4.8.1&quot; compilation:

make[2]: Entering directory `/home/sergey/code/qt-everywhere-opensource-src-4.8.1/src/3rdparty/webkit/Source/WebCore&apos;
compiling platform/graphics/MediaPlayer.cpp
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’
make[2]: *** [.obj/debug-static-emb-x86_64/MediaPlayer.o] Error 1
make[2]: Leaving directory `/home/sergey/code/qt-everywhere-opensource-src-4.8.1/src/3rdparty/webkit/Source/WebCore&apos;
make[1]: *** [sub-WebCore-make_default-ordered] Error 2
make[1]: Leaving directory `/home/sergey/code/qt-everywhere-opensource-src-4.8.1/src/3rdparty/webkit/Source&apos;
make: *** [sub-webkit-make_default-ordered] Error 2

Also, my system file /usr/include/unicode/umachine.h belongs to dev-libs/icu-4.8.1.1-r1 package.

My system: Gentoo GNU/Linux x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>741144</commentid>
    <comment_count>1</comment_count>
    <who name="Lamarque V. Souza">lamarque</who>
    <bug_when>2012-10-12 13:23:45 -0700</bug_when>
    <thetext>The installed libxml2 was compiled with icu support on. You can either recompile libxml2 without icu or enable icu support in qt-webkit:

# cd qt-everywhere-opensource-src-4.8.1
# sed -i -e &apos;/CONFIG\s*+=\s*text_breaking_with_icu/ s:^#\s*::&apos; \
	src/3rdparty/webkit/Source/JavaScriptCore/JavaScriptCore.pri
# ./configure -icu &amp;&amp; make &amp;&amp; make install</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>782647</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey Gusarov">laborer2008</who>
    <bug_when>2012-12-04 10:01:42 -0800</bug_when>
    <thetext>Thanks! It works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>927244</commentid>
    <comment_count>3</comment_count>
    <who name="Allan Sandfeld Jensen">allan.jensen</who>
    <bug_when>2013-09-10 02:44:03 -0700</bug_when>
    <thetext>libxml2 and Qt4 needs to either both be build with libicu or without.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>