<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>151140</bug_id>
          
          <creation_ts>2015-11-11 10:27:41 -0800</creation_ts>
          <short_desc>bmalloc: Add libdl dependency</short_desc>
          <delta_ts>2015-11-11 17:02:26 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Akos Kiss">akiss</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1141149</commentid>
    <comment_count>0</comment_count>
    <who name="Akos Kiss">akiss</who>
    <bug_when>2015-11-11 10:27:41 -0800</bug_when>
    <thetext>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: : &amp;&amp; /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  &amp;&amp; :
lib/../Source/bmalloc/CMakeFiles/bmalloc.dir/bmalloc/Environment.cpp.o: In function `bmalloc::Environment::computeIsBmallocEnabled()&apos;:
Environment.cpp:(.text+0xa8): undefined reference to `dlopen&apos;
Environment.cpp:(.text+0xbc): undefined reference to `dlsym&apos;
Environment.cpp:(.text+0xc8): undefined reference to `dlclose&apos;
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&apos;s command line.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1141153</commentid>
    <comment_count>1</comment_count>
      <attachid>265304</attachid>
    <who name="Akos Kiss">akiss</who>
    <bug_when>2015-11-11 10:32:16 -0800</bug_when>
    <thetext>Created attachment 265304
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1141154</commentid>
    <comment_count>2</comment_count>
      <attachid>265304</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-11-11 10:37:51 -0800</bug_when>
    <thetext>Comment on attachment 265304
Proposed patch

LGTM, r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1141188</commentid>
    <comment_count>3</comment_count>
      <attachid>265304</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-11-11 12:02:54 -0800</bug_when>
    <thetext>Comment on attachment 265304
Proposed patch

Rejecting attachment 265304 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1141190</commentid>
    <comment_count>4</comment_count>
      <attachid>265304</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-11-11 12:05:48 -0800</bug_when>
    <thetext>Comment on attachment 265304
Proposed patch

Rejecting attachment 265304 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1141297</commentid>
    <comment_count>5</comment_count>
      <attachid>265304</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-11-11 17:02:24 -0800</bug_when>
    <thetext>Comment on attachment 265304
Proposed patch

Clearing flags on attachment: 265304

Committed r192336: &lt;http://trac.webkit.org/changeset/192336&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1141298</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-11-11 17:02:26 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>265304</attachid>
            <date>2015-11-11 10:32:16 -0800</date>
            <delta_ts>2015-11-11 17:02:24 -0800</delta_ts>
            <desc>Proposed patch</desc>
            <filename>fix-bmalloc-libdl.patch</filename>
            <type>text/plain</type>
            <size>1012</size>
            <attacher name="Akos Kiss">akiss</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9ibWFsbG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