<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - libclang missing symbols" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24183&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=P_4YA43Bq2jXKWP5wIAmRcLVla6YucAF29g_VB6Wavo&s=Ro_7aJXjOA8KUjAPpRV0rHy4fULWN1b9uXTxBWVlm3Q&e=">24183</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>libclang missing symbols
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libclang
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>joe@roback.cc
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>klimek@google.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>shared library libclang is missing symbols.

On Darwin via MacPorts via clang-3.6.1

$ nm /opt/local/libexec/llvm-3.6/lib/libclang.a | grep clang_CompileCommand 
00000000000002d3 T _clang_CompileCommand_getArg
000000000000028f T _clang_CompileCommand_getDirectory
000000000000039e T _clang_CompileCommand_getMappedSourceContent
0000000000000345 T _clang_CompileCommand_getMappedSourcePath
00000000000002b4 T _clang_CompileCommand_getNumArgs
0000000000000326 T _clang_CompileCommand_getNumMappedSources
000000000000020c T _clang_CompileCommands_dispose
0000000000000255 T _clang_CompileCommands_getCommand
0000000000000237 T _clang_CompileCommands_getSize

$ nm /opt/local/libexec/llvm-3.6/lib/libclang.dylib | grep clang_CompileCommand 
0000000000021888 T _clang_CompileCommand_getArg
0000000000021844 T _clang_CompileCommand_getDirectory
0000000000021869 T _clang_CompileCommand_getNumArgs
00000000000217c1 T _clang_CompileCommands_dispose
000000000002180a T _clang_CompileCommands_getCommand
00000000000217ec T _clang_CompileCommands_getSize

Missing are

000000000000039e T _clang_CompileCommand_getMappedSourceContent
0000000000000345 T _clang_CompileCommand_getMappedSourcePath
0000000000000326 T _clang_CompileCommand_getNumMappedSources

---

On Linux, compiled from trunk clang 3.8

$ objdump -T /opt/clang/lib/libclang.so | grep clang_CompileCommand
000000000036ad40 g    DF .text    000000000000002c  Base       
clang_CompileCommand_getDirectory
000000000036acf0 g    DF .text    0000000000000043  Base       
clang_CompileCommands_getCommand
000000000036ad70 g    DF .text    000000000000001b  Base       
clang_CompileCommand_getNumArgs
000000000036ad90 g    DF .text    000000000000003c  Base       
clang_CompileCommand_getArg
000000000036a990 g    DF .text    0000000000000328  Base       
clang_CompileCommands_dispose
000000000036acc0 g    DF .text    0000000000000023  Base       
clang_CompileCommands_getSize

$ nm /opt/clang/lib/libclang.a | grep clang_CompileCommand
0000000000000000 T clang_CompileCommand_getArg
0000000000000000 T clang_CompileCommand_getDirectory
0000000000000000 T clang_CompileCommand_getMappedSourceContent
0000000000000000 T clang_CompileCommand_getMappedSourcePath
0000000000000000 T clang_CompileCommand_getNumArgs
0000000000000000 T clang_CompileCommand_getNumMappedSources
0000000000000000 T clang_CompileCommands_dispose
0000000000000000 T clang_CompileCommands_getCommand
0000000000000000 T clang_CompileCommands_getSize

They are missing from libclang.exports file.
${SRC}/tools/clang/tools/libclang/libclang.exports</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>