Rip-Rip/clang_complete — Issue #126: libclang: symbol not found error
Author: slarew
Created: 2012-02-10 06:26:10+00:00
State: open

Starting with the commit "Merge branch 'tobig-master'" (sha:60ab2ac) I run into problems when using clang_complete with the Xcode 4.2.1 supplied libclang.dylib. The error message upon loading vim with clang_complete is as follows:

> Error detected while processing function 11_ClangCompleteInit..11_init
> ClangCompletePython:
> line 14:
> Traceback (most recent call last):
> File "", line 1, in
> File "/Users/**/.vim/plugin/libclang.py", line 1, in
> from clang.cindex import *
> File "/Users/**/.vim/plugin/clang/cindex.py", line 1653, in
> CursorKind_is_attribute = lib.clang_isAttribute
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.
> 7/ctypes/__init__.py", line 366, in __getattr__
> func = self.__getitem__(name)
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.
> 7/ctypes/__init__.py", line 371, in __getitem__
> func = self._FuncPtr((name_or_ordinal, self))
> AttributeError: dlsym(0x7ff68bcbaae0, clang_isAttribute): symbol not found
> line 15:
> Traceback (most recent call last):
> File "", line 1, in
> NameError: name 'initClangComplete' is not defined
> line 18:
> Traceback (most recent call last):
> File "", line 1, in
> NameError: name 'WarmupCache' is not defined

It would appear that clang_complete is expecting to load the symbol "clang_isAttribute" but failed. Am I missing something? Is the clang 3.0 (apple) not new enough?