versionsort@FSBD_1.7 missing symbol in libinput_drv.so module for ARM64

From: Fred Finster <fred_at_thegalacticzoo.com>
Date: Tue, 15 Nov 2022 04:53:12 UTC
FreeBSD 14.0-CURRENT is a changing, constantly modified. Sometimes it 
breaks.  Those who use 14.0-CURRENT, must also be able to fix it.

Yes,  I heard from previous mentions by "Sir Dice" about NOT trusting 
the -CURRENT version to be stable

https://ghostbsd-arm64.blogspot.com/2022/11/libinput-module-error-fbsd17-not-found.html 


My written blogpost with many details about missing symbol 
"versionsort@FBSD_1.7" causing libinput.so to NOT LOAD.

So, this is a reminder note to others, you might find a missing symbol 
"versionsort@FBSD_1.7"  when running programs on the kernel.


  For me, the problem arose when trying to start a DESKTOP ENVIRONMENT 
(DE)  on an recently updated FreeBSD 14.0 Raspberry Pi 4B with 8 GB ram. 
This left me locked out from keyboard and mouse input when the MATE 
desktop and tested with the XFCE4 desktop where run  with "startx" using 
contents of file   ~/.xinitrc [exec mate-session]  or [exec xfce4-session].

With that missing module "libinput_drv.so", no USB keyboard and USB 
mouse inputs to control the desktop.  'Alt-Ctl-F2' to switch desktops, 
does not work either!

The kernel is still running, so logging in with SSH works fine. If you 
have SSH enable before running 'startx' that breaks the keyboard input,  
This allowed me to view a log file "less /var/log/Xorg.0.log"   I share 
these 3 lines below:

[  3730.546] (II) Loading /usr/local/lib/xorg/modules/input/libinput_drv.so

[  3730.553] (EE) Failed to load 
/usr/local/lib/xorg/modules/input/libinput_drv.so: 
/usr/local/lib/libinput.so.10: Undefined symbol "versionsort@FBSD_1.7"

[  3730.553] (EE) Failed to load module "libinput" (loader failed, 0)


Question,  How to get updates happening for other packages that depend 
on this specific file /usr/local/lib/libinput.so.10 ?  I think this file 
has been updated from FBSD_1.6 to FBSD_1.7, but the FreeBSD 14.0-CURRENT 
kernel needs to also be updated to provide that dynamic link to 
versionsort@FBSD_1.7

Well back to testing. Do you have suggestions for using "ldd" command to 
find which software module provides that dynamic link resource? Do you 
have other suggestions and methods to repair my little problem?

Since this is not a release,   I cannot use  "freebsd-update fetch 
install". I use the following 2 lines for updating current software:

pkg update

pkg upgrade

Waiting for some time ( hours or days ),  I think this missing symbol problem will fix itself, when using pkg update, pkg upgrade.
or update the kernel software with git:

su -
cd /usr/src


      One-off, 2021-03-02,  Use this line to update  freebsd code to
      current state

|git -C /usr/src pull --ff-only --unshallow|

time make buildkernel KERNCONF=GENERIC-VCHIQ
time make installkernel KERNCONF=GENERIC-VCHIQ

I also now running to update all my software modules to latest version:
time make buildworld KERNCONF=GENERIC-VCHIQ

-- 
Fred  Finster
fred@thegalacticzoo.com
+1 971-718-9144