<?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>63948</bug_id>
          
          <creation_ts>2011-07-05 11:40:12 -0700</creation_ts>
          <short_desc>webkit-gtk-1.4.1 and webkit-gtk-1.5.1 fail to build on case insensitive filesystems (U8_MAX_LENGTH)</short_desc>
          <delta_ts>2011-08-15 15:35:04 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>65811</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jeremy Huddleston Sequoia">jeremyhu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mrobinson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>432351</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Huddleston Sequoia">jeremyhu</who>
    <bug_when>2011-07-05 11:40:12 -0700</bug_when>
    <thetext>webkit-gtk-1.4.1 and 1.5.1 fail to build due to undefined U8_MAX_LENGTH in TextCodecUTF8.h

These line numbers are for 1.5.1

In file included from Source/WebCore/platform/text/TextCodecUTF8.cpp:27:
Source/WebCore/platform/text/TextCodecUTF8.h:50: error: &apos;U8_MAX_LENGTH&apos; was not declared in this scope
Source/WebCore/platform/text/TextCodecUTF8.cpp: In member function &apos;void WebCore::TextCodecUTF8::consumePartialSequenceByte()&apos;:
Source/WebCore/platform/text/TextCodecUTF8.cpp:156: error: &apos;m_partialSequence&apos; was not declared in this scope
Source/WebCore/platform/text/TextCodecUTF8.cpp: In member function &apos;void WebCore::TextCodecUTF8::handlePartialSequence(UChar*&amp;, const uint8_t*&amp;, const uint8_t*, bool, bool, bool&amp;)&apos;:
Source/WebCore/platform/text/TextCodecUTF8.cpp:173: error: &apos;m_partialSequence&apos; was not declared in this scope
Source/WebCore/platform/text/TextCodecUTF8.cpp:178: error: &apos;m_partialSequence&apos; was not declared in this scope
Source/WebCore/platform/text/TextCodecUTF8.cpp: In member function &apos;virtual WTF::String WebCore::TextCodecUTF8::decode(const char*, size_t, bool, bool, bool&amp;)&apos;:
Source/WebCore/platform/text/TextCodecUTF8.cpp:271: error: &apos;m_partialSequence&apos; was not declared in this scope
Source/WebCore/platform/text/TextCodecUTF8.cpp: In member function &apos;virtual WTF::CString WebCore::TextCodecUTF8::encode(const UChar*, size_t, WebCore::UnencodableHandling)&apos;:
Source/WebCore/platform/text/TextCodecUTF8.cpp:310: error: &apos;U8_APPEND_UNSAFE&apos; was not declared in this scope
make[1]: *** [Source/WebCore/platform/text/libWebCore_la-TextCodecUTF8.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from Source/WebCore/platform/text/TextEncodingRegistry.cpp:33:
Source/WebCore/platform/text/TextCodecUTF8.h:50: error: &apos;U8_MAX_LENGTH&apos; was not declared in this scope
make[1]: *** [Source/WebCore/platform/text/libWebCore_la-TextEncodingRegistry.lo] Error 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>432354</commentid>
    <comment_count>1</comment_count>
    <who name="Jeremy Huddleston Sequoia">jeremyhu</who>
    <bug_when>2011-07-05 11:54:16 -0700</bug_when>
    <thetext>The command line for the compilation is

/Developer/usr/bin/llvm-g++-4.2 -DHAVE_CONFIG_H -I. -DBUILDING_WEBKIT -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -DENABLE_GLIB_SUPPORT=1 -DBUILDING_CAIRO__=1 -DBUILDING_GTK__=1 -DWTF_CHANGES -DXP_UNIX -DWTF_USE_ICU_UNICODE=1 -DWTF_USE_GSTREAMER=1 -DGTK_API_VERSION_2=1 -DNDEBUG -I./Source/ThirdParty/ANGLE/src -I./Source/ThirdParty/ANGLE/include -I./Source/ThirdParty/ANGLE/include/GLSLANG -I./Source/WebCore -I./Source/WebCore/accessibility -I./Source/WebCore/bindings -I./Source/WebCore/bindings/generic -I./Source/WebCore/bindings/js -I./Source/WebCore/bindings/js/specialization -I./Source/WebCore/bridge -I./Source/WebCore/bridge/c -I./Source/WebCore/bridge/jni/jsc -I./Source/WebCore/bridge/jsc -I./Source/WebCore/css -I./Source/WebCore/dom -I./Source/WebCore/dom/default -I./Source/WebCore/editing -I./Source/WebCore/fileapi -I./Source/WebCore/history -I./Source/WebCore/html -I./Source/WebCore/html/canvas -I./Source/WebCore/html/parser -I./Source/WebCore/html/shadow -I./Source/WebCore/inspector -I./Source/WebCore/loader -I./Source/WebCore/loader/appcache -I./Source/WebCore/loader/archive -I./Source/WebCore/loader/cache -I./Source/WebCore/loader/icon -I./Source/WebCore/mathml -I./Source/WebCore/notifications -I./Source/WebCore/page -I./Source/WebCore/page/animation -I./Source/WebCore/platform -I./Source/WebCore/platform/animation -I./Source/WebCore/platform/audio -I./Source/WebCore/platform/graphics -I./Source/WebCore/platform/graphics/filters -I./Source/WebCore/platform/graphics/filters/arm -I./Source/WebCore/platform/graphics/gpu -I./Source/WebCore/platform/graphics/opengl -I./Source/WebCore/platform/graphics/opentype -I./Source/WebCore/platform/graphics/transforms -I./Source/WebCore/platform/image-decoders -I./Source/WebCore/platform/image-decoders/bmp -I./Source/WebCore/platform/image-decoders/gif -I./Source/WebCore/platform/image-decoders/ico -I./Source/WebCore/platform/image-decoders/jpeg -I./Source/WebCore/platform/image-decoders/webp -I./Source/WebCore/platform/image-decoders/png -I./Source/WebCore/platform/leveldb -I./Source/WebCore/platform/mock -I./Source/WebCore/platform/network -I./Source/WebCore/platform/sql -I./Source/WebCore/platform/text -I./Source/WebCore/platform/text/transcoder -I./Source/WebCore/platform/win -I./Source/WebCore/plugins -I./Source/WebCore/plugins/win -I./Source/WebCore/rendering -I./Source/WebCore/rendering/mathml -I./Source/WebCore/rendering/style -I./Source/WebCore/rendering/svg -I./Source/WebCore/storage -I./Source/WebCore/svg -I./Source/WebCore/svg/animation -I./Source/WebCore/svg/graphics -I./Source/WebCore/svg/graphics/filters -I./Source/WebCore/svg/properties -I./Source/WebCore/testing -I./Source/WebCore/testing/js -I./Source/WebCore/webaudio -I./Source/WebCore/websockets -I./Source/WebCore/workers -I./Source/WebCore/xml -I./WebCore/bindings/js -I./DerivedSources/WebCore -I./DerivedSources -I./DerivedSources/JavaScriptCore -DDATA_DIR=\&quot;/opt/local/share\&quot; -DENABLE_CHANNEL_MESSAGING=1 -DENABLE_METER_TAG=1 -DENABLE_PROGRESS_TAG=1 -DENABLE_JAVASCRIPT_DEBUGGER=1 -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DATABASE=1 -DENABLE_DATALIST=1 -DENABLE_EVENTSOURCE=1 -DENABLE_DIRECTORY_UPLOAD=0 -DENABLE_DOM_STORAGE=1 -DENABLE_TOUCH_ICON_LOADING=0 -DENABLE_INPUT_COLOR=0 -DENABLE_INPUT_SPEECH=0 -DENABLE_ICONDATABASE=1 -DENABLE_VIDEO=1 -DENABLE_MEDIA_STATISTICS=0 -DENABLE_FULLSCREEN_API=1 -DENABLE_VIDEO_TRACK=1 -DENABLE_XPATH=1 -DENABLE_XSLT=1 -DENABLE_WORKERS=1 -DENABLE_SHARED_WORKERS=1 -DENABLE_FILTERS=1 -DENABLE_SVG=1 -DENABLE_SVG_USE=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_WEB_SOCKETS=1 -DENABLE_BLOB=1 -DWEBKITGTK_API_VERSION_STRING=\&quot;1.0\&quot; -DWTF_USE_SOUP=1 -I./Source/WebCore/accessibility/gtk -I./Source/WebCore/loader/gtk -I./Source/WebCore/page/gtk -I./Source/WebCore/platform/graphics/cairo -I./Source/WebCore/platform/graphics/gstreamer -I./Source/WebCore/platform/graphics/gtk -I./Source/WebCore/platform/gtk -I./Source/WebCore/platform/network/soup -DWTF_USE_FREETYPE=1 -I./Source/WebCore/platform/graphics/freetype -I./Source -I./Source/JavaScriptCore -I./Source/JavaScriptCore/API -I./Source/JavaScriptCore/assembler -I./Source/JavaScriptCore/bytecode -I./Source/JavaScriptCore/bytecompiler -I./Source/JavaScriptCore/heap -I./Source/JavaScriptCore/debugger -I./Source/JavaScriptCore/ForwardingHeaders -I./Source/JavaScriptCore/interpreter -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/profiler -I./Source/JavaScriptCore/runtime -I./Source/JavaScriptCore/wtf -I./Source/JavaScriptCore/wtf -I./Source/JavaScriptCore/wtf/gobject -I./Source/JavaScriptCore/wtf/gtk -I./Source/JavaScriptCore/wtf/text -I./Source/JavaScriptCore/wtf/unicode -I./Source/JavaScriptCore/yarr -I./Source/JavaScriptCore -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/runtime -fno-strict-aliasing -D_REENTRANT -I/opt/local/include/enchant -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -D_REENTRANT -I/opt/local/include/gail-1.0 -I/opt/local/include/atk-1.0 -I/opt/local/include/gtk-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/cairo -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng14 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -D_REENTRANT -I/opt/local/include/gstreamer-0.10 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libxml2 -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng14 -D_REENTRANT -I/opt/local/include/libsoup-2.4 -I/opt/local/include/libxml2 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/include -I./Source/JavaScriptCore/icu -I./Source/WebCore/icu -I/opt/local/include -I/opt/local/include -I/opt/local/include -fvisibility-inlines-hidden -fno-rtti -pipe -O2 -arch x86_64 -O2 -MT Source/WebCore/platform/text/libWebCore_la-TextCodecUTF8.lo -MD -MP -MF Source/WebCore/platform/text/.deps/libWebCore_la-TextCodecUTF8.Tpo -E Source/WebCore/platform/text/TextCodecUTF8.cpp  -fno-common -DPIC -o Source/WebCore/platform/text/.libs/libWebCore_la-TextCodecUTF8.pp.cpp

I&apos;m attaching the preprocessed source.

It looks like the problem is that ./Source/JavaScriptCore/wtf/unicode/UTF8.h is being included when .../icu/unicode/utf8.h is expected

./Source/JavaScriptCore/icu/unicode/utf8.h:#define U8_MAX_LENGTH 4
./Source/JavaScriptCore/wtf/unicode/UnicodeMacrosFromICU.h:#define U8_MAX_LENGTH 4
./Source/WebCore/icu/unicode/utf8.h:#define U8_MAX_LENGTH 4
./Source/WebCore/platform/text/TextCodecUTF8.h:    uint8_t m_partialSequence[U8_MAX_LENGTH];</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>433211</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-07-06 20:50:49 -0700</bug_when>
    <thetext>Very unfortunate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>451327</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-08-15 15:35:04 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 65811 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>