Bug#1040205: libclang-16-dev: ships broken symlinks (/usr/lib/llvm-16/lib/libclang.so -> ../../x86_64-linux-gnu/libclang-16.so.16)
Héctor Orón Martínez
hector.oron at gmail.com
Mon Jul 3 13:29:35 BST 2023
Package: libclang-16-dev
Version: 1:16.0.6-3
Severity: normal
X-Debbugs-Cc: zumbi at debian.org
Hello,
When calling:
python3 -c 'from ctypes import *; import clang.cindex; config =
clang.cindex.Config(); verfunc = config.lib.clang_getClangVersi
on;
verfunc.restype = c_char_p ; print(verfunc())'
is unable to load libclang-16.so...
clang.cindex.LibclangError: libclang-16.so: cannot open shared
object file: No such file or directory. To provide a path to libclang
use Config.set_library_path() or Config.set_library_file().
this turns out to be broken naming for shared object libraries:
# ls -l /usr/lib/llvm-16/lib/libclang.so /usr/lib/llvm-16/lib/libclang-16.so
lrwxrwxrwx 1 root root 40 Jun 27 06:58
/usr/lib/llvm-16/lib/libclang-16.so ->
../../x86_64-linux-gnu/libclang-16.so.16
lrwxrwxrwx 1 root root 40 Jun 27 06:58
/usr/lib/llvm-16/lib/libclang.so ->
../../x86_64-linux-gnu/libclang-16.so.16
However the provided libraries are versioned 16.so.1:
# dpkg -L libclang1-16 | grep so
/usr/lib/x86_64-linux-gnu/libclang-16.so.16.0.6
/usr/lib/llvm-16/lib/libclang-16.so.1
/usr/lib/llvm-16/lib/libclang.so.1
/usr/lib/x86_64-linux-gnu/libclang-16.so.1
Please fix symlinks on development package.
Regards
--
Héctor Orón -.. . -... .. .- -. -.. . ...- . .-.. --- .--. . .-.
More information about the Pkg-llvm-team
mailing list