The problem is that the build is pulling in Cygwin's pthread.h, rather than the Win32 version of pthreads that is required. It's not clear to me exactly why that would be, but chances are that you've not correctly followed the instructions on how to set up the Windows build environment. They start at <http://webkit.org/building/tools.html>. Be sure to follow them closely.

- Mark

On 2008-12-24, at 03:36, yin xiaobing wrote:

somting wrong in sys/types.h, which cause the pthread.h header value types "undeclared"

anyone has this issue fixed?


3>C:\cygwin\usr\include\pthread.h(81) : error C2143: syntax error : missing ','
before '*'
3>C:\cygwin\usr\include\pthread.h(82) : error C4430: missing type specifier - in
t assumed. Note: C++ does not support default-int
3>C:\cygwin\usr\include\pthread.h(82) : error C2143: syntax error : missing ','
before '*'
3>C:\cygwin\usr\include\pthread.h(83) : error C2059: syntax error : ')' 3>C:\cygwin\usr\include\pthread.h(84) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(85) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(86) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(87) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(88) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(104) : error C2065: 'pthread_t' : undeclared i
dentifier
3>C:\cygwin\usr\include\pthread.h(127) : error C2065: 'pthread_cond_t' : undecla
red identifier
3>C:\cygwin\usr\include\pthread.h(127) : error C2059: syntax error : ')' 3>C:\cygwin\usr\include\pthread.h(128) : error C2059: syntax error : ')' 3>C:\cygwin\usr\include\pthread.h(129) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(130) : error C2059: syntax error : ')' 3>C:\cygwin\usr\include\pthread.h(131) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(133) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(134) : error C2065: 'pthread_condattr_t' : und
eclared identifier
3>C:\cygwin\usr\include\pthread.h(134) : error C2059: syntax error : ')' 3>C:\cygwin\usr\include\pthread.h(135) : error C4430: missing type specifier - i
nt assumed. Note: C++ does not support default-int
3>C:\cygwin\usr\include\pthread.h(135) : error C2143: syntax error : missing ','
 before '*'
3>C:\cygwin\usr\include\pthread.h(136) : error C2059: syntax error : ')' 3>C:\cygwin\usr\include\pthread.h(137) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(139) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(142) : error C2078: too many initializers 3>C:\cygwin\usr\include\pthread.h(144) : error C2062: type 'int' unexpected 3>C:\cygwin\usr\include\pthread.h(145) : error C2065: 'pthread_key_t' : undeclar
ed identifier
3>C:\cygwin\usr\include\pthread.h(146) : error C2062: type 'void' unexpected 3>C:\cygwin\usr\include\pthread.h(147) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(151) : error C2065: 'pthread_mutex_t' : undecl
ared identifier
3>C:\cygwin\usr\include\pthread.h(151) : error C2059: syntax error : ')' 3>C:\cygwin\usr\include\pthread.h(152) : error C4430: missing type specifier - i
nt assumed. Note: C++ does not support default-int
3>C:\cygwin\usr\include\pthread.h(152) : error C2143: syntax error : missing ','
 before '*'
3>C:\cygwin\usr\include\pthread.h(153) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(154) : error C2059: syntax error : ')' 3>C:\cygwin\usr\include\pthread.h(155) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(156) : error C2059: syntax error : ')' 3>C:\cygwin\usr\include\pthread.h(157) : error C2059: syntax error : ')' 3>C:\cygwin\usr\include\pthread.h(158) : error C2065: 'pthread_mutexattr_t' : un
declared identifier
3>C:\cygwin\usr\include\pthread.h(158) : error C2059: syntax error : ')' 3>C:\cygwin\usr\include\pthread.h(159) : error C4430: missing type specifier - i
nt assumed. Note: C++ does not support default-int
3>C:\cygwin\usr\include\pthread.h(159) : error C2143: syntax error : missing ','
 before '*'
3>C:\cygwin\usr\include\pthread.h(160) : error C4430: missing type specifier - i
nt assumed. Note: C++ does not support default-int
3>C:\cygwin\usr\include\pthread.h(160) : error C2143: syntax error : missing ','
 before '*'
3>C:\cygwin\usr\include\pthread.h(161) : error C4430: missing type specifier - i
nt assumed. Note: C++ does not support default-int
3>C:\cygwin\usr\include\pthread.h(161) : error C2143: syntax error : missing ','
 before '*'
3>C:\cygwin\usr\include\pthread.h(162) : error C4430: missing type specifier - i
nt assumed. Note: C++ does not support default-int
3>C:\cygwin\usr\include\pthread.h(162) : error C2143: syntax error : missing ','
 before '*'
