[webkit-dev] Webkit for GTK compilation error on Linux Fedora 8 platform

Srinivas Rao M Hamse msrinirao at gmail.com
Wed Dec 26 01:42:13 PST 2007


Hi,

 I am trying to build WebKit-r28924 for gtk on Fedora 8.

gcc --version used is gcc (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33)

when i give :
cd WebKitTools/Scripts
./build-webkit --gtk
The compilation goes well for some times before it stops giving:

g++ -c -pipe -D_REENTRANT -I/usr/local/include -Wall -W -Wcast-align
-Wchar-subscripts -Wformat-security -Wmissing-format-attribute
-Wpointer-arith -Wwrite-strings -Wno-format-y2k -Wno-unused-parameter
-Wundef -fno-exceptions -fno-rtti -O2 -I/usr/include/cairo
-I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/gtk-
2.0-I/usr/lib/gtk-
2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libxml2 -I/usr/include/libxml2 -fvisibility=hidden
-fvisibility-inlines-hidden -fPIC  -DBUILDING_CAIRO__=1 -DBUILDING_GTK__=1
-DUSE_SYSTEM_MALLOC -DNDEBUG -DBUILD_WEBKIT -DENABLE_DATABASE=1
-DENABLE_ICONDATABASE=1 -DENABLE_XPATH=1 -DENABLE_XSLT=1 -DENABLE_SVG=1
-DENABLE_VIDEO=0 -DWTF_CHANGES=1 -DBUILDING_GTK__
-I/usr/share/qt4/mkspecs/default -I../../../WebCore
-I../../../../WebKit-r28924 -I../../../WebCore/platform/gtk
-I../../../WebCore/platform/network/curl
-I../../../WebCore/platform/graphics/cairo
-I/home/srinirao/docs/webkit/WebKit-r28924/WebCore/loader/gtk
-I../../../WebCore/page/gtk -I../../../WebKit/gtk/WebView
-I../../../WebKit/gtk/WebCoreSupport -I../../../JavaScriptCore
-I../../../JavaScriptCore/kjs -I../../../JavaScriptCore/bindings
-I../../../JavaScriptCore/bindings/c -I../../../JavaScriptCore/wtf
-I../../../JavaScriptCore/ForwardingHeaders -I../../../WebCore
-I../../../WebCore/ForwardingHeaders -I../../../WebCore/platform
-I../../../WebCore/platform/network -I../../../WebCore/platform/graphics
-I../../../WebCore/loader -I../../../WebCore/page -I../../../WebCore/css
-I../../../WebCore/dom -I../../../WebCore/bridge -I../../../WebCore/editing
-I../../../WebCore/rendering -I../../../WebCore/history
-I../../../WebCore/xml -I../../../WebCore/html -Itmp -Itmp
-I../../../JavaScriptCore -I../../../JavaScriptCore/kjs
-I../../../JavaScriptCore/bindings -I../../../JavaScriptCore/bindings/c
-I../../../JavaScriptCore/wtf -I../../../JavaScriptCore/pcre
-I/home/srinirao/docs/webkit/WebKit-r28924/WebKitBuild/Release/JavaScriptCore/kjs/tmp
-I../../../WebCore/platform/gtk -I../../../WebCore/platform/graphics/gtk
-I../../../WebCore/platform/graphics/cairo
-I../../../WebCore/svg/graphics/cairo
-I../../../WebCore/platform/network/curl
-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/home/srinirao/docs/webkit/WebKit-r28924/WebCore/loader/gtk
-I../../../WebCore/page/gtk -I../../../WebKit/gtk/WebCoreSupport
-I../../../WebKit/gtk/WebView -I../../../WebCore
-I../../../WebCore/ForwardingHeaders -I../../../../WebKit-r28924
-I../../../JavaScriptCore/kjs -I../../../JavaScriptCore/bindings
-I../../../JavaScriptCore/wtf -I../../../WebCore/platform
-I../../../WebCore/platform/network -I../../../WebCore/platform/graphics
-I../../../WebCore/svg/graphics -I../../../WebCore/svg/graphics/filters
-I../../../WebCore/platform/sql -I../../../WebCore/platform/text
-I../../../WebCore/storage -I../../../WebCore/loader
-I../../../WebCore/loader/icon -I../../../WebCore/css -I../../../WebCore/dom
-I../../../WebCore/page -I../../../WebCore/bridge -I../../../WebCore/editing
-I../../../WebCore/rendering -I../../../WebCore/history
-I../../../WebCore/xml -I../../../WebCore/html
-I../../../WebCore/bindings/js -I../../../WebCore/svg
-I../../../WebCore/platform/image-decoders -I/usr/X11R6/include
-I../../../WebCore -I. -o tmp/pcre_tables.o
../../../JavaScriptCore/pcre/pcre_tables.cpp
../../../JavaScriptCore/pcre/pcre_tables.cpp:71:24: error: chartables.c: No
such file or directory
make[1]: *** [tmp/pcre_tables.o] Error 1
make[1]: Leaving directory
`/home/srinirao/docs/webkit/WebKit-r28924/WebKitBuild/Release/WebCore'
make: *** [sub-WebCore-make_default-ordered] Error 2


After going through the Makefiles and directories, i learnt that i should
give a make in
WebKitBuild/Release/JavaScriptCore/kjs to generate chartables.c file. After
this i continue my build

cd WebKitTools/Scripts
./build-webkit --gtk

But it breaks again giving the following compilation errors:


g++ -c -pipe -D_REENTRANT -I/usr/local/include -Wall -W -Wcast-align
-Wchar-subscripts -Wformat-security -Wmissing-format-attribute
-Wpointer-arith -Wwrite-strings -Wno-format-y2k -Wno-unused-parameter
-Wundef -fno-exceptions -fno-rtti -O2 -I/usr/include/cairo
-I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/gtk-
2.0-I/usr/lib/gtk-
2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libxml2 -I/usr/include/libxml2 -fvisibility=hidden
-fvisibility-inlines-hidden -fPIC  -DBUILDING_CAIRO__=1 -DBUILDING_GTK__=1
-DUSE_SYSTEM_MALLOC -DNDEBUG -DBUILD_WEBKIT -DENABLE_DATABASE=1
-DENABLE_ICONDATABASE=1 -DENABLE_XPATH=1 -DENABLE_XSLT=1 -DENABLE_SVG=1
-DENABLE_VIDEO=0 -DWTF_CHANGES=1 -DBUILDING_GTK__
-I/usr/share/qt4/mkspecs/default -I../../../WebCore
-I../../../../WebKit-r28924 -I../../../WebCore/platform/gtk
-I../../../WebCore/platform/network/curl
-I../../../WebCore/platform/graphics/cairo
-I/home/srinirao/docs/webkit/WebKit-r28924/WebCore/loader/gtk
-I../../../WebCore/page/gtk -I../../../WebKit/gtk/WebView
-I../../../WebKit/gtk/WebCoreSupport -I../../../JavaScriptCore
-I../../../JavaScriptCore/kjs -I../../../JavaScriptCore/bindings
-I../../../JavaScriptCore/bindings/c -I../../../JavaScriptCore/wtf
-I../../../JavaScriptCore/ForwardingHeaders -I../../../WebCore
-I../../../WebCore/ForwardingHeaders -I../../../WebCore/platform
-I../../../WebCore/platform/network -I../../../WebCore/platform/graphics
-I../../../WebCore/loader -I../../../WebCore/page -I../../../WebCore/css
-I../../../WebCore/dom -I../../../WebCore/bridge -I../../../WebCore/editing
-I../../../WebCore/rendering -I../../../WebCore/history
-I../../../WebCore/xml -I../../../WebCore/html -Itmp -Itmp
-I../../../JavaScriptCore -I../../../JavaScriptCore/kjs
-I../../../JavaScriptCore/bindings -I../../../JavaScriptCore/bindings/c
-I../../../JavaScriptCore/wtf -I../../../JavaScriptCore/pcre
-I../JavaScriptCore/kjs/tmp -I../../../WebCore/platform/gtk
-I../../../WebCore/platform/graphics/gtk
-I../../../WebCore/platform/graphics/cairo
-I../../../WebCore/svg/graphics/cairo
-I../../../WebCore/platform/network/curl
-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/home/srinirao/docs/webkit/WebKit-r28924/WebCore/loader/gtk
-I../../../WebCore/page/gtk -I../../../WebKit/gtk/WebCoreSupport
-I../../../WebKit/gtk/WebView -I../../../WebCore
-I../../../WebCore/ForwardingHeaders -I../../../../WebKit-r28924
-I../../../JavaScriptCore/kjs -I../../../JavaScriptCore/bindings
-I../../../JavaScriptCore/wtf -I../../../WebCore/platform
-I../../../WebCore/platform/network -I../../../WebCore/platform/graphics
-I../../../WebCore/svg/graphics -I../../../WebCore/svg/graphics/filters
-I../../../WebCore/platform/sql -I../../../WebCore/platform/text
-I../../../WebCore/storage -I../../../WebCore/loader
-I../../../WebCore/loader/icon -I../../../WebCore/css -I../../../WebCore/dom
-I../../../WebCore/page -I../../../WebCore/bridge -I../../../WebCore/editing
-I../../../WebCore/rendering -I../../../WebCore/history
-I../../../WebCore/xml -I../../../WebCore/html
-I../../../WebCore/bindings/js -I../../../WebCore/svg
-I../../../WebCore/platform/image-decoders -I/usr/X11R6/include
-I../../../WebCore -I. -o tmp/AllInOneFile.o
../../../JavaScriptCore/kjs/AllInOneFile.cpp
In file included from ../../../JavaScriptCore/kjs/AllInOneFile.cpp:32:
../../../JavaScriptCore/kjs/array_object.cpp:26:30: error:
array_object.lut.h: No such file or directory
In file included from ../../../JavaScriptCore/kjs/AllInOneFile.cpp:39:
../../../JavaScriptCore/kjs/date_object.cpp:24:29: error: date_object.lut.h:
No such file or directory
../../../JavaScriptCore/kjs/AllInOneFile.cpp:45:23: error: grammar.cpp: No
such file or directory
In file included from ../../../JavaScriptCore/kjs/AllInOneFile.cpp:52:
../../../JavaScriptCore/kjs/lexer.cpp:48:23: error: lexer.lut.h: No such
file or directory
In file included from ../../../JavaScriptCore/kjs/AllInOneFile.cpp:55:
../../../JavaScriptCore/kjs/math_object.cpp:24:29: error: math_object.lut.h:
No such file or directory
In file included from ../../../JavaScriptCore/kjs/AllInOneFile.cpp:58:
../../../JavaScriptCore/kjs/number_object.cpp:25:31: error:
number_object.lut.h: No such file or directory
In file included from ../../../JavaScriptCore/kjs/AllInOneFile.cpp:67:
../../../JavaScriptCore/kjs/regexp_object.cpp:23:31: error:
regexp_object.lut.h: No such file or directory
In file included from ../../../JavaScriptCore/kjs/AllInOneFile.cpp:69:
../../../JavaScriptCore/kjs/string_object.cpp:24:31: error:
string_object.lut.h: No such file or directory
../../../JavaScriptCore/kjs/array_object.cpp:39: error: 'arrayTable' was not
declared in this scope
../../../JavaScriptCore/kjs/array_object.cpp: In member function 'virtual
bool KJS::ArrayPrototype::getOwnPropertySlot(KJS::ExecState*, const
KJS::Identifier&, KJS::PropertySlot&)':
../../../JavaScriptCore/kjs/array_object.cpp:73: error: 'arrayTable' was not
declared in this scope
../../../JavaScriptCore/kjs/date_object.cpp: At global scope:
../../../JavaScriptCore/kjs/date_object.cpp:374: error: 'dateTable' was not
declared in this scope
../../../JavaScriptCore/kjs/date_object.cpp: In member function 'virtual
bool KJS::DatePrototype::getOwnPropertySlot(KJS::ExecState*, const
KJS::Identifier&, KJS::PropertySlot&)':
../../../JavaScriptCore/kjs/date_object.cpp:436: error: 'dateTable' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp: At global scope:
../../../JavaScriptCore/kjs/lexer.cpp:50: error: 'YYLTYPE' does not name a
type
../../../JavaScriptCore/kjs/lexer.cpp: In member function 'int
KJS::Lexer::lex()':
 ../../../JavaScriptCore/kjs/lexer.cpp:516: error: 'kjsyylloc' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:529: error: 'mainTable' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:538: error: 'kjsyylval' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:539: error: 'IDENT' was not declared
in this scope
../../../JavaScriptCore/kjs/lexer.cpp:545: error: 'FUNCTION' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:548: error: 'CONTINUE' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:548: error: 'BREAK' was not declared
in this scope
../../../JavaScriptCore/kjs/lexer.cpp:549: error: 'RETURN' was not declared
in this scope
../../../JavaScriptCore/kjs/lexer.cpp:549: error: 'THROW' was not declared
in this scope
 ../../../JavaScriptCore/kjs/lexer.cpp:553: error: 'kjsyylval' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:554: error: 'STRING' was not declared
in this scope
../../../JavaScriptCore/kjs/lexer.cpp:558: error: 'NUMBER' was not declared
in this scope
 ../../../JavaScriptCore/kjs/lexer.cpp: In member function 'int
KJS::Lexer::matchPunctuator(int, int, int, int)':
../../../JavaScriptCore/kjs/lexer.cpp:625: error: 'URSHIFTEQUAL' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:628: error: 'STREQ' was not declared
in this scope
 ../../../JavaScriptCore/kjs/lexer.cpp:631: error: 'STRNEQ' was not declared
in this scope
../../../JavaScriptCore/kjs/lexer.cpp:634: error: 'URSHIFT' was not declared
in this scope
../../../JavaScriptCore/kjs/lexer.cpp:637: error: 'LSHIFTEQUAL' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:640: error: 'RSHIFTEQUAL' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:643: error: 'LE' was not declared in
this scope
../../../JavaScriptCore/kjs/lexer.cpp:646: error: 'GE' was not declared in
this scope
 ../../../JavaScriptCore/kjs/lexer.cpp:649: error: 'NE' was not declared in
this scope
../../../JavaScriptCore/kjs/lexer.cpp:653: error: 'AUTOPLUSPLUS' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:655: error: 'PLUSPLUS' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:659: error: 'AUTOMINUSMINUS' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:661: error: 'MINUSMINUS' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:664: error: 'EQEQ' was not declared in
this scope
../../../JavaScriptCore/kjs/lexer.cpp:667: error: 'PLUSEQUAL' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:670: error: 'MINUSEQUAL' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:673: error: 'MULTEQUAL' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:676: error: 'DIVEQUAL' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:679: error: 'ANDEQUAL' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:682: error: 'XOREQUAL' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:685: error: 'MODEQUAL' was not
declared in this scope
../../../JavaScriptCore/kjs/lexer.cpp:688: error: 'OREQUAL' was not declared
in this scope
../../../JavaScriptCore/kjs/lexer.cpp:691: error: 'LSHIFT' was not declared
in this scope
../../../JavaScriptCore/kjs/lexer.cpp:694: error: 'RSHIFT' was not declared
in this scope
 ../../../JavaScriptCore/kjs/lexer.cpp:697: error: 'AND' was not declared in
this scope
../../../JavaScriptCore/kjs/lexer.cpp:700: error: 'OR' was not declared in
this scope
../../../JavaScriptCore/kjs/math_object.cpp: At global scope:
../../../JavaScriptCore/kjs/math_object.cpp:35: error: 'mathTable' was not
declared in this scope
../../../JavaScriptCore/kjs/math_object.cpp: In member function 'virtual
bool KJS::MathObjectImp::getOwnPropertySlot(KJS::ExecState*, const
KJS::Identifier&, KJS::PropertySlot&)':
../../../JavaScriptCore/kjs/math_object.cpp:78: error: 'mathTable' was not
declared in this scope
../../../JavaScriptCore/kjs/number_object.cpp: At global scope:
../../../JavaScriptCore/kjs/number_object.cpp:413: error: 'numberTable' was
not declared in this scope
../../../JavaScriptCore/kjs/number_object.cpp: In member function 'virtual
bool KJS::NumberObjectImp::getOwnPropertySlot(KJS::ExecState*, const
KJS::Identifier&, KJS::PropertySlot&)':
../../../JavaScriptCore/kjs/number_object.cpp:436: error: 'numberTable' was
not declared in this scope
../../../JavaScriptCore/kjs/regexp_object.cpp: At global scope:
../../../JavaScriptCore/kjs/regexp_object.cpp:128: error: 'RegExpImpTable'
was not declared in this scope
../../../JavaScriptCore/kjs/regexp_object.cpp: In member function 'virtual
bool KJS::RegExpImp::getOwnPropertySlot(KJS::ExecState*, const
KJS::Identifier&, KJS::PropertySlot&)':
../../../JavaScriptCore/kjs/regexp_object.cpp:153: error: 'RegExpImpTable'
was not declared in this scope
../../../JavaScriptCore/kjs/regexp_object.cpp: In member function 'virtual
void KJS::RegExpImp::put(KJS::ExecState*, const KJS::Identifier&,
KJS::JSValue*, int)':
../../../JavaScriptCore/kjs/regexp_object.cpp:177: error: 'RegExpImpTable'
was not declared in this scope
../../../JavaScriptCore/kjs/regexp_object.cpp: At global scope:
../../../JavaScriptCore/kjs/regexp_object.cpp:249: error:
'RegExpObjectImpTable' was not declared in this scope
../../../JavaScriptCore/kjs/regexp_object.cpp: In member function 'virtual
bool KJS::RegExpObjectImp::getOwnPropertySlot(KJS::ExecState*, const
KJS::Identifier&, KJS::PropertySlot&)':
../../../JavaScriptCore/kjs/regexp_object.cpp:370: error:
'RegExpObjectImpTable' was not declared in this scope
../../../JavaScriptCore/kjs/regexp_object.cpp: In member function 'virtual
void KJS::RegExpObjectImp::put(KJS::ExecState*, const KJS::Identifier&,
KJS::JSValue*, int)':
../../../JavaScriptCore/kjs/regexp_object.cpp:415: error:
'RegExpObjectImpTable' was not declared in this scope
../../../JavaScriptCore/kjs/string_object.cpp: At global scope:
../../../JavaScriptCore/kjs/string_object.cpp:134: error: 'stringTable' was
not declared in this scope
../../../JavaScriptCore/kjs/string_object.cpp: In member function 'virtual
bool KJS::StringPrototype::getOwnPropertySlot(KJS::ExecState*, const
KJS::Identifier&, KJS::PropertySlot&)':
../../../JavaScriptCore/kjs/string_object.cpp:185: error: 'stringTable' was
not declared in this scope
make[1]: *** [tmp/AllInOneFile.o] Error 1
make[1]: Leaving directory
`/home/srinirao/docs/webkit/WebKit-r28924/WebKitBuild/Release/WebCore'
make: *** [sub-WebCore-make_default-ordered] Error 2



Please tell me if i am missing anything trivial here. Should i have to run
any scripts before giving compilation ?
Does anyone in this forum know how to resolve this compilation errors ?.
Please help.

regards,

Srinivas Rao. M <http://msrinirao.blogspot.com/>



-- 
Srinivas Rao M  Hamse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webkit.org/pipermail/webkit-dev/attachments/20071226/824a325e/attachment-0001.html


More information about the webkit-dev mailing list