OP:
output of the following as root:
pkg info | grep -i mesa
if it does not show mesa-libs installed, do the following at root:
pkg install mesa-libs
Looking at what packages depend on mesa-libs:
pkg query %rn-%rv mesa-libs
on my system it shows xorg-server, mesa-dri, chromium, sdl2.
So perhaps mesa-libs didn't build correctly upstream?
pkg info | grep -i mesa
mesa-dri-20.2.3_2 OpenGL hardware acceleration drivers for DRI2+
mesa-libs-20.2.3_1 OpenGL libraries that support GLX and EGL clients
pkg install mesa-libs
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Interesting.
How about
pkg which /usr/local/lib/libgbm.so.1
that should return mesa-libs.
ls -ltr /usr/local/lib/libgbm.so.1
just to make sure it exists.
pkg which /usr/local/lib/libgbm.so.1 /usr/local/lib/libgbm.so.1 was installed by package mesa-libs-20.2.3
Interesting, "this" system is Intel i915 and freebsd-version shows 13.0-RELEASE-p3 pkg info | grep chrom shows chromium-91.0.4472.114_1.I have an Nvidia card. Maybe it hasn't been swallowed by libglvnd yet.Code:pkg which /usr/local/lib/libgbm.so.1 /usr/local/lib/libgbm.so.1 was installed by package mesa-libs-20.2.3
(wasat@plasma ~)$ pkg which /usr/local/lib/libgbm.so.1
/usr/local/lib/libgbm.so.1 was installed by package mesa-libs-20.2.3_1
(wasat@plasma ~)$ pkg query %rn-%rv mesa-libs
sdl2-2.0.12_5
xwayland-devel-21.0.99.1.42
xorg-server-1.20.11_3,1
mesa-dri-20.2.3_2
(wasat@plasma ~)$ ls -ltr /usr/local/lib/libgbm.so.1*
-rwxr-xr-x 1 root wheel 60688 Jul 4 00:09 /usr/local/lib/libgbm.so.1.0.0
lrwxr-xr-x 1 root wheel 15 Jul 4 00:09 /usr/local/lib/libgbm.so.1 -> libgbm.so.1.0.0
(wasat@plasma ~)$ pkg info mesa-libs |head -n 1
mesa-libs-20.2.3_1
(wasat@plasma ~)$ pkg search mesa-libs
mesa-libs-20.2.3_1 OpenGL libraries that support GLX and EGL clients
(wasat@plasma ~)$ freebsd-version -kru
13.0-RELEASE-p3
13.0-RELEASE-p3
13.0-RELEASE-p3
This is what I got with a fresh install using 3rd quarter quarterly packages, but after upgrading my 2nd quarter quarterly package set, the file disappeared. The following is from a similar 2nd quarterly package set, in which I installed the full kde5 meta-port instead of a stripped down plasma5-plasma install --- and, notably, which I have not yet upgraded to the 3rd quarter packages:Vull that's similar to what I've got on my system; exception is xwayland-devel.
OP looks to have mesa-libs installed so the libgbm should be there.
ls -ltr /usr/local/lib/libgbm*
would tell us.
root@plasma:~ # mount /dev/ada0p13 /mnt
root@plasma:~ # ls -ltr /mnt/usr/local/lib/libgbm*
-rwxr-xr-x 1 root wheel 60688 Jun 3 00:06 /mnt/usr/local/lib/libgbm.so.1.0.0
lrwxr-xr-x 1 root wheel 15 Jun 3 00:06 /mnt/usr/local/lib/libgbm.so.1 -> libgbm.so.1.0.0
lrwxr-xr-x 1 root wheel 11 Jun 3 00:06 /mnt/usr/local/lib/libgbm.so -> libgbm.so.1
root@plasma:~ # umount /mnt
root@plasma:~ # mount /dev/ada0p12 /mnt
root@plasma:~ # ls -ltr /mnt/usr/local/lib/libgbm*
ls: No match.
root@plasma:~ #
This file definitely belongs to mesa-libs. The solution appears to be to remove and reinstall graphics/mesa-libs (and nvidia-driver, if you use it).As you can see, the indicated libgbm* files just disappeared after the upgrade.
It might be related to the timing of my upgrades. I've suspected for various reasons that I may have upgraded too soon after the start of the quarter, and before all of the packages involved had been added to the repo. For example, I upgraded three, and each time, additional packages appeared.Interesting. I've updated to Q3 pkgs and haven't seen the problem. just weird
I'll try that too on my broken plasma5-plasma install and report back ASAP.This file definitely belongs to mesa-libs. The solution appears to be to remove and reinstall graphics/mesa-libs (and nvidia-driver, if you use it).
Interesting.
How about
pkg which /usr/local/lib/libgbm.so.1
that should return mesa-libs.
ls -ltr /usr/local/lib/libgbm.so.1
just to make sure it exists.
pkg which /usr/local/lib/libgbm.so.1
/usr/local/lib/libgbm.so.1 was installed by package mesa-libs-20.2.3_1
ls -ltr /usr/local/lib/libgbm.so.1
ls: /usr/local/lib/libgbm.so.1: No such file or directory
This file definitely belongs to mesa-libs. The solution appears to be to remove and reinstall graphics/mesa-libs (and nvidia-driver, if you use it).
pkg install -f mesa-libs chromium
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 2 package(s) will be affected (of 0 checked):
Installed packages to be REINSTALLED:
chromium-91.0.4472.114_1
mesa-libs-20.2.3_1
Number of packages to be reinstalled: 2
Proceed with this action? [y/N]: y
[1/2] Reinstalling mesa-libs-20.2.3_1...
[1/2] Extracting mesa-libs-20.2.3_1: 100%
[2/2] Reinstalling chromium-91.0.4472.114_1...
[2/2] Extracting chromium-91.0.4472.114_1: 100%
pkg install -f mesa-libs
worked to resolve this issue for me, too, on both my kde5 and plasma5-plasma installs. pkg install -f mesa-libs
was sufficient to remedy the problem.I know nothing about the freebsd-ports list, but can narrow it down a bit farther, now that I've just upgraded my headless server install without duplicating the error. Here's a short summary of what I learned or inferred from this latest upgrade:It's unfortunately not clear which package has the bug. Is it mesa-libs? One of the KDE packages? I'd ask on the freebsd-ports list.
pkg upgrade mesa-libs
which upgraded version 20.2.3 to 20.2.3_1 without duplicating the problem. This upgrade also added libglvnd without affecting libgbm.so.1 at all, so I now feel that the mesa-lib upgrade itself is very likely not the problem. pkg upgrade
without duplicating the problem, thereby more or less eliminating all my server-specific packages, including vim, from suspicion. pkg delete
followed by pkg autoremove
before running the upgrades. pkg upgrade xf86-video-ati | tee pkg-upgrade-xf86-video-ati-q3.log
:root@mate:~ # ls -l /usr/local/lib/libgbm*
ls: No match.
root@mate:~ # pkg install -f mesa-libs | tee pkg-install-mesa-libs-q3.log
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):
Installed packages to be REINSTALLED:
mesa-libs-20.2.3_1
Number of packages to be reinstalled: 1
Proceed with this action? [y/N]: y
[1/1] Reinstalling mesa-libs-20.2.3_1...
[1/1] Extracting mesa-libs-20.2.3_1: .......... done
root@mate:~ # ls -l /usr/local/lib/libgbm*
lrwxr-xr-x 1 root wheel 11 Jul 4 00:09 /usr/local/lib/libgbm.so -> libgbm.so.1
lrwxr-xr-x 1 root wheel 15 Jul 4 00:09 /usr/local/lib/libgbm.so.1 -> libgbm.so.1.0.0
-rwxr-xr-x 1 root wheel 60688 Jul 4 00:09 /usr/local/lib/libgbm.so.1.0.0
root@mate:~ #
Thanks for reporting it.All right. I'll try to report this accurately on freebsd-ports. Thanks for all the legwork on this.