3>C:\cygwin\usr\include\pthread.h(163) : error C2059: syntax error : ')' 3>C:\cygwin\usr\include\pthread.h(164) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(165) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(166) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(167) : error C2059: syntax error : ',' 3>C:\cygwin\usr\include\pthread.h(170) : error C2065: 'pthread_rwlock_t' : undec
lared identifier
3>C:\cygwin\usr\include\pthread.h(170) : error C2065: 'rwlock' : undeclared iden
tifier
3>C:\cygwin\usr\include\pthread.h(170) : fatal error C1903: unable to recover fr
om previous error(s); stopping compilation
3>JITPropertyAccess.cpp

===========================================================
 WebKit is now built. To run Safari with this newly-built
 code, use the "WebKit/WebKitTools/Scripts/run-safari" script.

 NOTE: WebKit has been built with SVG support enabled.
 Safari will have SVG viewing capabilities.
 Your build supports the following (optional) SVG features:
  * Basic SVG animation.
  * SVG foreign object.
  * SVG fonts.
  * SVG as image.
  * SVG <use> support.
===========================================================

y...@orion ~
$ WebKit/WebKitTools/Scripts/build-webkit --debug
Subroutine main::tmpnam redefined at /home/Yin/WebKit/WebKitTools/ Scripts/webkit
dirs.pm line 33
Subroutine main::tmpfile redefined at /home/Yin/WebKit/WebKitTools/ Scripts/webki
tdirs.pm line 33
Checking mod-date of WebKitSupportLibrary.zip...
Current WebKitSupportLibrary is up to date
Building results into: /home/Yin/WebKit/WebKitBuild
WEBKITOUTPUTDIR is set to: c:\cygwin\home\Yin\WebKit\WebKitBuild
WEBKITLIBRARIESDIR is set to: c:\cygwin\home\Yin\WebKit \WebKitLibraries\win /cygdrive/c/Program Files/Microsoft Visual Studio 8/Common7/IDE/ devenv.com win\W
ebKit.vcproj\WebKit.sln /build Debug

Microsoft (R) Visual Studio Version 8.0.50727.867.
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

The evaluation period for Visual Studio Trial Edition ends in 21 days.
1>------ Build started: Project: JavaScriptCoreGenerated, Configuration: Release
 Win32 ------
