libclang is not built

Bug #785665 reported by smlx
48
This bug affects 9 people
Affects Status Importance Assigned to Milestone
clang (Debian)
Fix Released
Unknown
clang (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: clang

This package should provide libclang.so but for some reason it is not included. I presume this is a packaging bug because the same package in other distros provides libclang.so. For example, fedora:
http://rpmfind.net//linux/RPM/fedora/updates/testing/15/i386/clang-2.8-11.fc15.i686.html

Revision history for this message
Sylvestre Ledru (sylvestre) wrote :

Why should we provide this library ?

Revision history for this message
smlx (sml) wrote :

Well my use case is this popular vim script 'clang complete', which provides code completion in vim:
http://www.vim.org/scripts/script.php?script_id=3302

Using the library rather than the command-line tool apparently provides much faster completion.

Is there a specific reason not to provide the library?

Revision history for this message
Jari Bakken (jari-bakken) wrote :

+1 for including this library (I'd like to build tools on top of it).

Revision history for this message
Micah Gersten (micahg) wrote :

Setting this to triaged as we have a bug in Debian for the same thing.

Changed in clang (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Changed in clang (Debian):
status: Unknown → New
Revision history for this message
Nadav (nadavvin) wrote :
Changed in clang (Debian):
status: New → Fix Released
Revision history for this message
markcnz (mark-catley) wrote :

Could someone pull this into precise? Cheers

Revision history for this message
Sylvestre Ledru (sylvestre) wrote :

fixed in 2.9-13

Changed in clang (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Gustav Hartvigsson (gustav-hartvigsson) wrote :

Ok bun now present in ubuntu 11.10

there is no libclang.so file installed when you install clang package...
and there in no other way to install it as I can see.

It is not rely a problem, right now, but clang_complete throws errors that libclang.so in not present:
<pre>
"main.cpp" 27L, 441C
Fel upptäcktes vid bearbetning av function <SNR>8_ClangCompleteInit..<SNR>8_initClangCompletePython:
rad 14:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/gego/.vim/plugin/libclang.py", line 1, in <module>
    from clang.cindex import *
  File "/home/gego/.vim/plugin/clang/cindex.py", line 91, in <module>
    lib = get_cindex_library()
  File "/home/gego/.vim/plugin/clang/cindex.py", line 83, in get_cindex_library
    return cdll.LoadLibrary(path)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libclang.so: kan inte öppna delad objektfil: Filen eller katalogen finns inte
rad 15:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'initClangComplete' is not defined
rad 18:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'WarmupCache' is not defined
Tryck RETUR eller skriv kommando för att fortsätta
</pre>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.