[Webkit-unassigned] [Bug 16406] New: [Gtk] JavaScriptCore needs -lpthread
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 11 19:16:46 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=16406
Summary: [Gtk] JavaScriptCore needs -lpthread
Product: WebKit
Version: 525+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Gtk
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: sanxiyn at gmail.com
JavaScriptCore build is missing -lpthread. This results in a build failure
like:
tmp/collector.o: In function `KJS::currentThreadStackBase()':
collector.cpp:(.text+0x203): undefined reference to `pthread_getattr_np'
collector.cpp:(.text+0x21b): undefined reference to `pthread_attr_getstack'
tmp/collector.o: In function
`KJS::Collector::markCurrentThreadConservatively()':
collector.cpp:(.text+0x825): undefined reference to `pthread_getattr_np'
collector.cpp:(.text+0x83d): undefined reference to `pthread_attr_getstack'
collect2: ld returned 1 exit status
In Gtk port, JavaScriptCore is built using compiler flags from icu-config.
Normally, icu-config output includes -lpthread, like:
-lpthread -lm -L/usr/lib -licui18n -licuuc -licudata -lpthread -lm
But one doesn't need to link against libpthread when one is using only ICU
functions. So as a part of general campaign to reduce spurious library
dependency, Debian's icu-config doesn't output -lpthread starting from 3.8-5.
Then the output looks like:
-lm -L/usr/lib -licui18n -licuuc -licudata -lm
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list