1>Performing Makefile project actions
1> xcopy /y/d/e/i "..\..\..\WebKitLibraries\win\tools" "c:\cygwin \home\Yin\WebKi
t\WebKitLibraries\win\tools"
1>Cannot perform a cyclic copy
1>0 File(s) copied
1> touch "c:\cygwin\home\Yin\WebKit\WebKitBuild\buildfailed"
1> bash build-generated-files.sh "c:\cygwin\home\Yin\WebKit \WebKitBuild" "c:\cyg
win\home\Yin\WebKit\WebKitLibraries\win"
1>make: Nothing to be done for `all'.
1> mkdir 2>NUL "c:\cygwin\home\Yin\WebKit\WebKitBuild\include \JavaScriptCore\Jav
aScriptCore"
1> xcopy /y /d "..\..\API\APICast.h" "c:\cygwin\home\Yin\WebKit \WebKitBuild\incl
ude\JavaScriptCore\JavaScriptCore"
1>0 File(s) copied
1> xcopy /y /d "..\..\API\JavaScript.h" "c:\cygwin\home\Yin\WebKit \WebKitBuild\i
nclude\JavaScriptCore\JavaScriptCore"
1>0 File(s) copied
1> xcopy /y /d "..\..\API\JSBase.h" "c:\cygwin\home\Yin\WebKit \WebKitBuild\inclu
de\JavaScriptCore\JavaScriptCore"
1>0 File(s) copied
1> xcopy /y /d "..\..\API\JSContextRef.h" "c:\cygwin\home\Yin\WebKit \WebKitBuild
\include\JavaScriptCore\JavaScriptCore"
1>0 File(s) copied
1> xcopy /y /d "..\..\API\JSObjectRef.h" "c:\cygwin\home\Yin\WebKit \WebKitBuild\
include\JavaScriptCore\JavaScriptCore"
1>0 File(s) copied
1> xcopy /y /d "..\..\API\JSStringRef.h" "c:\cygwin\home\Yin\WebKit \WebKitBuild\
include\JavaScriptCore\JavaScriptCore"
1>0 File(s) copied
1> xcopy /y /d "..\..\API\JSStringRefCF.h" "c:\cygwin\home\Yin\WebKit \WebKitBuil
d\include\JavaScriptCore\JavaScriptCore"
1>0 File(s) copied
1> xcopy /y /d "..\..\API\JSStringRefBSTR.h" "c:\cygwin\home\Yin \WebKit\WebKitBu
ild\include\JavaScriptCore\JavaScriptCore"
1>0 File(s) copied
1> xcopy /y /d "..\..\API\JSValueRef.h" "c:\cygwin\home\Yin\WebKit \WebKitBuild\i
nclude\JavaScriptCore\JavaScriptCore"
1>0 File(s) copied
1> xcopy /y /d "..\..\API\JavaScriptCore.h" "c:\cygwin\home\Yin \WebKit\WebKitBui
ld\include\JavaScriptCore\JavaScriptCore"
1>0 File(s) copied
1> xcopy /y /d "..\..\API\JSRetainPtr.h" "c:\cygwin\home\Yin\WebKit \WebKitBuild\
include\JavaScriptCore\JavaScriptCore"
1>0 File(s) copied
1> xcopy /y /d "..\..\API\OpaqueJSString.h" "c:\cygwin\home\Yin \WebKit\WebKitBui
ld\include\JavaScriptCore\JavaScriptCore"
1>0 File(s) copied
1> xcopy /y /d "..\..\API\WebKitAvailability.h" "c:\cygwin\home\Yin \WebKit\WebKi
tBuild\include\JavaScriptCore\JavaScriptCore"
1>0 File(s) copied
1> del "c:\cygwin\home\Yin\WebKit\WebKitBuild\include\JavaScriptCore \stdbool.h" "c:\cygwin\home\Yin\WebKit\WebKitBuild\include\JavaScriptCore \stdint.h" 1>Could Not Find c:\cygwin\home\Yin\WebKit\WebKitBuild\include \JavaScriptCore\st
dbool.h
1> del "c:\cygwin\home\Yin\WebKit\WebKitBuild\buildfailed"
1>Build log was saved at "file://c:\cygwin\home\Yin\WebKit \WebKitBuild\obj\JavaS
criptCoreGenerated\Release\BuildLog.htm"
1>JavaScriptCoreGenerated - 0 error(s), 0 warning(s)
2>------ Build started: Project: WTF, Configuration: Debug Win32 ------
2>Performing Pre-Build Event...
2>Compiling...
2>Assertions.cpp
2>CollatorDefault.cpp
2>CollatorICU.cpp
2>dtoa.cpp
2>FastMalloc.cpp
2>C:\cygwin\usr\include\pthread.h(77) : error C2065: 'pthread_attr_t' : undeclar
ed identifier
2>C:\cygwin\usr\include\pthread.h(77) : error C2059: syntax error : ')' 2>C:\cygwin\usr\include\pthread.h(78) : error C4430: missing type specifier - in
t assumed. Note: C++ does not support default-int
2>C:\cygwin\usr\include\pthread.h(78) : error C2143: syntax error : missing ','
before '*'
2>C:\cygwin\usr\include\pthread.h(79) : error C4430: missing type specifier - in
t assumed. Note: C++ does not support default-int
2>C:\cygwin\usr\include\pthread.h(79) : error C2143: syntax error : missing ','
before '*'
2>C:\cygwin\usr\include\pthread.h(80) : error C4430: missing type specifier - in
t assumed. Note: C++ does not support default-int
2>C:\cygwin\usr\include\pthread.h(80) : error C2143: syntax error : missing ','
before '*'
2>C:\cygwin\usr\include\pthread.h(81) : error C4430: missing type specifier - in
t assumed. Note: C++ does not support default-int
2>C:\cygwin\usr\include\pthread.h(81) : error C2143: syntax error : missing ','
before '*'
2>C:\cygwin\usr\include\pthread.h(82) : error C4430: missing type specifier - in
t assumed. Note: C++ does not support default-int
2>C:\cygwin\usr\include\pthread.h(82) : error C2143: syntax error : missing ','
before '*'
2>C:\cygwin\usr\include\pthread.h(83) : error C2059: syntax error : ')' 2>C:\cygwin\usr\include\pthread.h(84) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(85) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(86) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(87) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(88) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(104) : error C2065: 'pthread_t' : undeclared i
dentifier
2>C:\cygwin\usr\include\pthread.h(127) : error C2065: 'pthread_cond_t' : undecla
red identifier
2>C:\cygwin\usr\include\pthread.h(127) : error C2059: syntax error : ')' 2>C:\cygwin\usr\include\pthread.h(128) : error C2059: syntax error : ')' 2>C:\cygwin\usr\include\pthread.h(129) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(130) : error C2059: syntax error : ')' 2>C:\cygwin\usr\include\pthread.h(131) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(133) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(134) : error C2065: 'pthread_condattr_t' : und
eclared identifier
2>C:\cygwin\usr\include\pthread.h(134) : error C2059: syntax error : ')' 2>C:\cygwin\usr\include\pthread.h(135) : error C4430: missing type specifier - i
nt assumed. Note: C++ does not support default-int
2>C:\cygwin\usr\include\pthread.h(135) : error C2143: syntax error : missing ','
 before '*'
2>C:\cygwin\usr\include\pthread.h(136) : error C2059: syntax error : ')' 2>C:\cygwin\usr\include\pthread.h(137) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(139) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(142) : error C2078: too many initializers 2>C:\cygwin\usr\include\pthread.h(144) : error C2062: type 'int' unexpected 2>C:\cygwin\usr\include\pthread.h(145) : error C2065: 'pthread_key_t' : undeclar
ed identifier
2>C:\cygwin\usr\include\pthread.h(146) : error C2062: type 'void' unexpected 2>C:\cygwin\usr\include\pthread.h(147) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(151) : error C2065: 'pthread_mutex_t' : undecl
ared identifier
2>C:\cygwin\usr\include\pthread.h(151) : error C2059: syntax error : ')' 2>C:\cygwin\usr\include\pthread.h(152) : error C4430: missing type specifier - i
nt assumed. Note: C++ does not support default-int
2>C:\cygwin\usr\include\pthread.h(152) : error C2143: syntax error : missing ','
 before '*'
2>C:\cygwin\usr\include\pthread.h(153) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(154) : error C2059: syntax error : ')' 2>C:\cygwin\usr\include\pthread.h(155) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(156) : error C2059: syntax error : ')' 2>C:\cygwin\usr\include\pthread.h(157) : error C2059: syntax error : ')' 2>C:\cygwin\usr\include\pthread.h(158) : error C2065: 'pthread_mutexattr_t' : un
declared identifier
2>C:\cygwin\usr\include\pthread.h(158) : error C2059: syntax error : ')' 2>C:\cygwin\usr\include\pthread.h(159) : error C4430: missing type specifier - i
nt assumed. Note: C++ does not support default-int
2>C:\cygwin\usr\include\pthread.h(159) : error C2143: syntax error : missing ','
 before '*'
2>C:\cygwin\usr\include\pthread.h(160) : error C4430: missing type specifier - i
nt assumed. Note: C++ does not support default-int
2>C:\cygwin\usr\include\pthread.h(160) : error C2143: syntax error : missing ','
 before '*'
2>C:\cygwin\usr\include\pthread.h(161) : error C4430: missing type specifier - i
nt assumed. Note: C++ does not support default-int
2>C:\cygwin\usr\include\pthread.h(161) : error C2143: syntax error : missing ','
 before '*'
2>C:\cygwin\usr\include\pthread.h(162) : error C4430: missing type specifier - i
nt assumed. Note: C++ does not support default-int
2>C:\cygwin\usr\include\pthread.h(162) : error C2143: syntax error : missing ','
 before '*'
2>C:\cygwin\usr\include\pthread.h(163) : error C2059: syntax error : ')' 2>C:\cygwin\usr\include\pthread.h(164) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(165) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(166) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(167) : error C2059: syntax error : ',' 2>C:\cygwin\usr\include\pthread.h(170) : error C2065: 'pthread_rwlock_t' : undec
lared identifier
2>C:\cygwin\usr\include\pthread.h(170) : error C2065: 'rwlock' : undeclared iden
tifier
2>C:\cygwin\usr\include\pthread.h(170) : fatal error C1903: unable to recover fr
om previous error(s); stopping compilation
2>HashTable.cpp
2>MainThread.cpp
2>OwnPtrWin.cpp

===========================================================
 WebKit is now built. To run Safari with this newly-built
 code, use the "WebKit/WebKitTools/Scripts/run-safari" script.

 NOTE: WebKit has been built with SVG support enabled.
 Safari will have SVG viewing capabilities.
 Your build supports the following (optional) SVG features:
  * Basic SVG animation.
  * SVG foreign object.
  * SVG fonts.
  * SVG as image.
  * SVG <use> support.
===========================================================
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to