Skip to main content
Topic: libvncserver requires libsystemd[-dummy]? (Read 1568 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

libvncserver requires libsystemd[-dummy]?

I've been using x11vnc for years now (across different distros), and only today I started getting the error

Code: [Select]
x11vnc: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory

but i dont (and didnt) have libsystemd-dummy installed (and x11vnc itself does not require it)

if I try to build the package, I get error
Code: [Select]
/usr/bin/ld: warning: libsystemd.so.0, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.1/../../../../lib/libvncserver.so, not found (try using -rpath or -rpath-link)

ldd shows
Code: [Select]
ldd /usr/bin/x11vnc             
        linux-vdso.so.1 (0x00007fff0a5eb000)
        libvncserver.so.1 => /usr/lib/libvncserver.so.1 (0x00007f005010e000)
        libvncclient.so.1 => /usr/lib/libvncclient.so.1 (0x00007f004feef000)
        libssl.so.1.1 => /usr/lib/libssl.so.1.1 (0x00007f004fc85000)
        libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x00007f004f808000)
        libXtst.so.6 => /usr/lib/libXtst.so.6 (0x00007f004f602000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f004f3f0000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00007f004f1ed000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007f004efe2000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007f004eddc000)
        libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007f004ebd9000)
        libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x00007f004e9d6000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f004e697000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0x00007f004e486000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007f004e0cb000)
        libsystemd.so.0 => not found
        libnsl.so.2 => /usr/lib/libnsl.so.2 (0x00007f004deb3000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f004dc95000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007f004da7e000)
        libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007f004d848000)
        libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007f004d5e0000)
        libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007f004d3c9000)
        libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007f004d0ad000)
        libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f004ce8d000)
        libgnutls.so.30 => /usr/lib/libgnutls.so.30 (0x00007f004cb22000)
        /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f0050946000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f004c91e000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f004c713000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f004c4ea000)
        libtirpc.so.3 => /usr/lib/libtirpc.so.3 (0x00007f004c2b9000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007f004bf25000)
        libp11-kit.so.0 => /usr/lib/libp11-kit.so.0 (0x00007f004bbf8000)
        libunistring.so.2 => /usr/lib/libunistring.so.2 (0x00007f004b877000)
        libtasn1.so.6 => /usr/lib/libtasn1.so.6 (0x00007f004b664000)
        libnettle.so.6 => /usr/lib/libnettle.so.6 (0x00007f004b42d000)
        libhogweed.so.4 => /usr/lib/libhogweed.so.4 (0x00007f004b1f7000)
        libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007f004af64000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f004ad60000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f004ab5a000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007f004a90c000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007f004a624000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007f004a3f1000)
        libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0x00007f004a1ed000)
        libffi.so.6 => /usr/lib/libffi.so.6 (0x00007f0049fe4000)
        libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007f0049dd7000)
        libkeyutils.so.1 => /usr/lib/libkeyutils.so.1 (0x00007f0049bd3000)

so all things point to libvncserver.  This was a recent upgrade from extra/libvncserver, so I rebuilt this from source, with libsystemd-dummy not present, and now x11vnc works again.   libvncserver does not show a dependence on systemd either (on the PKGBUILD) and built fine, so would this be a candidate to be added to gremlins/world (or galaxy) ?

note that x11vnc does have a systemd service file
Code: [Select]
install -Dm644 ../service "${pkgdir}/usr/lib/systemd/system/x11vnc.service"
but this wouldnt affect the binary itself

Re: libvncserver requires libsystemd[-dummy]?

Reply #1
The latest package from [extra] is compiled against libsystemd (for no apparent reason except fuckyouverymuch). Our build server is currently building a clean one.

Re: libvncserver requires libsystemd[-dummy]?

Reply #2
Hello, I also have this problem. Systemd asks me to install x11vnc.