RPi-Distro / repo

Issue tracking for the archive.raspberrypi.org repo
37 stars 1 forks source link

[Bullseye] RealVNC requires a rebuild against new libraspberrypi0 #267

Closed MichaIng closed 2 years ago

MichaIng commented 2 years ago

due to the changed shared object file names that got .0 suffixes.

spl237 commented 2 years ago

I can't repeat this - both the Server and Viewer work fine for me. RealVNC have tested themselves and also cannot find a problem. Can you provide any more detail as to what you are doing and what error you are actually seeing?

MichaIng commented 2 years ago

You did test it with the Bullseye suite of archive.raspberrypi.org and its libraspberrypi0?

2021-10-20 13:08:02 root@Testing-ARMv6-Bullseye:~# apt update
Get:1 https://mirror.netcologne.de/raspbian/raspbian bullseye InRelease [15.0 kB]
Get:2 https://archive.raspberrypi.org/debian bullseye InRelease [23.5 kB]
Get:3 https://mirror.netcologne.de/raspbian/raspbian bullseye/main armhf Packages [13.2 MB]
Get:4 https://archive.raspberrypi.org/debian bullseye/main armhf Packages [177 kB]
Fetched 13.4 MB in 17s (814 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
11 packages can be upgraded. Run 'apt list --upgradable' to see them.
2021-10-20 13:09:17 root@Testing-ARMv6-Bullseye:~# apt install libraspberrypi0 realvnc-vnc-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxi6 libxtst6 raspberrypi-bootloader x11-common
Suggested packages:
  avahi-daemon
Recommended packages:
  raspberrypi-kernel cups
The following NEW packages will be installed:
  libraspberrypi0 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxi6 libxtst6 raspberrypi-bootloader realvnc-vnc-server x11-common
0 upgraded, 12 newly installed, 0 to remove and 11 not upgraded.
Need to get 13.4 MB of archives.
After this operation, 64.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 https://archive.raspberrypi.org/debian bullseye/main armhf raspberrypi-bootloader armhf 1:1.20211007-2 [4528 kB]
Get:2 https://mirror.netcologne.de/raspbian/raspbian bullseye/main armhf libxau6 armhf 1:1.0.9-1 [19.1 kB]
Get:3 https://mirror.netcologne.de/raspbian/raspbian bullseye/main armhf libxdmcp6 armhf 1:1.1.2-3 [25.0 kB]
Get:4 https://mirror.netcologne.de/raspbian/raspbian bullseye/main armhf libxcb1 armhf 1.14-3 [136 kB]
Get:5 https://mirror.netcologne.de/raspbian/raspbian bullseye/main armhf libx11-data all 2:1.7.2-1 [311 kB]
Get:6 https://archive.raspberrypi.org/debian bullseye/main armhf libraspberrypi0 armhf 1:2+git20210928~141951+6e8f786-2 [177 kB]
Get:7 https://archive.raspberrypi.org/debian bullseye/main armhf realvnc-vnc-server armhf 6.7.4.43891 [7070 kB]
Get:8 https://mirror.netcologne.de/raspbian/raspbian bullseye/main armhf libx11-6 armhf 2:1.7.2-1 [705 kB]
Get:9 https://mirror.netcologne.de/raspbian/raspbian bullseye/main armhf libxext6 armhf 2:1.3.3-1.1 [47.8 kB]
Get:10 https://mirror.netcologne.de/raspbian/raspbian bullseye/main armhf libxi6 armhf 2:1.7.10-1 [77.9 kB]
Get:11 https://mirror.netcologne.de/raspbian/raspbian bullseye/main armhf x11-common all 1:7.7+22 [252 kB]
Get:12 https://mirror.netcologne.de/raspbian/raspbian bullseye/main armhf libxtst6 armhf 2:1.2.3-1 [26.3 kB]
Fetched 13.4 MB in 4s (3596 kB/s)
...
Setting up realvnc-vnc-server (6.7.4.43891) ...
Updating /etc/pam.d/vncserver
Updating /etc/pam.conf... done
Looking for font path... not found.
/usr/bin/vncserver-x11: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory
/usr/bin/vncserver-x11: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory
Installed systemd unit for VNC Server in Service Mode daemon
Start or stop the service with:
  systemctl (start|stop) vncserver-x11-serviced.service
Mark or unmark the service to be started at boot time with:
  systemctl (enable|disable) vncserver-x11-serviced.service

Installed systemd unit for VNC Server in Virtual Mode daemon
Start or stop the service with:
  systemctl (start|stop) vncserver-virtuald.service
Mark or unmark the service to be started at boot time with:
  systemctl (enable|disable) vncserver-virtuald.service

Processing triggers for libc-bin (2.31-13+rpt2+rpi1) ...
2021-10-20 13:10:36 root@Testing-ARMv6-Bullseye:~# vncserver-virtual
vncserver-virtual: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory
2021-10-20 13:10:50 root@Testing-ARMv6-Bullseye:~# vncserver-x11
vncserver-x11: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory

Due to:

# dpkg -L libraspberrypi0
/.
/lib
/lib/udev
/lib/udev/rules.d
/lib/udev/rules.d/10-local-rpi.rules
/usr
/usr/lib
/usr/lib/arm-linux-gnueabihf
/usr/lib/arm-linux-gnueabihf/libbcm_host.so.0
/usr/lib/arm-linux-gnueabihf/libcontainers.so.0
/usr/lib/arm-linux-gnueabihf/libdebug_sym.so.0
/usr/lib/arm-linux-gnueabihf/libdtovl.so.0
/usr/lib/arm-linux-gnueabihf/libmmal.so.0
/usr/lib/arm-linux-gnueabihf/libmmal_components.so.0
/usr/lib/arm-linux-gnueabihf/libmmal_core.so.0
/usr/lib/arm-linux-gnueabihf/libmmal_util.so.0
/usr/lib/arm-linux-gnueabihf/libmmal_vc_client.so.0
/usr/lib/arm-linux-gnueabihf/libvchiq_arm.so.0
/usr/lib/arm-linux-gnueabihf/libvcos.so.0
/usr/lib/arm-linux-gnueabihf/libvcsm.so.0
/usr/share
/usr/share/doc
/usr/share/doc/libraspberrypi0
/usr/share/doc/libraspberrypi0/README.md
/usr/share/doc/libraspberrypi0/changelog.Debian.gz

The libraries moved from /opt/vc/lib to /usr/lib/arm-linux-gnueabihf, but more importantly they got a .0 suffix, which is why RealVNC dynamic links point to non-existing objects without this suffix. This way it has been aligned with the 64-bit libraspberrypi0, where this was the case for a long time.

XECDesign commented 2 years ago

@spl237 Are RealVNC aware of the issue? The latest build still seems to have the problem.

Not much we can do on our end other than notify them, so I think I'll have to close this one.

MichaIng commented 2 years ago

With libraspberrypi-dev, symlinks /usr/lib/arm-linux-gnueabihf/libxyz.so => /usr/lib/arm-linux-gnueabihf/libxyz.so.0 are provided, so that it works then (the reason why Simon wasn't able to replicate, I guess), but of course a development headers package shouldn't be required for executing a binary.

spl237 commented 2 years ago

Not sure I had previously informed RealVNC about this; I've just emailed them.