Re: [webkit-dev] help: webkit build error on linux

2007-09-28 Thread Mark Rowe

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 < [EMAIL PROTECTED]>:
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


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] help: webkit build error on linux

2007-09-28 Thread lan liu
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 <[EMAIL PROTECTED]>:
>
> 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


Re: [webkit-dev] Threading issues regarding Netscape API plugins in WebKit

2007-09-28 Thread Timothy Hatcher
WebKit does not implement NPN_PluginThreadAsyncCall. A plugin could  
spawn another thread, but it can not call JavaScript (or any other API  
call) from that other thread.


On Sep 28, 2007, at 10:26 AM, Song Yuan wrote:
Are plugins implemented by using Netscape APIs in WebKit thread  
safe? Does Netscape APIs in WebKit have similar APIs like  
NPN_PluginThreadAsyncCall (refer to http://developer.mozilla.org/en/docs/NPN_PluginThreadAsyncCall) 
 in Gecko SDK in Mozilla? Will a new thread pawned from plugin main  
thread be able to invoke any JavaScript methods in browser?




— Timothy Hatcher


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Threading issues regarding Netscape API plugins in WebKit

2007-09-28 Thread Darin Adler

On Sep 28, 2007, at 10:26 AM, Song Yuan wrote:
Does Netscape APIs in WebKit have similar APIs like  
NPN_PluginThreadAsyncCall (refer to http://developer.mozilla.org/en/docs/NPN_PluginThreadAsyncCall) 
 in Gecko SDK in Mozilla?



No.

Is this in shipping versions of Firefox? I had the impression this was  
just invented and was planned for a future version.
Will a new thread pawned from plugin main thread be able to invoke  
any JavaScript methods in browser?




This may work, but has not been extensively tested. So it's probably  
not a good idea to use this in production code, but it's something you  
could experiment with.


The JavaScript engine has support for use from multiple threads  
because of its use in proxy auto-configuration files.


-- Darin

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] Threading issues regarding Netscape API plugins in WebKit

2007-09-28 Thread Song Yuan
Hi,

Are plugins implemented by using Netscape APIs in WebKit thread safe? Does
Netscape APIs in WebKit have similar APIs like NPN_PluginThreadAsyncCall
(refer to  
http://developer.mozilla.org/en/docs/NPN_PluginThreadAsyncCall) in Gecko SDK
in Mozilla? Will a new thread pawned from plugin main thread be able to
invoke any JavaScript methods in browser?

Thanks in advance!

/Song

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] help: webkit build error on linux

2007-09-28 Thread Mike Hommey
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


[webkit-dev] help: webkit build error on linux

2007-09-28 Thread lan liu
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
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev