Bug 151140 - bmalloc: Add libdl dependency
Summary: bmalloc: Add libdl dependency
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Other Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-11 10:27 PST by Akos Kiss
Modified: 2015-11-11 17:02 PST (History)
2 users (show)

See Also:


Attachments
Proposed patch (1012 bytes, patch)
2015-11-11 10:32 PST, Akos Kiss
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Akos Kiss 2015-11-11 10:27:41 PST
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.
Comment 1 Akos Kiss 2015-11-11 10:32:16 PST
Created attachment 265304 [details]
Proposed patch
Comment 2 Csaba Osztrogonác 2015-11-11 10:37:51 PST
Comment on attachment 265304 [details]
Proposed patch

LGTM, r=me
Comment 3 WebKit Commit Bot 2015-11-11 12:02:54 PST
Comment on attachment 265304 [details]
Proposed patch

Rejecting attachment 265304 [details] from commit-queue.

akiss@inf.u-szeged.hu does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/contributors.json.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/contributors.json by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your committer rights.
Comment 4 WebKit Commit Bot 2015-11-11 12:05:48 PST
Comment on attachment 265304 [details]
Proposed patch

Rejecting attachment 265304 [details] from commit-queue.

akiss@inf.u-szeged.hu does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/contributors.json.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/contributors.json by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your committer rights.
Comment 5 WebKit Commit Bot 2015-11-11 17:02:24 PST
Comment on attachment 265304 [details]
Proposed patch

Clearing flags on attachment: 265304

Committed r192336: <http://trac.webkit.org/changeset/192336>
Comment 6 WebKit Commit Bot 2015-11-11 17:02:26 PST
All reviewed patches have been landed.  Closing bug.