libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast X Error: BadValue Request Major code 153 (GLX) Request Minor code 3 () Value 0x0 Error Serial #30 Current Serial #31 uname -a FreeBSD trueos-513 12.0-CURRENT FreeBSD 12.0-CURRENT #14 1717ae3(drm-next-4.7): Fri Oct 28 13:49:49 UTC 2016 root@gauntlet:/usr/obj/usr/src/sys/GENERIC amd64
Is /compat or /compat/linux a symlink on your system? If so update to the latest CURRENT and then rebuild+reinstall pkg. Then reinstall linux ports.
(In reply to Tijl Coosemans from comment #1) Can you please suggest the best way to find that out? I did $ find /compat -type l and there where too many results to copy paste here.
file /compat file /compat/linux
(In reply to Tijl Coosemans from comment #3) % file /compat % /compat: directory % file /compat/linux % /compat/linux: directory
Created attachment 177869 [details] symlink find /compat and find /compat/linux give the same output
What is the output of the following commands: pkg info -x linux /compat/linux/bin/sh ldd /usr/lib/dri/swrast_dri.so
(In reply to Tijl Coosemans from comment #6) % pkg info -x linux /compat/linux/bin/sh ldd /usr/lib/dri/swrast_dri.so linux-c6-alsa-lib-1.1.0 linux-c6-alsa-plugins-oss-1.1.0 linux-c6-dri-11.0.7 linux-c6-expat-2.0.1_2 linux-c6-fontconfig-2.8.0_1 linux-c6-libasyncns-0.8_2 linux-c6-libogg-1.1.4_2 linux-c6-libv4l-0.6.3_1 linux-c6-libvorbis-1.2.3_2 linux-c6-sdl-1.2.14_3 linux-c6-xorg-libs-7.4_5 linux-defcon-1.42_1 linux_base-c6-6.8_2 linuxlibertine-g-20120116_1 pkg-static: No package(s) matching /compat/linux/bin/sh
(In reply to Tijl Coosemans from comment #6) % pkg info -x linux linux-c6-alsa-lib-1.1.0 linux-c6-alsa-plugins-oss-1.1.0 linux-c6-dri-11.0.7 linux-c6-expat-2.0.1_2 linux-c6-fontconfig-2.8.0_1 linux-c6-libasyncns-0.8_2 linux-c6-libogg-1.1.4_2 linux-c6-libv4l-0.6.3_1 linux-c6-libvorbis-1.2.3_2 linux-c6-sdl-1.2.14_3 linux-c6-xorg-libs-7.4_5 linux-defcon-1.42_1 linux_base-c6-6.8_2 linuxlibertine-g-20120116_1 % /compat/linux/bin/sh ldd /usr/lib/dri/swrast_dri.so linux32_vdso.so.1 => (0xffffe000) libselinux.so.1 => /lib/libselinux.so.1 (0x21024000) libpthread.so.0 => /lib/libpthread.so.0 (0x21043000) libdl.so.2 => /lib/libdl.so.2 (0x2105e000) libdrm_radeon.so.1 => /usr/lib/libdrm_radeon.so.1 (0x21063000) libdrm_amdgpu.so.1 => /usr/lib/libdrm_amdgpu.so.1 (0x21070000) libdrm.so.2 => /usr/lib/libdrm.so.2 (0x21078000) librt.so.1 => /lib/librt.so.1 (0x21086000) libelf.so.1 => not found libLLVM-3.6-mesa.so => not found libexpat.so.1 => /lib/libexpat.so.1 (0x21090000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x210b8000) libm.so.6 => /lib/libm.so.6 (0x211a3000) libc.so.6 => /lib/libc.so.6 (0x21968000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x211cd000) /lib/ld-linux.so.2 (0x01001000)
You should update linux_base-c6, linux-c6-dri and linux-c6-xorg-libs. Also, what is the output of "ls -ld /compat/linux" and "ls -ld /compat/linux/bin" because the output from the find command you posted lists some files that shouldn't be links.
(In reply to Tijl Coosemans from comment #9) Sorry, it should be "ls -l /compat/linux" and "ls -l /compat/linux/bin".
(In reply to Tijl Coosemans from comment #10) % ls -l /compat/linux total 18 drwxr-xr-x 2 root wheel 60 25 Nov 23:21 bin drwxr-xr-x 24 root wheel 61 29 Nov 20:54 etc drwxr-xr-x 9 root wheel 120 25 Nov 23:21 lib drwxr-xr-x 2 root wheel 2 23 Oct 14:33 mnt drwxr-xr-x 2 root wheel 2 23 Oct 14:33 opt dr-xr-xr-x 1 root wheel 0 12 Dec 19:28 proc drwxr-xr-x 2 root wheel 2 8 Nov 18:56 run drwxr-xr-x 2 root wheel 57 25 Nov 23:21 sbin drwxr-xr-x 2 root wheel 2 23 Oct 14:33 selinux drwxr-xr-x 2 root wheel 2 23 Oct 14:33 srv drwxr-xr-x 2 root wheel 2 23 Oct 14:33 sys drwxr-xr-x 11 root wheel 12 25 Nov 23:21 usr drwxr-xr-x 14 root wheel 15 25 Nov 23:21 var % ls -l /compat/linux/bin total 2055 lrwxr-xr-x 1 root wheel 12 24 Oct 17:29 [ -> ../usr/bin/[ -rwxr-xr-x 1 root wheel 23408 11 May 2016 arch -rwxr-xr-x 1 root wheel 22484 11 May 2016 basename -rwxr-xr-x 1 root wheel 871956 11 May 2016 bash -rwxr-xr-x 1 root wheel 44112 11 May 2016 cat -rwxr-xr-x 1 root wheel 54172 11 May 2016 chgrp -rwxr-xr-x 1 root wheel 50048 11 May 2016 chmod -rwxr-xr-x 1 root wheel 56432 11 May 2016 chown -rwxr-xr-x 1 root wheel 121772 11 May 2016 cp -rwxr-xr-x 1 root wheel 41276 11 May 2016 cut -rwxr-xr-x 1 root wheel 57308 11 May 2016 date -rwxr-xr-x 1 root wheel 55448 11 May 2016 dd -rwxr-xr-x 1 root wheel 4836 10 May 2016 dmesg -rwxr-xr-x 1 root wheel 23488 11 May 2016 echo lrwxr-xr-x 1 root wheel 4 10 Nov 2015 egrep -> grep -rwxr-xr-x 1 root wheel 22520 11 May 2016 env lrwxr-xr-x 1 root wheel 15 24 Oct 17:29 expr -> ../usr/bin/expr -rwxr-xr-x 1 root wheel 20504 11 May 2016 false lrwxr-xr-x 1 root wheel 4 10 Nov 2015 fgrep -> grep -rwxr-xr-x 1 root wheel 162712 1 Mar 2016 find -rwxr-xr-x 1 root wheel 32188 10 May 2016 findmnt -rwxr-xr-x 1 root wheel 155472 10 Nov 2015 grep -rwxr-xr-x 1 root wheel 22048 15 Oct 2014 keyctl -rwxr-xr-x 1 root wheel 10268 10 May 2016 kill -rwxr-xr-x 1 root wheel 22476 11 May 2016 link -rwxr-xr-x 1 root wheel 45908 11 May 2016 ln -rwxr-xr-x 1 root wheel 8512 10 May 2016 logger -rwxr-xr-x 1 root wheel 22572 10 May 2016 login -rwxr-xr-x 1 root wheel 114424 11 May 2016 ls -rwxr-xr-x 1 root wheel 52008 10 May 2016 lsblk -rwxr-xr-x 1 root wheel 44368 11 May 2016 mkdir -rwxr-xr-x 1 root wheel 28660 11 May 2016 mknod -rwxr-xr-x 1 root wheel 34960 11 May 2016 mktemp -rwxr-xr-x 1 root wheel 30836 10 May 2016 more -rwxr-xr-x 1 root wheel 77452 10 May 2016 mount -rwxr-xr-x 1 root wheel 113236 11 May 2016 mv -rwxr-xr-x 1 root wheel 24484 11 May 2016 nice -rwxr-xr-x 1 root wheel 27052 11 May 2016 pwd -rwxr-xr-x 1 root wheel 6992 10 May 2016 raw -rwxr-xr-x 1 root wheel 35984 11 May 2016 readlink -rwxr-xr-x 1 root wheel 576 16 Apr 2008 redhat_lsb_init -rwxr-xr-x 1 root wheel 55964 11 May 2016 rm -rwxr-xr-x 1 root wheel 36040 11 May 2016 rmdir -rwxr-xr-x 1 root wheel 61016 22 Jun 2012 sed -rwxr-xr-x 1 root wheel 19180 23 Aug 2010 setserial lrwxr-xr-x 1 root wheel 4 11 May 2016 sh -> bash -rwxr-xr-x 1 root wheel 23132 11 May 2016 sleep -rwxr-xr-x 1 root wheel 97108 11 May 2016 sort -rwxr-xr-x 1 root wheel 61884 11 May 2016 stty -rwxr-xr-x 1 root wheel 21004 11 May 2016 sync -rwxr-xr-x 1 root wheel 9908 10 May 2016 taskset lrwxr-xr-x 1 root wheel 15 24 Oct 17:29 test -> ../usr/bin/test -rwxr-xr-x 1 root wheel 49052 11 May 2016 touch -rwxr-xr-x 1 root wheel 20504 11 May 2016 true -rwxr-xr-x 1 root wheel 50084 10 May 2016 umount -rwxr-xr-x 1 root wheel 23408 11 May 2016 uname -rwxr-xr-x 1 root wheel 21456 11 May 2016 unlink lrwxr-xr-x 1 root wheel 18 24 Oct 17:29 uuidgen -> ../usr/bin/uuidgen
(In reply to Tijl Coosemans from comment #9) # pkg update Updating trueos-base repository catalogue... trueos-base repository is up-to-date. Updating trueos-major repository catalogue... trueos-major repository is up-to-date. All repositories are up-to-date. # pkg upgrade Updating trueos-base repository catalogue... trueos-base repository is up-to-date. Updating trueos-major repository catalogue... trueos-major repository is up-to-date. All repositories are up-to-date. Checking for upgrades (350 candidates): 100% Processing candidates (350 candidates): 100% Checking integrity... done (0 conflicting) Your packages are up to date.
Ah, Trueos, I don't know anything about that. You'll have to ask them why their packages are outdated. The ls -l output looks ok by the way.
(In reply to Tijl Coosemans from comment #13) https://github.com/trueos/trueos-core/issues/178#issuecomment-266544468
Maintainer reset
Fixed in ports r425344.