help: webkit build error on linux
Hello webkit-dev, i check out the source code of version 25773 from http://svn.webkit.org/repository/webkit/trunk, try to build it, then i got following error: g++ -c -o obj-gnu/webcore_gdk_CSSGrammar.o -I../../../JavaScriptCore -I../.. -I../../bindings/js -I../../bridge -I../../css -I../../DerivedSources/WebCore -I../../dom -I../../editing -I../../ForwardingHeaders/kjs -I../../history -I../../html -I../../include -I../../loader -I../../loader/gdk -I../../loader/icon -I../../page -I../../platform -I../../platform/graphics -I../../platform/graphics/gdk -I../../platform/image-decoders -I../../platform/image-decoders/bmp -I../../platform/image-decoders/gif -I../../platform/image-decoders/ico -I../../platform/image-decoders/jpeg -I../../platform/image-decoders/png -I../../platform/image-decoders/xbm -I../../platform/image-decoders/zlib -I../../platform/network -I../../platform/network/gdk -I../../rendering -I../../xml -DENABLE_XSLT=1 -DLINUX -DUSE_CONSERVATIVE_GC=0 -DHAVE_FUNC_ISNAN -D_THREAD_SAFE -pthread -g -I../../platform/gdk -I../../platform/network/gdk -DBUILDING_GDK__ -DBUILDING_CAIRO__ -Iplatform/gdk -Iplatform/graphics/cairo -DENABLE_XPATH -I/usr/include/libxml2 -I/usr/include/libxml2 -g -O2 -I/usr/include/freetype2 -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 -I/usr/include/cairo -fPIC -DPIC -fno-rtti -fno-exceptions -MTobj-gnu/webcore_gdk_CSSGrammar.o -MF`echo obj-gnu/webcore_gdk_CSSGrammar.o | sed -e 's,\.o$,.d,'` -MD ../../DerivedSources/WebCore/CSSGrammar.cpp /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y: In function 'int WebCore::getPropertyID(const char*, int)': /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:86: error:'findProp': identifier not found /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:90: error:invalid use of undefined type 'const struct WebCore::props' /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:86: error:forward declaration of 'const struct WebCore::props' /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y: In function 'int getValueID(const char*, int)': /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:111: error:'findValue' identifier not found /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:115: error:invalid use of undefined type 'const struct css_value' /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:111: error:forward declaration of 'const struct css_value' make: *** [obj-gnu/webcore_gdk_CSSGrammar.o] error1 and i tried to find the definition of 'findProp' and 'findValue' in the entitre directory, but i failed to find it. also i have found that similiar bugs already reported, with the bug id 9340 and 14841, but no solution found. could you tell me how to fix this problem or how to avoid it? i really appreciate if you could give me some hint. thank you! PS , my building step is like this cd WebKitTools/Scripts sudo ./install-unix-extras cd JavaScriptCore make cd .. cd WebCore/Projects/gdk/ make thank you and regards! michelle
On Fri, Sep 28, 2007 at 08:55:39PM +0800, lan liu wrote:
Hello webkit-dev,
i check out the source code of version 25773 from http://svn.webkit.org/repository/webkit/trunk, try to build it, then i got following error:
g++ -c -o obj-gnu/webcore_gdk_CSSGrammar.o -I../../../JavaScriptCore -I../.. -I../../bindings/js -I../../bridge -I../../css -I../../DerivedSources/WebCore -I../../dom -I../../editing -I../../ForwardingHeaders/kjs -I../../history -I../../html -I../../include -I../../loader -I../../loader/gdk -I../../loader/icon -I../../page -I../../platform -I../../platform/graphics -I../../platform/graphics/gdk -I../../platform/image-decoders -I../../platform/image-decoders/bmp -I../../platform/image-decoders/gif -I../../platform/image-decoders/ico -I../../platform/image-decoders/jpeg -I../../platform/image-decoders/png -I../../platform/image-decoders/xbm -I../../platform/image-decoders/zlib -I../../platform/network -I../../platform/network/gdk -I../../rendering -I../../xml -DENABLE_XSLT=1 -DLINUX -DUSE_CONSERVATIVE_GC=0 -DHAVE_FUNC_ISNAN -D_THREAD_SAFE -pthread -g -I../../platform/gdk -I../../platform/network/gdk -DBUILDING_GDK__ -DBUILDING_CAIRO__ -Iplatform/gdk -Iplatform/graphics/cairo -DENABLE_XPATH -I/usr/include/libxml2 -I/usr/include/libxml2 -g -O2 -I/usr/include/freetype2 -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 -I/usr/include/cairo -fPIC -DPIC -fno-rtti -fno-exceptions -MTobj-gnu/webcore_gdk_CSSGrammar.o -MF`echo obj-gnu/webcore_gdk_CSSGrammar.o | sed -e 's,\.o$,.d,'` -MD ../../DerivedSources/WebCore/CSSGrammar.cpp /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y: In function 'int WebCore::getPropertyID(const char*, int)': /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:86: error:'findProp': identifier not found /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:90: error:invalid use of undefined type 'const struct WebCore::props' /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:86: error:forward declaration of 'const struct WebCore::props' /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y: In function 'int getValueID(const char*, int)': /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:111: error:'findValue' identifier not found /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:115: error:invalid use of undefined type 'const struct css_value' /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:111: error:forward declaration of 'const struct css_value' make: *** [obj-gnu/webcore_gdk_CSSGrammar.o] error1
It looks like you don't have bison installed. You should also install flex if not already installed. Mike
hello Mike and all, i checked my system and found both bison and flex has been installed, the version of bison is GNU bison 2.3, while the flex is 2.5.33, is it the correct one for building webkit? all i misss some other things? my step to build webkit is like this (refer to trunk/Bakefiles/Readme.txt) cd WebKitTools/Scripts sudo ./install-unix-extras cd ../../JavaScriptCore make cd .. cd WebCore/Projects/gdk/ make then at the last step, i got follwoing error. thank you and regards. michelle 2007/9/29, Mike Hommey <mh+webkit@glandium.org>:
On Fri, Sep 28, 2007 at 08:55:39PM +0800, lan liu wrote:
Hello webkit-dev,
i check out the source code of version 25773 from http://svn.webkit.org/repository/webkit/trunk, try to build it, then i got following error:
g++ -c -o obj-gnu/webcore_gdk_CSSGrammar.o -I../../../JavaScriptCore -I../.. -I../../bindings/js -I../../bridge -I../../css -I../../DerivedSources/WebCore -I../../dom -I../../editing -I../../ForwardingHeaders/kjs -I../../history -I../../html -I../../include -I../../loader -I../../loader/gdk -I../../loader/icon -I../../page -I../../platform -I../../platform/graphics -I../../platform/graphics/gdk -I../../platform/image-decoders -I../../platform/image-decoders/bmp -I../../platform/image-decoders/gif -I../../platform/image-decoders/ico -I../../platform/image-decoders/jpeg -I../../platform/image-decoders/png -I../../platform/image-decoders/xbm -I../../platform/image-decoders/zlib -I../../platform/network -I../../platform/network/gdk -I../../rendering -I../../xml -DENABLE_XSLT=1 -DLINUX -DUSE_CONSERVATIVE_GC=0 -DHAVE_FUNC_ISNAN -D_THREAD_SAFE -pthread -g -I../../platform/gdk -I../../platform/network/gdk -DBUILDING_GDK__ -DBUILDING_CAIRO__ -Iplatform/gdk -Iplatform/graphics/cairo -DENABLE_XPATH -I/usr/include/libxml2 -I/usr/include/libxml2 -g -O2 -I/usr/include/freetype2 -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 -I/usr/include/cairo -fPIC -DPIC -fno-rtti -fno-exceptions -MTobj-gnu/webcore_gdk_CSSGrammar.o -MF`echo obj-gnu/webcore_gdk_CSSGrammar.o | sed -e 's,\.o$,.d,'` -MD ../../DerivedSources/WebCore/CSSGrammar.cpp /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y: In function 'int WebCore::getPropertyID(const char*, int)': /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:86: error:'findProp': identifier not found /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:90: error:invalid use of undefined type 'const struct WebCore::props' /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:86: error:forward declaration of 'const struct WebCore::props' /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y: In function 'int getValueID(const char*, int)': /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:111: error:'findValue' identifier not found /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:115: error:invalid use of undefined type 'const struct css_value' /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:111: error:forward declaration of 'const struct css_value' make: *** [obj-gnu/webcore_gdk_CSSGrammar.o] error1
It looks like you don't have bison installed. You should also install flex if not already installed.
Mike
Hi there, The bakefile build system is not used by any current port on trunk. To build the Gtk+ port you should follow the instructions at http://trac.webkit.org/projects/webkit/wiki/BuildingGtk , or to build the Qt port you should look at http://trac.webkit.org/projects/webkit/wiki/BuildingQtOnLinux . You either want to run WebKitTools/Scripts/build-webkit --gtk or WebKitTools/Scripts/build-webkit --qt. Kind regards, Mark Rowe On 29/09/2007, at 11:26, lan liu wrote:
hello Mike and all, i checked my system and found both bison and flex has been installed, the version of bison is GNU bison 2.3, while the flex is 2.5.33, is it the correct one for building webkit? all i misss some other things?
my step to build webkit is like this (refer to trunk/Bakefiles/ Readme.txt) cd WebKitTools/Scripts sudo ./install-unix-extras cd ../../JavaScriptCore make cd .. cd WebCore/Projects/gdk/ make
then at the last step, i got follwoing error.
thank you and regards. michelle
2007/9/29, Mike Hommey < mh+webkit@glandium.org>: On Fri, Sep 28, 2007 at 08:55:39PM +0800, lan liu wrote:
Hello webkit-dev,
i check out the source code of version 25773 from http://svn.webkit.org/repository/webkit/trunk, try to build it, then i got following error:
g++ -c -o obj-gnu/webcore_gdk_CSSGrammar.o -I../../../ JavaScriptCore -I../.. -I../../bindings/js -I../../bridge -I../../css -I../../DerivedSources/WebCore -I../../dom -I../../editing -I../../ForwardingHeaders/kjs -I../../history -I../../html -I../../ include -I../../loader -I../../loader/gdk -I../../loader/icon -I../../page -I../../platform -I../../platform/graphics -I../../platform/ graphics/gdk -I../../platform/image-decoders -I../../platform/image-decoders/bmp -I../../platform/image-decoders/gif -I../../platform/image- decoders/ico -I../../platform/image-decoders/jpeg -I../../platform/image- decoders/png -I../../platform/image-decoders/xbm -I../../platform/image- decoders/zlib -I../../platform/network -I../../platform/network/gdk -I../../ rendering -I../../xml -DENABLE_XSLT=1 -DLINUX -DUSE_CONSERVATIVE_GC=0 -DHAVE_FUNC_ISNAN -D_THREAD_SAFE -pthread -g -I../../platform/gdk -I../../platform/network/gdk -DBUILDING_GDK__ -DBUILDING_CAIRO__ -Iplatform/gdk -Iplatform/graphics/cairo -DENABLE_XPATH -I/usr/include/libxml2 -I/usr/include/libxml2 -g -O2 -I/usr/include/freetype2 -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 -I/usr/include/cairo -fPIC - DPIC -fno-rtti -fno-exceptions -MTobj-gnu/webcore_gdk_CSSGrammar.o - MF`echo obj-gnu/webcore_gdk_CSSGrammar.o | sed -e 's,\.o$,.d,'` -MD ../../DerivedSources/WebCore/CSSGrammar.cpp /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y: In function 'int WebCore::getPropertyID(const char*, int)': /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:86: error:'findProp': identifier not found /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:90: error:invalid use of undefined type 'const struct WebCore::props' /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:86: error:forward declaration of 'const struct WebCore::props' /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y: In function 'int getValueID(const char*, int)': /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:111: error:'findValue' identifier not found /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:115: error:invalid use of undefined type 'const struct css_value' /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:111: error:forward declaration of 'const struct css_value' make: *** [obj-gnu/webcore_gdk_CSSGrammar.o] error1
It looks like you don't have bison installed. You should also install flex if not already installed.
Mike
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo/webkit-dev
On 29/09/2007, at 17:02, Mike Hommey wrote:
On Sat, Sep 29, 2007 at 02:54:59PM +1000, Mark Rowe wrote:
Hi there,
The bakefile build system is not used by any current port on trunk.
Should a bug be filed to get the bakefiles removed from the tree ?
There's a reviewed patch to do just that on <http://bugs.webkit.org/show_bug.cgi?id=13226
.
- Mark
participants (3)
-
lan liu
-
Mark Rowe
-
Mike Hommey