[webkit-dev] Build Webkit for wx

Kevin Ollivier kevino at theolliviers.com
Mon Dec 17 17:24:53 PST 2007


Hi Rodrigo,

On Dec 17, 2007, at 11:46 AM, Rodrigo Melo wrote:

> Hello folks, I'm facing some issues to build webkit for wx.  The  
> output shows some link libraries errors as shown below.
>
> ~/mydev/WebKitBuild/Release/libjscore.a(jscore_collector.o): In  
> function `KJS::currentThreadStackBase()':
> ~/mydev/JavaScriptCore/kjs/collector.cpp:350: undefined reference to  
> `pthread_getattr_np'
> ~/mydev/JavaScriptCore/kjs/collector.cpp:352: undefined reference to  
> `pthread_attr_getstack'
> ~/mydev/WebKitBuild/Release/libjscore.a(jscore_function.o): In  
> function `WTF::Unicode::isSeparatorSpace(int)':
> ~/mydev/JavaScriptCore/./wtf/unicode/icu/UnicodeIcu.h:172: undefined  
> reference to `u_charType_3_6'
> ~/mydev/WebKitBuild/Release/libjscore.a(jscore_lexer.o): In function  
> `WTF::Unicode::category(int)':
> ~/mydev/JavaScriptCore/./wtf/unicode/icu/UnicodeIcu.h:197: undefined  
> reference to `u_charType_3_6'
> ~/mydev/WebKitBuild/Release/libjscore.a(jscore_nodes2string.o): In  
> function `WTF::Unicode::isPrintableChar(int)':
> ~/mydev/JavaScriptCore/./wtf/unicode/icu/UnicodeIcu.h:177: undefined  
> reference to `u_isprint_3_6'
> ~/mydev/WebKitBuild/Release/libjscore.a(jscore_string_object.o): In  
> function `WTF::Unicode::toUpper(unsigned short*, int, unsigned short  
> const*, int, bool*)':
> ~/mydev/JavaScriptCore/./wtf/unicode/icu/UnicodeIcu.h:155: undefined  
> reference to `u_strToUpper_3_6'
> ~/mydev/WebKitBuild/Release/libjscore.a(jscore_string_object.o): In  
> function `WTF::Unicode::toLower(unsigned short*, int, unsigned short  
> const*, int, bool*)':
> ~/mydev/JavaScriptCore/./wtf/unicode/icu/UnicodeIcu.h:137: undefined  
> reference to `u_strToLower_3_6'
> collect2: ld returned 1 exit status
> make: *** [~/mydev/WebKitBuild/Release/testkjs] Error 1
> make: Leaving directory `~/mydev/JavaScriptCore'
>
>
> Anyone has already got this issue? Any idea?

I just did a svn update and built on Ubuntu Gutsy successfully, so I'm  
fairly certain that with a clean tree and the right dependencies, you  
should be able to perform a successful build. The u_* symbols are ICU- 
related, and for the wx build the ICU libs are gotten by using `icu- 
config --ldflags` on Linux. What happens when you run that command on  
your box?

For me, it returns several ICU libs, and also has -lpthread, so that  
probably explains why the pthread symbols are missing for you too.

Thanks,

Kevin

>
> Thanks in advance
>
> --
> romelo
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-dev



More information about the webkit-dev mailing list