[Webkit-unassigned] [Bug 151140] New: [GTK] undefined reference to dlopen, dlsym and dlclose in bmalloc/Environment.cpp
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 11 10:27:41 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=151140
Bug ID: 151140
Summary: [GTK] undefined reference to dlopen, dlsym and dlclose
in bmalloc/Environment.cpp
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Other
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: akiss at inf.u-szeged.hu
When building webkit (or simply javascriptcore) on my aarch64 linux setup (with Tools/Scripts/build-{webkit,jsc} --gtk), I get undefined reference errors:
[820/823] Linking CXX shared library lib/libjavascriptcoregtk-4.0.so.18.3.0
FAILED: : && /usr/bin/c++ -fPIC -std=c++11 -mfix-cortex-a53-835769 -std=c++11 -mfix-cortex-a53-835769 -O3 -DNDEBUG -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-strict-aliasing -fno-rtti -Wl,--no-undefined -Wl,--no-undefined -L/home/akiss/devel/WebKit/WebKitBuild/DependenciesGTK/Root/lib -shared -Wl,-soname,libjavascriptcoregtk-4.0.so.18 -o lib/libjavascriptcoregtk-4.0.so.18.3.0 @CMakeFiles/JavaScriptCore.rsp && :
lib/../Source/bmalloc/CMakeFiles/bmalloc.dir/bmalloc/Environment.cpp.o: In function `bmalloc::Environment::computeIsBmallocEnabled()':
Environment.cpp:(.text+0xa8): undefined reference to `dlopen'
Environment.cpp:(.text+0xbc): undefined reference to `dlsym'
Environment.cpp:(.text+0xc8): undefined reference to `dlclose'
collect2: error: ld returned 1 exit status
It turns out that the symbols are referenced from the isASanEnabled() function and -ldl is indeed missing from the linker's command line.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151111/6aa26346/attachment.html>
More information about the webkit-unassigned
mailing list