Pure-D / serve-d

D LSP server (dlang language server protocol server)
MIT License
200 stars 48 forks source link

Broken on Arch Linux libphobos is too new #254

Closed DemonInTheCloset closed 2 years ago

DemonInTheCloset commented 2 years ago

serve-d fails to start with a dynamic linking error:

$ serve-d
serve-d: error while loading shared libraries: libphobos2-ldc-shared.so.99: cannot open shared object file: No such file or directory

ldd shows:

$ ldd $(which serve-d)
        linux-vdso.so.1 => linux-vdso.so.1 (0x00007ffed2d0f000)
        libphobos2-ldc-shared.so.99 => not found
        libdruntime-ldc-shared.so.99 => not found
        libm.so.6 => /usr/lib/libm.so.6 (0x00007f0097405000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f00973e5000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007f00971fe000)
        /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f0097e04000)

libphobos2-ldc-shared.so.99 and libdruntime-ldc-shared.so.99 are not present in /usr/lib, instead you can find the .100 version of those libraries.

WebFreak001 commented 2 years ago

is this serve-d the precompiled serve-d from github? that one works on my arch machine

DemonInTheCloset commented 2 years ago

I'm using the AUR package https://aur.archlinux.org/packages/serve-d it uses the .tar.gz source code from the 0.7.4 release to compile the package.

It was built against an older version of libphobos. I rebuilt it and it's working again, sorry for the inconvenience.