Bug 17517
| Summary: | build failure at WebCore/xml/libWebKitGtk_la-XSLTUnicodeSort.lo | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Randall Wood <alexandriasoftware> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | mrowe |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac (PowerPC) | ||
| OS: | OS X 10.5 | ||
Randall Wood
I am having a build failure using ICU from MacPorts (http://macports.org). The complete log of the build attempt is at http://homepage.mac.com/rhwood/webkit/r30549/install.log (3.4 MB)
This is the command that fails:
/usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I./JavaScriptCore -I./JavaScriptCore/ForwardingHeaders -I./JavaScriptCore/wtf -I./JavaScriptCore/kjs -I./DerivedSources -DBUILDING_GTK__=1 -DWTF_CHANGES -DXP_UNIX -DNDEBUG -DENABLE_ICONDATABASE=0 -I./JavaScriptCore/bindings -I./WebCore -I./WebCore/ForwardingHeaders -I./WebCore/platform -I./WebCore/platform/network -I./WebCore/platform/graphics -I./WebCore/platform/text -I./WebCore/loader -I./WebCore/loader/icon -I./WebCore/css -I./WebCore/dom -I./WebCore/page -I./WebCore/bridge -I./WebCore/editing -I./WebCore/history -I./WebCore/xml -I./WebCore/html -I./WebCore/bindings/js -I./WebCore/platform/image-decoders -I./WebCore/platform/image-decoders/bmp -I./WebCore/platform/image-decoders/gif -I./WebCore/platform/image-decoders/ico -I./WebCore/platform/image-decoders/jpeg -I./WebCore/platform/image-decoders/png -I./WebCore/platform/image-decoders/xbm -I./WebCore/plugins -I./WebCore/rendering -I./WebCore/bindings/js -DWTF_USE_CURL=1 -I./WebCore/platform/network/curl -DENABLE_CROSS_DOCUMENT_MESSAGING=1 -DENABLE_DATABASE=1 -I./WebCore/platform/sql -I./WebCore/storage -DENABLE_XPATH=1 -DENABLE_XSLT=1 -I./WebKit/gtk/webkit -DBUILDING_CAIRO__=1 -DBUILD_WEBKIT -I./WebCore/platform/gtk -I./WebCore/platform/graphics/gtk -I./WebCore/platform/graphics/cairo -I./WebCore/loader/gtk -I./WebCore/page/gtk -I./WebKit/gtk -I./WebKit/gtk/WebCoreSupport -I./WebKit/gtk/webkit -I/opt/local/include -I/opt/local/include -fno-strict-aliasing -fvisibility-inlines-hidden -fno-rtti -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 -fno-exceptions -fvisibility=hidden -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DXTHREADS -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/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include/libxml2 -O2 -MT WebCore/xml/libWebKitGtk_la-XSLTUnicodeSort.lo -MD -MP -MF WebCore/xml/.deps/libWebKitGtk_la-XSLTUnicodeSort.Tpo -c WebCore/xml/XSLTUnicodeSort.cpp -fno-common -DPIC -o WebCore/xml/.libs/libWebKitGtk_la-XSLTUnicodeSort.o
In file included from ./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h:28,
from ./JavaScriptCore/wtf/unicode/Unicode.h:31,
from ./JavaScriptCore/wtf/unicode/utf8.h:29,
from /opt/local/include/unicode/utf.h:221,
from /opt/local/include/unicode/utypes.h:37,
from /opt/local/include/unicode/ucnv_err.h:86,
from /opt/local/include/unicode/ucnv.h:50,
from WebCore/xml/XSLTUnicodeSort.cpp:38:
/opt/local/include/unicode/uchar.h:2317:6: warning: "UCONFIG_NO_NORMALIZATION" is not defined
In file included from ./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h:29,
from ./JavaScriptCore/wtf/unicode/Unicode.h:31,
from ./JavaScriptCore/wtf/unicode/utf8.h:29,
from /opt/local/include/unicode/utf.h:221,
from /opt/local/include/unicode/utypes.h:37,
from /opt/local/include/unicode/ucnv_err.h:86,
from /opt/local/include/unicode/ucnv.h:50,
from WebCore/xml/XSLTUnicodeSort.cpp:38:
/opt/local/include/unicode/ustring.h:679:6: warning: "UCONFIG_NO_CONVERSION" is not defined
/opt/local/include/unicode/ustring.h:1092:6: warning: "UCONFIG_NO_BREAK_ITERATION" is not defined
/opt/local/include/unicode/ustring.h:1169:64: warning: "UCONFIG_NO_CONVERSION" is not defined
/opt/local/include/unicode/uchar.h:2293: error: expected initializer before 'UCharEnumTypeRange'
/opt/local/include/unicode/uchar.h:2315: warning: 'u_enumCharTypes_3_8' initialized and declared 'extern'
/opt/local/include/unicode/uchar.h:2315: error: variable or field 'u_enumCharTypes_3_8' declared void
/opt/local/include/unicode/uchar.h:2315: error: 'UCharEnumTypeRange' was not declared in this scope
/opt/local/include/unicode/uchar.h:2315: error: 'enumRange' was not declared in this scope
/opt/local/include/unicode/uchar.h:2315: error: expected primary-expression before 'const'
/opt/local/include/unicode/uchar.h:2315: error: initializer expression list treated as compound expression
/opt/local/include/unicode/uchar.h:2404: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/uchar.h:2431: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/uchar.h:2456: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/uchar.h:2475: error: expected initializer before 'UEnumCharNamesFn'
/opt/local/include/unicode/uchar.h:2504: error: 'UEnumCharNamesFn' has not been declared
/opt/local/include/unicode/uchar.h:2507: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/uchar.h:2970: error: 'UVersionInfo' has not been declared
/opt/local/include/unicode/uchar.h:2984: warning: 'u_getUnicodeVersion_3_8' initialized and declared 'extern'
/opt/local/include/unicode/uchar.h:2984: error: variable or field 'u_getUnicodeVersion_3_8' declared void
/opt/local/include/unicode/uchar.h:2984: error: 'UVersionInfo' was not declared in this scope
/opt/local/include/unicode/uchar.h:3008: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/uiter.h:32: error: expected constructor, destructor, or type conversion before 'class'
/opt/local/include/unicode/uiter.h:38: error: expected constructor, destructor, or type conversion before 'extern'
/opt/local/include/unicode/ustring.h:490: warning: 'u_strCompareIter_3_8' initialized and declared 'extern'
/opt/local/include/unicode/ustring.h:490: error: 'UCharIterator' was not declared in this scope
/opt/local/include/unicode/ustring.h:490: error: 'iter1' was not declared in this scope
/opt/local/include/unicode/ustring.h:490: error: 'UCharIterator' was not declared in this scope
/opt/local/include/unicode/ustring.h:490: error: 'iter2' was not declared in this scope
/opt/local/include/unicode/ustring.h:490: error: expected primary-expression before 'codePointOrder'
/opt/local/include/unicode/ustring.h:490: error: initializer expression list treated as compound expression
/opt/local/include/unicode/ustring.h:546: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/ustring.h:1003: error: expected `)' before '*' token
/opt/local/include/unicode/ustring.h:1035: warning: 'u_unescapeAt_3_8' initialized and declared 'extern'
/opt/local/include/unicode/ustring.h:1035: error: 'UNESCAPE_CHAR_AT' was not declared in this scope
/opt/local/include/unicode/ustring.h:1036: error: expected primary-expression before '*' token
/opt/local/include/unicode/ustring.h:1036: error: 'offset' was not declared in this scope
/opt/local/include/unicode/ustring.h:1037: error: expected primary-expression before 'length'
/opt/local/include/unicode/ustring.h:1038: error: expected primary-expression before 'void'
/opt/local/include/unicode/ustring.h:1038: error: initializer expression list treated as compound expression
/opt/local/include/unicode/ustring.h:1064: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/ustring.h:1090: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/ustring.h:1137: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/ustring.h:1167: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/ustring.h:1195: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/ustring.h:1221: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/ustring.h:1251: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/ustring.h:1280: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/ustring.h:1323: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/ustring.h:1367: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/ustring.h:1422: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/ustring.h:1449: error: 'UErrorCode' has not been declared
/opt/local/include/unicode/ustring.h:1476: error: 'UErrorCode' has not been declared
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h: In function 'int WTF::Unicode::foldCase(UChar*, int, const UChar*, int, bool*)':
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h:128: error: 'UErrorCode' was not declared in this scope
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h:128: error: expected `;' before 'status'
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h:129: error: 'status' was not declared in this scope
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h:130: error: 'U_SUCCESS' was not declared in this scope
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h: In function 'int WTF::Unicode::toLower(UChar*, int, const UChar*, int, bool*)':
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h:136: error: 'UErrorCode' was not declared in this scope
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h:136: error: expected `;' before 'status'
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h:137: error: 'status' was not declared in this scope
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h:138: error: 'U_FAILURE' was not declared in this scope
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h: In function 'int WTF::Unicode::toUpper(UChar*, int, const UChar*, int, bool*)':
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h:154: error: 'UErrorCode' was not declared in this scope
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h:154: error: expected `;' before 'status'
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h:155: error: 'status' was not declared in this scope
./JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h:156: error: 'U_FAILURE' was not declared in this scope
/opt/local/include/unicode/unorm.h: At global scope:
/opt/local/include/unicode/unorm.h:395: warning: 'unorm_next_3_8' initialized and declared 'extern'
/opt/local/include/unicode/unorm.h:395: error: 'UCharIterator' was not declared in this scope
/opt/local/include/unicode/unorm.h:395: error: 'src' was not declared in this scope
/opt/local/include/unicode/unorm.h:396: error: expected primary-expression before '*' token
/opt/local/include/unicode/unorm.h:396: error: 'dest' was not declared in this scope
/opt/local/include/unicode/unorm.h:396: error: expected primary-expression before 'destCapacity'
/opt/local/include/unicode/unorm.h:397: error: expected primary-expression before 'mode'
/opt/local/include/unicode/unorm.h:397: error: expected primary-expression before 'options'
/opt/local/include/unicode/unorm.h:398: error: expected primary-expression before 'doNormalize'
/opt/local/include/unicode/unorm.h:398: error: expected primary-expression before '*' token
/opt/local/include/unicode/unorm.h:398: error: 'pNeededToNormalize' was not declared in this scope
/opt/local/include/unicode/unorm.h:399: error: expected primary-expression before '*' token
/opt/local/include/unicode/unorm.h:399: error: 'pErrorCode' was not declared in this scope
/opt/local/include/unicode/unorm.h:399: error: initializer expression list treated as compound expression
/opt/local/include/unicode/unorm.h:428: warning: 'unorm_previous_3_8' initialized and declared 'extern'
/opt/local/include/unicode/unorm.h:428: error: 'UCharIterator' was not declared in this scope
/opt/local/include/unicode/unorm.h:428: error: 'src' was not declared in this scope
/opt/local/include/unicode/unorm.h:429: error: expected primary-expression before '*' token
/opt/local/include/unicode/unorm.h:429: error: 'dest' was not declared in this scope
/opt/local/include/unicode/unorm.h:429: error: expected primary-expression before 'destCapacity'
/opt/local/include/unicode/unorm.h:430: error: expected primary-expression before 'mode'
/opt/local/include/unicode/unorm.h:430: error: expected primary-expression before 'options'
/opt/local/include/unicode/unorm.h:431: error: expected primary-expression before 'doNormalize'
/opt/local/include/unicode/unorm.h:431: error: expected primary-expression before '*' token
/opt/local/include/unicode/unorm.h:431: error: 'pNeededToNormalize' was not declared in this scope
/opt/local/include/unicode/unorm.h:432: error: expected primary-expression before '*' token
/opt/local/include/unicode/unorm.h:432: error: 'pErrorCode' was not declared in this scope
/opt/local/include/unicode/unorm.h:432: error: initializer expression list treated as compound expression
/opt/local/include/unicode/ucol.h:471: error: 'UCharIterator' has not been declared
/opt/local/include/unicode/ucol.h:472: error: 'UCharIterator' has not been declared
/opt/local/include/unicode/ucol.h:725: error: 'UCharIterator' has not been declared
make[1]: *** [WebCore/xml/libWebKitGtk_la-XSLTUnicodeSort.lo] Error 1
make: *** [all] Error 2
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Mark Rowe (bdash)
These errors don't make sense to me.
/opt/local/include/unicode/uchar.h:2317:6: warning: "UCONFIG_NO_NORMALIZATION"
ICU's unicode/uchar.h includes unicode/utypes.h, which in turn includes unicode/uconfig.h. uconfig.h then does:
#ifndef UCONFIG_NO_NORMALIZATION
# define UCONFIG_NO_NORMALIZATION 0
Based on this I can't see how uchar.h would later complain that UCONFIG_NO_NORMALIZATION is not defined. Perhaps it is finding a different uconfig.h for some reason? Can you confirm that /opt/local/include/unicode/uconfig.h has the two lines I mentioned above, and perhaps also check to see if that version of uconfig.h is in fact being used?
The Gtk port builds fine for me on Mac OS X and I believe I'm also using the ICU from MacPorts.
Randall Wood
(In reply to comment #1)
> These errors don't make sense to me.
>
> /opt/local/include/unicode/uchar.h:2317:6: warning: "UCONFIG_NO_NORMALIZATION"
>
> ICU's unicode/uchar.h includes unicode/utypes.h, which in turn includes
> unicode/uconfig.h. uconfig.h then does:
>
> #ifndef UCONFIG_NO_NORMALIZATION
> # define UCONFIG_NO_NORMALIZATION 0
>
> Based on this I can't see how uchar.h would later complain that
> UCONFIG_NO_NORMALIZATION is not defined. Perhaps it is finding a different
> uconfig.h for some reason? Can you confirm that
> /opt/local/include/unicode/uconfig.h has the two lines I mentioned above, and
> perhaps also check to see if that version of uconfig.h is in fact being used?
/opt/local/include/unicode/uconfig.h definitely has those lines in it.
> The Gtk port builds fine for me on Mac OS X and I believe I'm also using the
> ICU from MacPorts.
I'm attempting to write a portfile for MacPorts for webkit-gtk. Can you tell me how you're building it (what configure arguments are you passing?) so that I can try replicating that.
Mark Rowe (bdash)
I didn't do anything special. Running "./autogen.sh && make -j4" builds fine for me on Mac OS X 10.5.2 with dependencies installed via MacPorts.
Brent Fulgham
*** This bug has been marked as a duplicate of 17415 ***