<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [GTK] undefined reference to dlopen, dlsym and dlclose in bmalloc/Environment.cpp"
href="https://bugs.webkit.org/show_bug.cgi?id=151140">151140</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[GTK] undefined reference to dlopen, dlsym and dlclose in bmalloc/Environment.cpp
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>WebKit Misc.
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>akiss@inf.u-szeged.hu
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>