libinput_drv.so module error, symbol versionsort@FBSD_1.7 not found, ARM64 Raspberry Pi 4B hardware, FreeBSD 14.0-CURRENT

Example URL to read 

https://www.davekb.com/browse_computer_tips:freebsd_libc_so_7_not_found:txt 


libinput module error, FBSD_1.7 not found, ,  ARM64 Raspberry Pi 4B hardware,  FreeBSD 14.0-CURRENT

startx  to start XFCE4 desktop  (file .xinitrc contents:  exec xfce4-session )

[  3729.862] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[  3729.862] (II) Initializing extension XFree86-VidModeExtension
[  3729.864] (II) Initializing extension XFree86-DGA
[  3729.866] (II) Initializing extension XFree86-DRI
[  3729.866] (II) Initializing extension DRI2
[  3730.545] (II) config/udev: Adding input device System keyboard multiplexer (/dev/input/event0)
[  3730.545] (**) System keyboard multiplexer: Applying InputClass "Evdev keyboard"
[  3730.545] (**) System keyboard multiplexer: Applying InputClass "libinput keyboard catchall"
[  3730.545] (II) LoadModule: "libinput"
[  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)
[  3730.553] (EE) No input driver matching `libinput'
[  3730.553] (II) Falling back to input driver `libinput'
[  3730.553] (II) LoadModule: "libinput"
[  3730.554] (II) Loading /usr/local/lib/xorg/modules/input/libinput_drv.so
[  3730.559] (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.559] (EE) Failed to load module "libinput" (loader failed, 0)
[  3730.560] (II) config/udev: Adding input device System mouse (/dev/input/event1)
[  3730.560] (**) System mouse: Applying InputClass "libinput pointer catchall"
[  3730.560] (II) LoadModule: "libinput"
[  3730.561] (II) Loading /usr/local/lib/xorg/modules/input/libinput_drv.so
[  3730.567] (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"

After a couple of months of searching,  Here is the Answer.  

versionsort@FBSD_1.7 is missing from July29 version of  /lib/libc.so.7  
yet Scandir and Alphasort are there in libc.so.7

root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/lib/libc # readelf -s /lib/libc.so.7 | grep scandir
   732: 00000000000b6a40   392 FUNC    GLOBAL DEFAULT   13 scandir_b@@FBSD_1.6 (8)
  2170: 00000000000b6870   428 FUNC    GLOBAL DEFAULT   13 scandir@@FBSD_1.5 (7)
  2171: 00000000000b6bc8   432 FUNC    GLOBAL DEFAULT   13 scandir@FBSD_1.0 (2)
root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/lib/libc # readelf -s /lib/libc.so.7 | grep versionsort
root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/lib/libc # readelf -s /lib/libc.so.7 | grep alphasort
   422: 00000000000b6a2c    20 FUNC    GLOBAL DEFAULT   13 alphasort@@FBSD_1.5 (7)
   423: 00000000000b6d88    20 FUNC    GLOBAL DEFAULT   13 alphasort@FBSD_1.0 (2)

root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/lib/libc # ls -la /lib/libc.so.7
-r--r--r--  1 root  wheel  1839896 Jul 29 03:09 /lib/libc.so.7
root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/lib/libc # ls -la ./libc.so.7
-rwxr-xr-x  1 root  wheel  2018592 Jan 14 03:41 ./libc.so.7

Check the newly built Jan 14 2023 libc.so.7 version, versionsort is found

root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/lib/libc # readelf -s ./libc.so.7 | grep versionsort
  3003: 00000000000b7398    20 FUNC    GLOBAL DEFAULT   13 versionsort@@FBSD_1.7 (9)
  1969: 00000000000b7398    20 FUNC    GLOBAL DEFAULT   13 versionsort
root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/lib/libc # readelf -s ./libc.so.7 | grep alphasort
   257: 00000000000b7384    20 FUNC    GLOBAL DEFAULT   13 alphasort@@FBSD_1.5 (7)
   258: 00000000000b76f4    20 FUNC    GLOBAL DEFAULT   13 alphasort@FBSD_1.0 (2)
   209: 00000000000b76f4    20 FUNC    LOCAL  DEFAULT   13 freebsd11_alphasort
  1968: 00000000000b7384    20 FUNC    GLOBAL DEFAULT   13 alphasort
  1973: 00000000000b76f4    20 FUNC    GLOBAL DEFAULT   13 alphasort

root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/lib/libc # readelf -s ./libc.so.7 | grep scandir
   192: 00000000000b7118    84 FUNC    GLOBAL DEFAULT   13 scandir@@FBSD_1.5 (7)
   193: 00000000000b753c   432 FUNC    GLOBAL DEFAULT   13 scandir@FBSD_1.0 (2)
  1913: 00000000000b73b4   392 FUNC    GLOBAL DEFAULT   13 scandir_b@@FBSD_1.6 (8)
  2245: 00000000000b7314   112 FUNC    GLOBAL DEFAULT   13 scandirat@@FBSD_1.7 (9)
   208: 00000000000b753c   432 FUNC    LOCAL  DEFAULT   13 freebsd11_scandir
  1965: 00000000000b7118    84 FUNC    GLOBAL DEFAULT   13 scandir
  1967: 00000000000b7314   112 FUNC    GLOBAL DEFAULT   13 scandirat
  1971: 00000000000b73b4   392 FUNC    GLOBAL DEFAULT   13 scandir_b
  1974: 00000000000b753c   432 FUNC    GLOBAL DEFAULT   13 scandir

How to fix?  make -j4 buildworld ; make -j4 buildkernel ; make -j4 installkernel





Other URLs to read about FBSD_1.7 symbol not found

https://www.truenas.com/community/threads/solved-jail-maintenance-lib-libc-so-7-version-fbsd_1-6-required.91057/

https://www.truenas.com/community/threads/wget-error-version-fbsd_1-7-required.103984/

https://www.davekb.com/browse_computer_tips:freebsd_libc_so_7_not_found:txt


root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/lib/libc # readelf -s /lib/libc.so.7 | grep scandir
   732: 00000000000b6a40   392 FUNC    GLOBAL DEFAULT   13 scandir_b@@FBSD_1.6 (8)
  2170: 00000000000b6870   428 FUNC    GLOBAL DEFAULT   13 scandir@@FBSD_1.5 (7)
  2171: 00000000000b6bc8   432 FUNC    GLOBAL DEFAULT   13 scandir@FBSD_1.0 (2)
root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/lib/libc # readelf -s /lib/libc.so.7 | grep versionsort
root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/lib/libc # readelf -s /lib/libc.so.7 | grep alphasort
   422: 00000000000b6a2c    20 FUNC    GLOBAL DEFAULT   13 alphasort@@FBSD_1.5 (7)
   423: 00000000000b6d88    20 FUNC    GLOBAL DEFAULT   13 alphasort@FBSD_1.0 (2)
root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/lib/libc # ls -la /lib/libc.so.7
-r--r--r--  1 root  wheel  1839896 Jul 29 03:09 /lib/libc.so.7



Tried pkg update, pkg upgrade  route

root@Fred_RasPi4B:/usr/src # pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
root@Fred_RasPi4B:/usr/src # pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (1 candidates): 100%
Processing candidates (1 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
root@Fred_RasPi4B:/usr/src # 

Looking for method to overcome problem.  ie update libinput.so

less /usr/local/share/doc/xorg-docs/MAINTAINERS  Email a maintainer
xinput
P:      Peter Hutterer
M:      peter.hutterer@who-t.net
L:      xorg-devel@lists.x.org
W:      https://gitlab.freedesktop.org/xorg/app/xinput
S:      Maintained

xf86-input-keyboard
P:      Alan Coopersmith
M:      alan.coopersmith@oracle.com
L:      xorg-devel@lists.x.org
W:      https://gitlab.freedesktop.org/xorg/driver/xf86-input-keyboard
S:      Maintained

xf86-input-mouse
P:      Alan Coopersmith
M:      alan.coopersmith@oracle.com
L:      xorg-devel@lists.x.org
W:      https://gitlab.freedesktop.org/xorg/driver/xf86-input-mouse
S:      Maintained

Input subsystem
P:      Daniel Stone
M:      daniel@fooishbar.org
P:      Peter Hutterer
M:      peter.hutterer@who-t.net
L:      xorg-devel@lists.x.org
W:      https://wiki.x.org
S:      Maintained, being overhauled
S:      Please contact Daniel or Peter if you're planning to work on this

FreeBSD-ARM  mailing list subscription


Browse the FreeBSD-ARM monthly archives


Boot from USB Flash drive image built from a  Snapshot image  

freebsd.org/where 

https://download.freebsd.org/snapshots/arm64/aarch64/ISO-IMAGES/14.0/


My post to freebsd-arm mailing list:

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 a missing symbol causing libinput_drv.so to NOT LOAD.

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


 For me, trying to start DESKTOP Environment on an recently updated FreeBSD 14.0 Raspberry Pi 4B with 8 GB ram,  left me locked out from keyboard and mouse input when either the MATE desktop or the XFCE4 desktop,   were 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 are received, to control the desktop.  'Alt-Ctl-F2' to switch desktops, does not work either! (Missing Keyboard inputs)

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  being loaded?  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 symbol 'versionsort@FBSD_1.7' 

Well back to testing.  You have suggestions for using "ldd" command to find which software module provides that dynamic link resource?  nm -d /usr/local/lib/xorg/modules/input/libinput_drv.so

prints out the Dynamic Link symbols

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


With enough time and tinkering around.  I will find the solution to my own problem/

Fred Finster November 14, 2022


post:

root@Fred_RasPi4B:/usr/src # find /usr/src -name="Version*" -print
find: -name=Version*: unknown primary or operator
root@Fred_RasPi4B:/usr/src # find /usr/src -name "Version*" -print
/usr/src/contrib/elftoolchain/libdwarf/Version.map
/usr/src/contrib/elftoolchain/libelf/Version.map
/usr/src/contrib/elftoolchain/libelftc/Version.map
/usr/src/contrib/llvm-project/clang/include/clang/Basic/Version.h
/usr/src/contrib/llvm-project/clang/lib/Basic/Version.cpp
/usr/src/contrib/llvm-project/lld/Common/Version.cpp
/usr/src/contrib/llvm-project/lld/include/lld/Common/Version.h
/usr/src/contrib/llvm-project/lld/include/lld/Common/Version.inc.in
/usr/src/contrib/llvm-project/lldb/include/lldb/Version
/usr/src/contrib/llvm-project/lldb/include/lldb/Version/Version.h
/usr/src/contrib/llvm-project/lldb/include/lldb/Version/Version.inc.in
/usr/src/contrib/llvm-project/lldb/source/Version
/usr/src/contrib/llvm-project/lldb/source/Version/Version.cpp
/usr/src/contrib/llvm-project/llvm/include/llvm/Support/VersionTuple.h
/usr/src/contrib/llvm-project/llvm/lib/Support/VersionTuple.cpp
/usr/src/contrib/ntp/scripts/build/VersionName
/usr/src/lib/clang/include/clang/Basic/Version.inc
/usr/src/lib/clang/include/lld/Common/Version.inc
/usr/src/lib/clang/include/lldb/Version
/usr/src/lib/clang/include/lldb/Version/Version.inc
/usr/src/lib/libc/Versions.def
/usr/src/lib/libcxxrt/Version.map
/usr/src/lib/libgcc_s/Versions.def
/usr/src/lib/liblzma/Versions.def
/usr/src/lib/libnv/Version.map
/usr/src/lib/libregex/Versions.def
/usr/src/lib/libsbuf/Version.def
/usr/src/lib/libssp/Versions.def
/usr/src/lib/libz/Versions.def
/usr/src/secure/lib/libcrypto/Version.map
/usr/src/secure/lib/libssl/Version.map
/usr/src/tools/tools/shlib-compat/test/Versions.def


Specifically file:   /usr/src/lib/libc/Versions.def
-rw-r--r--   1 root  wheel  1075 Aug  5 12:24 Versions.def

root@Fred_RasPi4B:/usr/src/lib/libc # cat Versions.def
# $FreeBSD$

#
# Note: Whenever bumping the FBSD version, always make
#       FBSDprivate_1.0 depend on the new FBSD version.
#       This will keep it at the end of the dependency chain.
#

# This is our first version; it depends on no other.
# This version was first added to 7.0-current.
FBSD_1.0 {
};

# This version was first added to 8.0-current.
FBSD_1.1 {
} FBSD_1.0;

# This version was first added to 9.0-current.
FBSD_1.2 {
} FBSD_1.1;

# This version was first added to 10.0-current.
FBSD_1.3 {
} FBSD_1.2;

# This version was first added to 11.0-current.
FBSD_1.4 {
} FBSD_1.3;

# This version was first added to 12.0-current.
FBSD_1.5 {
} FBSD_1.4;

# This version was first added to 13.0-current.
FBSD_1.6 {
} FBSD_1.5;

FBSD_1.7 {
} FBSD_1.6;

# This is our private namespace.  Any global interfaces that are
# strictly for use only by other FreeBSD applications and libraries
# are listed here.  We use a separate namespace so we can write
# simple ABI-checking tools.
#
# Please do NOT increment the version of this namespace.
FBSDprivate_1.0 {
} FBSD_1.7;


My question is how to figure out which file is not upto date that creates the instance 
FBSDprivate_1.0 {} FBSD_1.7;

So that libinput_drv.o  is not missing an unknown variable.
[  3730.545] (II) LoadModule: "libinput"
[  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)
[  3730.553] (EE) No input driver matching `libinput'
[  3730.553] (II) Falling back to input driver `libinput'
[  3730.553] (II) LoadModule: "libinput"


Looking on the Raspberry Pi 4B hard disk of source files and compiled librarys we find:

root@Fred_RasPi4B:/usr/local/lib/xorg/modules/input # ls -l
total 184
-rwxr-xr-x  1 root  wheel  20552 Oct 11 14:05 inputtest_drv.so
-rwxr-xr-x  1 root  wheel  18456 Aug 22 04:55 kbd_drv.so
-rwxr-xr-x  1 root  wheel  81416 Aug 22 00:51 libinput_drv.so
-rwxr-xr-x  1 root  wheel  58712 Aug 22 06:08 mouse_drv.so


root@Fred_RasPi4B:/usr/local/lib/xorg/modules/input # ldd ./libinput_drv.so
./libinput_drv.so:
libinput.so.10 => /usr/local/lib/libinput.so.10 (0x5fa688163000)
libm.so.5 => /lib/libm.so.5 (0x5fa688163000)
libc.so.7 => /lib/libc.so.7 (0x5fa688163000)
libmtdev.so.1 => /usr/local/lib/libmtdev.so.1 (0x5fa689098000)
libudev.so.0 => /usr/local/lib/libudev.so.0 (0x5fa689098000)
libevdev.so.2 => /usr/local/lib/libevdev.so.2 (0x5fa689098000)
libepoll-shim.so.0 => /usr/local/lib/libepoll-shim.so.0 (0x5fa689098000)
libwacom.so.2 => /usr/local/lib/libwacom.so.2 (0x5fa689098000)
libdevinfo.so.6 => /usr/lib/libdevinfo.so.6 (0x5fa68b7bf000)
libprocstat.so.1 => /usr/lib/libprocstat.so.1 (0x5fa68b7bf000)
libthr.so.3 => /lib/libthr.so.3 (0x5fa68b7bf000)
libgudev-1.0.so.0 => /usr/local/lib/libgudev-1.0.so.0 (0x5fa68eb6e000)
libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0x5fa68eb6e000)
libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x5fa68eb6e000)
libelf.so.2 => /lib/libelf.so.2 (0x5fa690396000)
libkvm.so.7 => /lib/libkvm.so.7 (0x5fa690396000)
libutil.so.9 => /lib/libutil.so.9 (0x5fa690396000)
libgio-2.0.so.0 => /usr/local/lib/libgio-2.0.so.0 (0x5fa68fccd000)
libintl.so.8 => /usr/local/lib/libintl.so.8 (0x5fa68fccd000)
libffi.so.8 => /usr/local/lib/libffi.so.8 (0x5fa690724000)
libpcre2-8.so.0 => /usr/local/lib/libpcre2-8.so.0 (0x5fa69110b000)
libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x5fa69110b000)
libgmodule-2.0.so.0 => /usr/local/lib/libgmodule-2.0.so.0 (0x5fa6936ff000)
libz.so.6 => /lib/libz.so.6 (0x5fa6936ff000)


root@Fred_RasPi4B:/usr/local/lib/xorg/modules/input # ldd /usr/local/lib/libinput.so.10
/usr/local/lib/libinput.so.10:
libmtdev.so.1 => /usr/local/lib/libmtdev.so.1 (0x4cbccab56000)
libudev.so.0 => /usr/local/lib/libudev.so.0 (0x4cbccab56000)
libevdev.so.2 => /usr/local/lib/libevdev.so.2 (0x4cbccab56000)
libepoll-shim.so.0 => /usr/local/lib/libepoll-shim.so.0 (0x4cbccab56000)
libm.so.5 => /lib/libm.so.5 (0x4cbccab56000)
libwacom.so.2 => /usr/local/lib/libwacom.so.2 (0x4cbccab56000)
libc.so.7 => /lib/libc.so.7 (0x4cbccab56000)
libdevinfo.so.6 => /usr/lib/libdevinfo.so.6 (0x4cbcca49f000)
libprocstat.so.1 => /usr/lib/libprocstat.so.1 (0x4cbcca49f000)
libthr.so.3 => /lib/libthr.so.3 (0x4cbcca49f000)
libgudev-1.0.so.0 => /usr/local/lib/libgudev-1.0.so.0 (0x4cbccdf9d000)
libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0x4cbccdf9d000)
libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x4cbccdf9d000)
libelf.so.2 => /lib/libelf.so.2 (0x4cbccf7f0000)
libkvm.so.7 => /lib/libkvm.so.7 (0x4cbccf7f0000)
libutil.so.9 => /lib/libutil.so.9 (0x4cbccf7f0000)
libgio-2.0.so.0 => /usr/local/lib/libgio-2.0.so.0 (0x4cbcd0171000)
libintl.so.8 => /usr/local/lib/libintl.so.8 (0x4cbcd0171000)
libffi.so.8 => /usr/local/lib/libffi.so.8 (0x4cbcd1215000)
libpcre2-8.so.0 => /usr/local/lib/libpcre2-8.so.0 (0x4cbcd2997000)
libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x4cbcd2997000)
libgmodule-2.0.so.0 => /usr/local/lib/libgmodule-2.0.so.0 (0x4cbcd4496000)
libz.so.6 => /lib/libz.so.6 (0x4cbcd4496000)


root@Fred_RasPi4B:/usr/local/lib/xorg/modules/input # ls -l /usr/local/lib/libinp*
lrwxr-xr-x  1 root  wheel      14 Oct 26 20:28 /usr/local/lib/libinput.so -> libinput.so.10
lrwxr-xr-x  1 root  wheel      19 Oct 26 20:28 /usr/local/lib/libinput.so.10 -> libinput.so.10.13.0
-rwxr-xr-x  1 root  wheel  296656 Oct 26 20:28 /usr/local/lib/libinput.so.10.13.0

root@Fred_RasPi4B:/usr/local/lib/xorg/modules/input # ldd /usr/local/lib/libinp*
/usr/local/lib/libinput.so.10.13.0:
libmtdev.so.1 => /usr/local/lib/libmtdev.so.1 (0x4246ae004000)
libudev.so.0 => /usr/local/lib/libudev.so.0 (0x4246ae004000)
libevdev.so.2 => /usr/local/lib/libevdev.so.2 (0x4246ae004000)
libepoll-shim.so.0 => /usr/local/lib/libepoll-shim.so.0 (0x4246ae004000)
libm.so.5 => /lib/libm.so.5 (0x4246ae004000)
libwacom.so.2 => /usr/local/lib/libwacom.so.2 (0x4246ae004000)
libc.so.7 => /lib/libc.so.7 (0x4246ae004000)
libdevinfo.so.6 => /usr/lib/libdevinfo.so.6 (0x4246afbf5000)
libprocstat.so.1 => /usr/lib/libprocstat.so.1 (0x4246afbf5000)
libthr.so.3 => /lib/libthr.so.3 (0x4246afbf5000)
libgudev-1.0.so.0 => /usr/local/lib/libgudev-1.0.so.0 (0x4246b05e3000)
libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0x4246b05e3000)
libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x4246b05e3000)
libelf.so.2 => /lib/libelf.so.2 (0x4246b0feb000)
libkvm.so.7 => /lib/libkvm.so.7 (0x4246b0feb000)
libutil.so.9 => /lib/libutil.so.9 (0x4246b0feb000)
libgio-2.0.so.0 => /usr/local/lib/libgio-2.0.so.0 (0x4246b3240000)
libintl.so.8 => /usr/local/lib/libintl.so.8 (0x4246b3240000)
libffi.so.8 => /usr/local/lib/libffi.so.8 (0x4246b3bd6000)
libpcre2-8.so.0 => /usr/local/lib/libpcre2-8.so.0 (0x4246b4901000)
libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x4246b4901000)
libgmodule-2.0.so.0 => /usr/local/lib/libgmodule-2.0.so.0 (0x4246b5cd7000)
libz.so.6 => /lib/libz.so.6 (0x4246b5cd7000)


I see this same error and same action.  

https://www.youtube.com/watch?v=M4CaPKsUzw0  Youtube describing FBSD_1.4 error


Adding versionsort  


 nm -D /usr/local/lib/libinput.so.10.13.0 > ~/Dynamic_Symbols_libinput.so.10.13.0_text

Here at the end is 'versionsort' symbol   less  ~/Dynamic_Symbols_libinput.so.10.13.0_text

                 U udev_monitor_unref
                 U udev_new
                 U udev_ref
                 U udev_unref
                 U usleep
                 U vasprintf
                 U versionsort
                 U vfprintf
                 U write


EXAMPLES:


root@fredTC93-pc:/usr/ports/x11/libinput/work/libinput-1.19.4/src # grep -in scandir *
quirks.c:941: * provided by scandir so they do exist. Short of races we
quirks.c:1096: ndev = scandir(data_path, &namelist, is_data_file, versionsort);
root@fredTC93-pc:/usr/ports/x11/libinput/work/libinput-1.19.4/src # pwd
/usr/ports/x11/libinput/work/libinput-1.19.4/src

root@fredTC93-pc:/usr/ports/x11/libinput/work/libinput-1.19.4/src # grep -i -n versionsort libinput-versionsort.h quirks.c /usr/src/include/dirent.h
libinput-versionsort.h:31:#if !defined(HAVE_VERSIONSORT) || defined(TEST_VERSIONSORT)
libinput-versionsort.h:67:#ifndef HAVE_VERSIONSORT
libinput-versionsort.h:75:versionsort(const struct dirent **a, const struct dirent **b)
quirks.c:42:#include "libinput-versionsort.h"
quirks.c:1096: ndev = scandir(data_path, &namelist, is_data_file, versionsort);

root@fredTC93-pc:/usr/ports/x11/libinput/work/libinput-1.19.4/src # grep -i -n scandir libinput-versionsort.h quirks.c /usr/src/include/dirent.h
quirks.c:941: * provided by scandir so they do exist. Short of races we
quirks.c:1096: ndev = scandir(data_path, &namelist, is_data_file, versionsort);
/usr/src/include/dirent.h:125:int scandir(const char *, struct dirent ***,
/usr/src/include/dirent.h:129:int scandir_b(const char *, struct dirent ***,

root@fredTC93-pc:/usr/ports/x11/libinput/work/libinput-1.19.4 # grep -i -n -r scandir *
src/quirks.c:941: * provided by scandir so they do exist. Short of races we
src/quirks.c:1096: ndev = scandir(data_path, &namelist, is_data_file, versionsort);
test/litest.c:1484: ndev = scandir(LIBINPUT_QUIRKS_SRCDIR,
tools/libinput-record.c:1878: ndev = scandir("/dev/input", &namelist, is_event_node, versionsort);
tools/libinput-record.c:1940: ndev = scandir("/dev/input", &namelist, is_event_node, versionsort);


2nd Question:
WHY in file /usr/src/include/dirent.h  is there not a matching declaration line for versionsort()  ?

fred@fredTC93-pc /u/src> grep -in sort  ./include/dirent.h ./sys/sys/dirent.
./include/dirent.h:107:int alphasort(const struct dirent **, const struct dirent **);


fred@fredTC93-pc /u/src> cd /usr/ports/x11
fred@fredTC93-pc /u/p/x11> grep -inr scandir *
evtest/files/patch-evtest.c:16:- ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, versionsort);
evtest/files/patch-evtest.c:17:+ ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, alphasort);
fred@fredTC93-pc /u/p/x11> 

LIKE:
./include/dirent.h:108:int  versionsort(const struct dirent **, const struct dirent **);

YES A search does include:  Wonder if the version __BSD_VISIBLE tests, block the creation
root@Fred_RasPi4B:/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a # grep -inr versionsort /usr/src/include/dirent.h
/usr/src/include/dirent.h:111:int versionsort(const struct dirent **, const struct dirent **);
root@Fred_RasPi4B:/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a # ls -l /usr/src/include/dir*
-rw-r--r--  1 root  wheel  4469 Nov 13 00:36 /usr/src/include/dirent.h
root@Fred_RasPi4B:/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a # 


REFERENCE:
https://gitlab.freedesktop.org/libinput/libinput/
https://gitlab.freedesktop.org/libinput/libinput/-/tree/main
https://gitlab.freedesktop.org/libinput/libinput/-/blob/main/meson.build
/usr/src/lib/libc/gen

cd /usr/src/lib/libc/gen
ls -l scandir*

root@fredTC93-pc:/usr/src/lib/libc/gen # diff scandir.c scandir_nov13_2022.c
44a45
> #include <fcntl.h>
46a48
> #include <unistd.h>
64c66
< static int alphasort_thunk(void *thunk, const void *p1, const void *p2);
---
> static int scandir_thunk_cmp(const void *p1, const void *p2, void *thunk);
67c69
< int
---
> static int
69c71
< scandir_b(const char *dirname, struct dirent ***namelist, select_block select,
---
> scandir_b_dirp(DIR *dirp, struct dirent ***namelist, select_block select,
72c74
< scandir(const char *dirname, struct dirent ***namelist,
---
> scandir_dirp(DIR *dirp, struct dirent ***namelist,
74c76
< const struct dirent **))
---
>     const struct dirent **))
79d80
< DIR *dirp;
81,83d81
< if ((dirp = opendir(dirname)) == NULL)
< return(-1);
128c126
<     &dcomp, alphasort_thunk);
---
>     scandir_thunk_cmp, &dcomp);
140a139,162
> int
> #ifdef I_AM_SCANDIR_B
> scandir_b(const char *dirname, struct dirent ***namelist, select_block select,
>     dcomp_block dcomp)
> #else
> scandir(const char *dirname, struct dirent ***namelist,
>     int (*select)(const struct dirent *), int (*dcomp)(const struct dirent **,
>     const struct dirent **))
> #endif
> {
> DIR *dirp;
> dirp = opendir(dirname);
> if (dirp == NULL)
> return (-1);
> return (
> #ifdef I_AM_SCANDIR_B
>     scandir_b_dirp
> #else
>     scandir_dirp
> #endif
>     (dirp, namelist, select, dcomp));
> }
141a164,182
> int
> scandirat(int dirfd, const char *dirname, struct dirent ***namelist,
>     int (*select)(const struct dirent *), int (*dcomp)(const struct dirent **,
>     const struct dirent **))
> {
> DIR *dirp;
> int fd;
> fd = _openat(dirfd, dirname, O_RDONLY | O_DIRECTORY | O_CLOEXEC);
> if (fd == -1)
> return (-1);
> dirp = fdopendir(fd);
> if (dirp == NULL) {
> _close(fd);
> return (-1);
> }
> return (scandir_dirp(dirp, namelist, select, dcomp));
> }
152a194,200
> int
> versionsort(const struct dirent **d1, const struct dirent **d2)
> {
> return (strverscmp((*d1)->d_name, (*d2)->d_name));
> }
154c202
< alphasort_thunk(void *thunk, const void *p1, const void *p2)
---
> scandir_thunk_cmp(const void *p1, const void *p2, void *thunk)
161a210

/usr/src/lib/libc/gen/scandir.c
/usr/src/include/dirent.h
/usr/include/sys/cdefs.h


root@Fred_RasPi4B:/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src # grep -inr versionsort *
libinput-versionsort.h:31:#if !defined(HAVE_VERSIONSORT) || defined(TEST_VERSIONSORT)
libinput-versionsort.h:67:#ifndef HAVE_VERSIONSORT
libinput-versionsort.h:75:versionsort(const struct dirent **a, const struct dirent **b)
quirks.c:42:#include "libinput-versionsort.h"
quirks.c:1092: ndev = scandir(data_path, &namelist, is_data_file, versionsort);
root@Fred_RasPi4B:/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src # 

root@Fred_RasPi4B:/usr/ports/x11/libinput # grep -n -r __BSD_VISIBLE /usr/include/sys/cdefs.h /usr/src/include/dirent.h
/usr/include/sys/cdefs.h:751:#define __BSD_VISIBLE 0
/usr/include/sys/cdefs.h:757:#define __BSD_VISIBLE 0
/usr/include/sys/cdefs.h:763:#define __BSD_VISIBLE 0
/usr/include/sys/cdefs.h:769:#define __BSD_VISIBLE 1
/usr/src/include/dirent.h:38:#define __BSD_VISIBLE  1
/usr/src/include/dirent.h:47:#if __BSD_VISIBLE
/usr/src/include/dirent.h:48:#error "__BSD_VISIBLE is defined " 
/usr/src/include/dirent.h:65:#endif /* __BSD_VISIBLE */
/usr/src/include/dirent.h:82:#if __BSD_VISIBLE
/usr/src/include/dirent.h:99:#else /* !__BSD_VISIBLE */
/usr/src/include/dirent.h:103:#endif /* __BSD_VISIBLE */
/usr/src/include/dirent.h:112:#if __BSD_VISIBLE
/usr/src/include/dirent.h:137:#if __BSD_VISIBLE

root@Fred_RasPi4B:/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a # cd src
root@Fred_RasPi4B:/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src # grep -in dirent *
libinput-versionsort.h:29:#include <dirent.h>
libinput-versionsort.h:75:versionsort(const struct dirent **a, const struct dirent **b)
quirks.c:35:#include <dirent.h>
quirks.c:1081:is_data_file(const struct dirent *dir) {
quirks.c:1088: struct dirent **namelist;


root@Fred_RasPi4B:/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/tools # grep -in versionsort *
libinput-record.c:46:#include "libinput-versionsort.h"
libinput-record.c:1881: ndev = scandir("/dev/input", &namelist, is_event_node, versionsort);
libinput-record.c:1943: ndev = scandir("/dev/input", &namelist, is_event_node, versionsort);

root@Fred_RasPi4B:/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a # grep -inr __POSIX_VISIBLE /usr/include/sys/cdefs.h /usr/src/include/dirent.h
/usr/include/sys/cdefs.h:703:#define __POSIX_VISIBLE 200809
/usr/include/sys/cdefs.h:706:#define __POSIX_VISIBLE 200112
/usr/include/sys/cdefs.h:709:#define __POSIX_VISIBLE 199506
/usr/include/sys/cdefs.h:712:#define __POSIX_VISIBLE 199309
/usr/include/sys/cdefs.h:715:#define __POSIX_VISIBLE 199209
/usr/include/sys/cdefs.h:718:#define __POSIX_VISIBLE 199009
/usr/include/sys/cdefs.h:721:#define __POSIX_VISIBLE 198808
/usr/include/sys/cdefs.h:749:#define __POSIX_VISIBLE 0
/usr/include/sys/cdefs.h:755:#define __POSIX_VISIBLE 0
/usr/include/sys/cdefs.h:761:#define __POSIX_VISIBLE 0
/usr/include/sys/cdefs.h:767:#define __POSIX_VISIBLE 200809
/usr/src/include/dirent.h:39:#define __POSIX_VISIBLE 200809
/usr/src/include/dirent.h:110:#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 700
/usr/src/include/dirent.h:125:#if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 500
/usr/src/include/dirent.h:129:#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 700




cd /usr/local/lib
nm --dynamic /usr/local/lib/libinput.so

nm --dynamic libinput.so | grep versionsort
                 U versionsort
nm --dynamic libinput.so | grep scandir
                 U scandir
nm --dynamic libinput.so | grep alphasort
nm --dynamic libinput.so | grep alpha

Check file /usr/src/include/dirent.h  for
alphasort() function declaration
versionsort() function declaration

Check  file /usr/src/include/cdefs.h    for values of __POSIX_VISIBLE and __BSD_VISIBLE that are setup.   These values, determine if functions alphasort() and versionsort() are declared

Check file /usr/src/lib/libc/gen/scandir.c
cd /usr/src/lib/libc/gen
grep -inr versionsort *
scandir_nov13_2022.c:195:versionsort(const struct dirent **d1, const struct dirent **d2)


cd /usr/ports/x11/libinput
make
[ 63% 64/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_path-seat.c.o -MF libinput.so.10.13.0.p/src_path-seat.c.o.d -o libinput.so.10.13.0.p/src_path-seat.c.o -c ../src/path-seat.c
[ 64% 65/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_udev-seat.c.o -MF libinput.so.10.13.0.p/src_udev-seat.c.o.d -o libinput.so.10.13.0.p/src_udev-seat.c.o -c ../src/udev-seat.c
[ 65% 66/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_timer.c.o -MF libinput.so.10.13.0.p/src_timer.c.o.d -o libinput.so.10.13.0.p/src_timer.c.o -c ../src/timer.c
[ 66% 67/101] cc  -o libinput.so.10.13.0 libinput.so.10.13.0.p/src_filter.c.o libinput.so.10.13.0.p/src_filter-flat.c.o libinput.so.10.13.0.p/src_filter-low-dpi.c.o libinput.so.10.13.0.p/src_filter-mouse.c.o libinput.so.10.13.0.p/src_filter-touchpad.c.o libinput.so.10.13.0.p/src_filter-touchpad-flat.c.o libinput.so.10.13.0.p/src_filter-touchpad-x230.c.o libinput.so.10.13.0.p/src_filter-tablet.c.o libinput.so.10.13.0.p/src_filter-trackpoint.c.o libinput.so.10.13.0.p/src_filter-trackpoint-flat.c.o libinput.so.10.13.0.p/src_libinput.c.o libinput.so.10.13.0.p/src_libinput-private-config.c.o libinput.so.10.13.0.p/src_evdev.c.o libinput.so.10.13.0.p/src_evdev-debounce.c.o libinput.so.10.13.0.p/src_evdev-fallback.c.o libinput.so.10.13.0.p/src_evdev-totem.c.o libinput.so.10.13.0.p/src_evdev-middle-button.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-tap.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-thumb.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-buttons.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-edge-scroll.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-gestures.c.o libinput.so.10.13.0.p/src_evdev-tablet.c.o libinput.so.10.13.0.p/src_evdev-tablet-pad.c.o libinput.so.10.13.0.p/src_evdev-tablet-pad-leds.c.o libinput.so.10.13.0.p/src_evdev-wheel.c.o libinput.so.10.13.0.p/src_path-seat.c.o libinput.so.10.13.0.p/src_udev-seat.c.o libinput.so.10.13.0.p/src_timer.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libinput.so.10 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -Wl,-rpath,/usr/local/lib -Wl,-rpath-link,/usr/local/lib liblibinput-util.a libquirks.a -Wl,--version-script,/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src/libinput.sym /usr/local/lib/libmtdev.so /usr/local/lib/libudev.so /usr/local/lib/libevdev.so /usr/local/lib/libepoll-shim.so -lrt -lm /usr/local/lib/libwacom.so -Wl,--end-group
FAILED: libinput.so.10.13.0 
cc  -o libinput.so.10.13.0 libinput.so.10.13.0.p/src_filter.c.o libinput.so.10.13.0.p/src_filter-flat.c.o libinput.so.10.13.0.p/src_filter-low-dpi.c.o libinput.so.10.13.0.p/src_filter-mouse.c.o libinput.so.10.13.0.p/src_filter-touchpad.c.o libinput.so.10.13.0.p/src_filter-touchpad-flat.c.o libinput.so.10.13.0.p/src_filter-touchpad-x230.c.o libinput.so.10.13.0.p/src_filter-tablet.c.o libinput.so.10.13.0.p/src_filter-trackpoint.c.o libinput.so.10.13.0.p/src_filter-trackpoint-flat.c.o libinput.so.10.13.0.p/src_libinput.c.o libinput.so.10.13.0.p/src_libinput-private-config.c.o libinput.so.10.13.0.p/src_evdev.c.o libinput.so.10.13.0.p/src_evdev-debounce.c.o libinput.so.10.13.0.p/src_evdev-fallback.c.o libinput.so.10.13.0.p/src_evdev-totem.c.o libinput.so.10.13.0.p/src_evdev-middle-button.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-tap.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-thumb.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-buttons.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-edge-scroll.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-gestures.c.o libinput.so.10.13.0.p/src_evdev-tablet.c.o libinput.so.10.13.0.p/src_evdev-tablet-pad.c.o libinput.so.10.13.0.p/src_evdev-tablet-pad-leds.c.o libinput.so.10.13.0.p/src_evdev-wheel.c.o libinput.so.10.13.0.p/src_path-seat.c.o libinput.so.10.13.0.p/src_udev-seat.c.o libinput.so.10.13.0.p/src_timer.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libinput.so.10 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -Wl,-rpath,/usr/local/lib -Wl,-rpath-link,/usr/local/lib liblibinput-util.a libquirks.a -Wl,--version-script,/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src/libinput.sym /usr/local/lib/libmtdev.so /usr/local/lib/libudev.so /usr/local/lib/libevdev.so /usr/local/lib/libepoll-shim.so -lrt -lm /usr/local/lib/libwacom.so -Wl,--end-group
ld: error: undefined symbol: versionsort
>>> referenced by quirks.c
>>>               libquirks.a.p/src_quirks.c.o:(quirks_init_subsystem) in archive libquirks.a
>>> referenced by quirks.c
>>>               libquirks.a.p/src_quirks.c.o:(quirks_init_subsystem) in archive libquirks.a
cc: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/x11/libinput
*** Error code 1

Stop.
make: stopped in /usr/ports/x11/libinput
root@Fred_RasPi4B:/usr/ports/x11/libinput # uname -aKropmn
FreeBSD Fred_RasPi4B 14.0-CURRENT FreeBSD 14.0-CURRENT #3 main-n259619-07d1c4a919c0-dirty: Thu Dec  8 13:21:46 PST 2022     root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-VCHIQ arm64 aarch64 1400073
root@Fred_RasPi4B:/usr/ports/x11/libinput # 

"versionsort" is missing


Yet when I make it by hand   cd /usr/src/lib/libc/gen && make -I /usr/src/lib/libc/include


root@Fred_RasPi4B:/usr/src/lib/libc/gen # nm -a /usr/obj/usr/src/arm64.aarch64/lib/libc/scandir.o
0000000000000000 n $d.0
0000000000000000 N $d.2
0000000000000000 N $d.3
0000000000000000 N $d.4
0000000000000000 N $d.5
0000000000000000 N $d.6
000000000000000b n $d.7
0000000000000000 r $d.8
0000000000000000 N $d.9
0000000000000000 t $x.1
0000000000000000 N .debug_abbrev
0000000000000000 N .debug_line
0000000000000000 N .debug_loc
0000000000000000 N .debug_ranges
0000000000000000 N .debug_str
0000000000000000 t .text
                 U __stack_chk_fail
                 U __stack_chk_guard
                 U _close
                 U _openat
0000000000000264 T alphasort
                 U closedir
                 U fdopendir
                 U free
                 U malloc
                 U memmove
                 U opendir
                 U qsort_r
                 U readdir
                 U reallocarray
0000000000000000 T scandir
0000000000000000 a scandir.c
0000000000000054 t scandir_dirp
000000000000028c t scandir_thunk_cmp
00000000000001f4 T scandirat
                 U strcoll
                 U strverscmp
0000000000000278 T versionsort


add these lines to end of file scandir.c  outside if a  #ifndef scandir_b  #endif pair



then run 
make -n -I /usr/src/lib/libc/include/ scandir.o




root@Fred_RasPi4B:/usr/ports/x11/libinput # make clean
===>  Cleaning for libinput-1.22.0
root@Fred_RasPi4B:/usr/ports/x11/libinput # make install clean
===>  License MIT accepted by the user
===>   libinput-1.22.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by libinput-1.22.0 for building
===>  Extracting for libinput-1.22.0
=> SHA256 Checksum OK for libinput-libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a_GL0.tar.gz.
===>  Patching for libinput-1.22.0
===>  Applying FreeBSD patches for libinput-1.22.0 from /usr/ports/x11/libinput/files
===>   libinput-1.22.0 depends on package: meson>=0.57.1_1 - found
===>   libinput-1.22.0 depends on executable: ninja - found
===>   libinput-1.22.0 depends on package: pkgconf>=1.3.0_1 - found
===>   libinput-1.22.0 depends on shared library: libevdev.so - found (/usr/local/lib/libevdev.so)
===>   libinput-1.22.0 depends on shared library: libepoll-shim.so - found (/usr/local/lib/libepoll-shim.so)
===>   libinput-1.22.0 depends on shared library: libudev.so - found (/usr/local/lib/libudev.so)
===>   libinput-1.22.0 depends on shared library: libmtdev.so - found (/usr/local/lib/libmtdev.so)
===>   libinput-1.22.0 depends on shared library: libwacom.so - found (/usr/local/lib/libwacom.so)
===>  Configuring for libinput-1.22.0
The Meson build system
Version: 0.64.1
Source dir: /usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a
Build dir: /usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/_build
Build type: native build
Project name: libinput
Project version: 1.22.0
C compiler for the host machine: cc (clang 14.0.5 "FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)")
C linker for the host machine: cc ld.lld 14.0.5
Host machine cpu family: aarch64
Host machine cpu: aarch64
Compiler for C supports arguments -Wno-unused-parameter: YES 
Compiler for C supports arguments -Wmissing-prototypes: YES 
Compiler for C supports arguments -Wstrict-prototypes: YES 
Compiler for C supports arguments -Wundef: YES 
Compiler for C supports arguments -Wlogical-op: NO 
Compiler for C supports arguments -Wpointer-arith: YES 
Compiler for C supports arguments -Wuninitialized: YES 
Compiler for C supports arguments -Winit-self: YES 
Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
Compiler for C supports arguments -Wimplicit-fallthrough: YES 
Compiler for C supports arguments -Wredundant-decls: YES 
Compiler for C supports arguments -Wincompatible-pointer-types: YES 
Compiler for C supports arguments -Wformat=2: YES 
Compiler for C supports arguments -Wno-missing-field-initializers: YES 
Compiler for C supports arguments -Wmissing-declarations: YES 
Compiler for C supports arguments -fvisibility=hidden: YES 
Fetching value of define "static_assert" : _Static_assert 
Header "dirent.h" has symbol "versionsort" : YES 
Header "errno.h" has symbol "program_invocation_short_name" : NO 
Header "stdlib.h" has symbol "getprogname" : YES 
Has header "xlocale.h" : YES 
Checking if "locale.h" : links: YES 
Header "sys/ptrace.h" has symbol "PTRACE_ATTACH" : NO 
Found pkg-config: /usr/local/bin/pkgconf (1.8.0)
Run-time dependency libudev found: YES 199
Run-time dependency mtdev found: YES 1.1.6
Run-time dependency libevdev found: YES 1.9.1
Library m found: YES
Library rt found: YES
Run-time dependency libwacom found: YES 1.5
Header "sys/epoll.h" has symbol "epoll_create1" : NO 
Library epoll-shim found: YES
Checking if "libepoll-shim check" with dependencies -lepoll-shim, -lrt: links: YES 
Configuring test-util-includes-util-bits.h.c using configuration
Configuring test-util-includes-util-input-event.h.c using configuration
Configuring test-util-includes-util-list.h.c using configuration
Configuring test-util-includes-util-macros.h.c using configuration
Configuring test-util-includes-util-matrix.h.c using configuration
Configuring test-util-includes-util-prop-parsers.h.c using configuration
Configuring test-util-includes-util-ratelimit.h.c using configuration
Configuring test-util-includes-util-strings.h.c using configuration
Configuring test-util-includes-util-time.h.c using configuration
Configuring libinput-version.h using configuration
Program test/helper-copy-and-exec-from-tmp.sh found: YES (/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/test/helper-copy-and-exec-from-tmp.sh)
Program test/symbols-leak-test found: YES (/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/test/symbols-leak-test)
C++ compiler for the host machine: c++ (clang 14.0.5 "FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)")
C++ linker for the host machine: c++ ld.lld 14.0.5
Configuring libinput.1 using configuration
Configuring libinput-analyze.1 using configuration
Configuring libinput-analyze-per-slot-delta.1 using configuration
Configuring libinput-analyze-recording.1 using configuration
Configuring libinput-analyze-touch-down-state.1 using configuration
Configuring libinput-debug-events.1 using configuration
Configuring libinput-debug-tablet.1 using configuration
Configuring libinput-list-devices.1 using configuration
Configuring libinput-measure.1 using configuration
Configuring libinput-measure-fuzz.1 using configuration
Configuring libinput-measure-touchpad-size.1 using configuration
Configuring libinput-measure-touchpad-tap.1 using configuration
Configuring libinput-measure-touchpad-pressure.1 using configuration
Configuring libinput-measure-touch-size.1 using configuration
Configuring libinput-quirks.1 using configuration
Configuring libinput-record.1 using configuration
Configuring libinput-replay.1 using configuration
Configuring libinput-test.1 using configuration
Configuring libinput-quirks-list.1 using configuration
Configuring libinput-quirks-validate.1 using configuration
Configuring config.h using configuration
Build targets in project: 30
NOTICE: Future-deprecated features used:
 * 0.64.0: {'copy arg in configure_file'}

libinput 1.22.0

  User defined options
    buildtype    : release
    infodir      : share/info
    mandir       : man
    prefix       : /usr/local
    strip        : True
    b_colorout   : never
    debug-gui    : false
    documentation: false
    libwacom     : true
    tests        : false

Found ninja-1.11.1 at /usr/local/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
===>  Building for libinput-1.22.0
[  0% 1/101] cc -Itest-build-util-bits.h.p -I. -I.. -I../src -I../include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MD -MQ test-build-util-bits.h.p/meson-generated_.._test-util-includes-util-bits.h.c.o -MF test-build-util-bits.h.p/meson-generated_.._test-util-includes-util-bits.h.c.o.d -o test-build-util-bits.h.p/meson-generated_.._test-util-includes-util-bits.h.c.o -c test-util-includes-util-bits.h.c
[  1% 2/101] cc  -o test-build-util-bits.h test-build-util-bits.h.p/meson-generated_.._test-util-includes-util-bits.h.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include
[  2% 3/101] cc -Itest-build-util-input-event.h.p -I. -I.. -I../src -I../include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MD -MQ test-build-util-input-event.h.p/meson-generated_.._test-util-includes-util-input-event.h.c.o -MF test-build-util-input-event.h.p/meson-generated_.._test-util-includes-util-input-event.h.c.o.d -o test-build-util-input-event.h.p/meson-generated_.._test-util-includes-util-input-event.h.c.o -c test-util-includes-util-input-event.h.c
[  3% 4/101] cc  -o test-build-util-input-event.h test-build-util-input-event.h.p/meson-generated_.._test-util-includes-util-input-event.h.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include
[  4% 5/101] cc -Itest-build-util-list.h.p -I. -I.. -I../src -I../include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MD -MQ test-build-util-list.h.p/meson-generated_.._test-util-includes-util-list.h.c.o -MF test-build-util-list.h.p/meson-generated_.._test-util-includes-util-list.h.c.o.d -o test-build-util-list.h.p/meson-generated_.._test-util-includes-util-list.h.c.o -c test-util-includes-util-list.h.c
[  5% 6/101] cc  -o test-build-util-list.h test-build-util-list.h.p/meson-generated_.._test-util-includes-util-list.h.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include
[  6% 7/101] cc -Itest-build-util-macros.h.p -I. -I.. -I../src -I../include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MD -MQ test-build-util-macros.h.p/meson-generated_.._test-util-includes-util-macros.h.c.o -MF test-build-util-macros.h.p/meson-generated_.._test-util-includes-util-macros.h.c.o.d -o test-build-util-macros.h.p/meson-generated_.._test-util-includes-util-macros.h.c.o -c test-util-includes-util-macros.h.c
[  7% 8/101] cc  -o test-build-util-macros.h test-build-util-macros.h.p/meson-generated_.._test-util-includes-util-macros.h.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include
[  8% 9/101] cc -Itest-build-util-matrix.h.p -I. -I.. -I../src -I../include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MD -MQ test-build-util-matrix.h.p/meson-generated_.._test-util-includes-util-matrix.h.c.o -MF test-build-util-matrix.h.p/meson-generated_.._test-util-includes-util-matrix.h.c.o.d -o test-build-util-matrix.h.p/meson-generated_.._test-util-includes-util-matrix.h.c.o -c test-util-includes-util-matrix.h.c
[  9% 10/101] cc  -o test-build-util-matrix.h test-build-util-matrix.h.p/meson-generated_.._test-util-includes-util-matrix.h.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include
[ 10% 11/101] cc -Itest-build-util-prop-parsers.h.p -I. -I.. -I../src -I../include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MD -MQ test-build-util-prop-parsers.h.p/meson-generated_.._test-util-includes-util-prop-parsers.h.c.o -MF test-build-util-prop-parsers.h.p/meson-generated_.._test-util-includes-util-prop-parsers.h.c.o.d -o test-build-util-prop-parsers.h.p/meson-generated_.._test-util-includes-util-prop-parsers.h.c.o -c test-util-includes-util-prop-parsers.h.c
[ 11% 12/101] cc  -o test-build-util-prop-parsers.h test-build-util-prop-parsers.h.p/meson-generated_.._test-util-includes-util-prop-parsers.h.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include
[ 12% 13/101] cc -Itest-build-util-ratelimit.h.p -I. -I.. -I../src -I../include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MD -MQ test-build-util-ratelimit.h.p/meson-generated_.._test-util-includes-util-ratelimit.h.c.o -MF test-build-util-ratelimit.h.p/meson-generated_.._test-util-includes-util-ratelimit.h.c.o.d -o test-build-util-ratelimit.h.p/meson-generated_.._test-util-includes-util-ratelimit.h.c.o -c test-util-includes-util-ratelimit.h.c
[ 13% 14/101] cc  -o test-build-util-ratelimit.h test-build-util-ratelimit.h.p/meson-generated_.._test-util-includes-util-ratelimit.h.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include
[ 14% 15/101] cc -Itest-build-util-strings.h.p -I. -I.. -I../src -I../include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MD -MQ test-build-util-strings.h.p/meson-generated_.._test-util-includes-util-strings.h.c.o -MF test-build-util-strings.h.p/meson-generated_.._test-util-includes-util-strings.h.c.o.d -o test-build-util-strings.h.p/meson-generated_.._test-util-includes-util-strings.h.c.o -c test-util-includes-util-strings.h.c
[ 15% 16/101] cc  -o test-build-util-strings.h test-build-util-strings.h.p/meson-generated_.._test-util-includes-util-strings.h.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include
[ 16% 17/101] cc -Itest-build-util-time.h.p -I. -I.. -I../src -I../include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MD -MQ test-build-util-time.h.p/meson-generated_.._test-util-includes-util-time.h.c.o -MF test-build-util-time.h.p/meson-generated_.._test-util-includes-util-time.h.c.o.d -o test-build-util-time.h.p/meson-generated_.._test-util-includes-util-time.h.c.o -c test-util-includes-util-time.h.c
[ 17% 18/101] cc  -o test-build-util-time.h test-build-util-time.h.p/meson-generated_.._test-util-includes-util-time.h.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include
[ 18% 19/101] cc -Iliblibinput-util.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ liblibinput-util.a.p/src_util-list.c.o -MF liblibinput-util.a.p/src_util-list.c.o.d -o liblibinput-util.a.p/src_util-list.c.o -c ../src/util-list.c
[ 19% 20/101] cc -Iliblibinput-util.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ liblibinput-util.a.p/src_util-ratelimit.c.o -MF liblibinput-util.a.p/src_util-ratelimit.c.o.d -o liblibinput-util.a.p/src_util-ratelimit.c.o -c ../src/util-ratelimit.c
[ 20% 21/101] cc -Iliblibinput-util.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ liblibinput-util.a.p/src_util-strings.c.o -MF liblibinput-util.a.p/src_util-strings.c.o.d -o liblibinput-util.a.p/src_util-strings.c.o -c ../src/util-strings.c
[ 21% 22/101] cc -Iliblibinput-util.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ liblibinput-util.a.p/src_util-prop-parsers.c.o -MF liblibinput-util.a.p/src_util-prop-parsers.c.o.d -o liblibinput-util.a.p/src_util-prop-parsers.c.o -c ../src/util-prop-parsers.c
[ 22% 23/101] rm -f liblibinput-util.a && llvm-ar csrDT liblibinput-util.a liblibinput-util.a.p/src_util-list.c.o liblibinput-util.a.p/src_util-ratelimit.c.o liblibinput-util.a.p/src_util-strings.c.o liblibinput-util.a.p/src_util-prop-parsers.c.o
[ 23% 24/101] cc -Ilibfilter.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libfilter.a.p/src_filter.c.o -MF libfilter.a.p/src_filter.c.o.d -o libfilter.a.p/src_filter.c.o -c ../src/filter.c
[ 24% 25/101] cc -Ilibfilter.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libfilter.a.p/src_filter-flat.c.o -MF libfilter.a.p/src_filter-flat.c.o.d -o libfilter.a.p/src_filter-flat.c.o -c ../src/filter-flat.c
[ 25% 26/101] cc -Ilibfilter.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libfilter.a.p/src_filter-low-dpi.c.o -MF libfilter.a.p/src_filter-low-dpi.c.o.d -o libfilter.a.p/src_filter-low-dpi.c.o -c ../src/filter-low-dpi.c
[ 26% 27/101] cc -Ilibfilter.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libfilter.a.p/src_filter-mouse.c.o -MF libfilter.a.p/src_filter-mouse.c.o.d -o libfilter.a.p/src_filter-mouse.c.o -c ../src/filter-mouse.c
[ 27% 28/101] cc -Ilibfilter.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libfilter.a.p/src_filter-touchpad.c.o -MF libfilter.a.p/src_filter-touchpad.c.o.d -o libfilter.a.p/src_filter-touchpad.c.o -c ../src/filter-touchpad.c
[ 28% 29/101] cc -Ilibfilter.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libfilter.a.p/src_filter-touchpad-flat.c.o -MF libfilter.a.p/src_filter-touchpad-flat.c.o.d -o libfilter.a.p/src_filter-touchpad-flat.c.o -c ../src/filter-touchpad-flat.c
[ 29% 30/101] cc -Ilibfilter.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libfilter.a.p/src_filter-touchpad-x230.c.o -MF libfilter.a.p/src_filter-touchpad-x230.c.o.d -o libfilter.a.p/src_filter-touchpad-x230.c.o -c ../src/filter-touchpad-x230.c
[ 30% 31/101] cc -Ilibfilter.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libfilter.a.p/src_filter-tablet.c.o -MF libfilter.a.p/src_filter-tablet.c.o.d -o libfilter.a.p/src_filter-tablet.c.o -c ../src/filter-tablet.c
[ 31% 32/101] cc -Ilibfilter.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libfilter.a.p/src_filter-trackpoint.c.o -MF libfilter.a.p/src_filter-trackpoint.c.o.d -o libfilter.a.p/src_filter-trackpoint.c.o -c ../src/filter-trackpoint.c
[ 32% 33/101] cc -Ilibfilter.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libfilter.a.p/src_filter-trackpoint-flat.c.o -MF libfilter.a.p/src_filter-trackpoint-flat.c.o.d -o libfilter.a.p/src_filter-trackpoint-flat.c.o -c ../src/filter-trackpoint-flat.c
[ 33% 34/101] rm -f libfilter.a && llvm-ar csrDT libfilter.a libfilter.a.p/src_filter.c.o libfilter.a.p/src_filter-flat.c.o libfilter.a.p/src_filter-low-dpi.c.o libfilter.a.p/src_filter-mouse.c.o libfilter.a.p/src_filter-touchpad.c.o libfilter.a.p/src_filter-touchpad-flat.c.o libfilter.a.p/src_filter-touchpad-x230.c.o libfilter.a.p/src_filter-tablet.c.o libfilter.a.p/src_filter-trackpoint.c.o libfilter.a.p/src_filter-trackpoint-flat.c.o
[ 34% 35/101] cc -Ilibquirks.a.p -I. -I.. -I../include -I/usr/local/include -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libquirks.a.p/src_quirks.c.o -MF libquirks.a.p/src_quirks.c.o.d -o libquirks.a.p/src_quirks.c.o -c ../src/quirks.c
[ 35% 36/101] rm -f libquirks.a && llvm-ar csrDT libquirks.a libquirks.a.p/src_quirks.c.o
[ 36% 37/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_filter.c.o -MF libinput.so.10.13.0.p/src_filter.c.o.d -o libinput.so.10.13.0.p/src_filter.c.o -c ../src/filter.c
[ 37% 38/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_filter-flat.c.o -MF libinput.so.10.13.0.p/src_filter-flat.c.o.d -o libinput.so.10.13.0.p/src_filter-flat.c.o -c ../src/filter-flat.c
[ 38% 39/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_filter-low-dpi.c.o -MF libinput.so.10.13.0.p/src_filter-low-dpi.c.o.d -o libinput.so.10.13.0.p/src_filter-low-dpi.c.o -c ../src/filter-low-dpi.c
[ 39% 40/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_filter-mouse.c.o -MF libinput.so.10.13.0.p/src_filter-mouse.c.o.d -o libinput.so.10.13.0.p/src_filter-mouse.c.o -c ../src/filter-mouse.c
[ 40% 41/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_filter-touchpad.c.o -MF libinput.so.10.13.0.p/src_filter-touchpad.c.o.d -o libinput.so.10.13.0.p/src_filter-touchpad.c.o -c ../src/filter-touchpad.c
[ 41% 42/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_filter-touchpad-flat.c.o -MF libinput.so.10.13.0.p/src_filter-touchpad-flat.c.o.d -o libinput.so.10.13.0.p/src_filter-touchpad-flat.c.o -c ../src/filter-touchpad-flat.c
[ 42% 43/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_filter-touchpad-x230.c.o -MF libinput.so.10.13.0.p/src_filter-touchpad-x230.c.o.d -o libinput.so.10.13.0.p/src_filter-touchpad-x230.c.o -c ../src/filter-touchpad-x230.c
[ 43% 44/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_filter-tablet.c.o -MF libinput.so.10.13.0.p/src_filter-tablet.c.o.d -o libinput.so.10.13.0.p/src_filter-tablet.c.o -c ../src/filter-tablet.c
[ 44% 45/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_filter-trackpoint.c.o -MF libinput.so.10.13.0.p/src_filter-trackpoint.c.o.d -o libinput.so.10.13.0.p/src_filter-trackpoint.c.o -c ../src/filter-trackpoint.c
[ 45% 46/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_filter-trackpoint-flat.c.o -MF libinput.so.10.13.0.p/src_filter-trackpoint-flat.c.o.d -o libinput.so.10.13.0.p/src_filter-trackpoint-flat.c.o -c ../src/filter-trackpoint-flat.c
[ 46% 47/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_libinput.c.o -MF libinput.so.10.13.0.p/src_libinput.c.o.d -o libinput.so.10.13.0.p/src_libinput.c.o -c ../src/libinput.c
[ 47% 48/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_libinput-private-config.c.o -MF libinput.so.10.13.0.p/src_libinput-private-config.c.o.d -o libinput.so.10.13.0.p/src_libinput-private-config.c.o -c ../src/libinput-private-config.c
[ 48% 49/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev.c.o -MF libinput.so.10.13.0.p/src_evdev.c.o.d -o libinput.so.10.13.0.p/src_evdev.c.o -c ../src/evdev.c
[ 49% 50/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev-debounce.c.o -MF libinput.so.10.13.0.p/src_evdev-debounce.c.o.d -o libinput.so.10.13.0.p/src_evdev-debounce.c.o -c ../src/evdev-debounce.c
[ 50% 51/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev-fallback.c.o -MF libinput.so.10.13.0.p/src_evdev-fallback.c.o.d -o libinput.so.10.13.0.p/src_evdev-fallback.c.o -c ../src/evdev-fallback.c
[ 51% 52/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev-totem.c.o -MF libinput.so.10.13.0.p/src_evdev-totem.c.o.d -o libinput.so.10.13.0.p/src_evdev-totem.c.o -c ../src/evdev-totem.c
[ 52% 53/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev-middle-button.c.o -MF libinput.so.10.13.0.p/src_evdev-middle-button.c.o.d -o libinput.so.10.13.0.p/src_evdev-middle-button.c.o -c ../src/evdev-middle-button.c
[ 53% 54/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev-mt-touchpad.c.o -MF libinput.so.10.13.0.p/src_evdev-mt-touchpad.c.o.d -o libinput.so.10.13.0.p/src_evdev-mt-touchpad.c.o -c ../src/evdev-mt-touchpad.c
[ 54% 55/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev-mt-touchpad-tap.c.o -MF libinput.so.10.13.0.p/src_evdev-mt-touchpad-tap.c.o.d -o libinput.so.10.13.0.p/src_evdev-mt-touchpad-tap.c.o -c ../src/evdev-mt-touchpad-tap.c
[ 55% 56/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev-mt-touchpad-thumb.c.o -MF libinput.so.10.13.0.p/src_evdev-mt-touchpad-thumb.c.o.d -o libinput.so.10.13.0.p/src_evdev-mt-touchpad-thumb.c.o -c ../src/evdev-mt-touchpad-thumb.c
[ 56% 57/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev-mt-touchpad-buttons.c.o -MF libinput.so.10.13.0.p/src_evdev-mt-touchpad-buttons.c.o.d -o libinput.so.10.13.0.p/src_evdev-mt-touchpad-buttons.c.o -c ../src/evdev-mt-touchpad-buttons.c
[ 57% 58/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev-mt-touchpad-edge-scroll.c.o -MF libinput.so.10.13.0.p/src_evdev-mt-touchpad-edge-scroll.c.o.d -o libinput.so.10.13.0.p/src_evdev-mt-touchpad-edge-scroll.c.o -c ../src/evdev-mt-touchpad-edge-scroll.c
[ 58% 59/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev-mt-touchpad-gestures.c.o -MF libinput.so.10.13.0.p/src_evdev-mt-touchpad-gestures.c.o.d -o libinput.so.10.13.0.p/src_evdev-mt-touchpad-gestures.c.o -c ../src/evdev-mt-touchpad-gestures.c
[ 59% 60/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev-tablet.c.o -MF libinput.so.10.13.0.p/src_evdev-tablet.c.o.d -o libinput.so.10.13.0.p/src_evdev-tablet.c.o -c ../src/evdev-tablet.c
[ 60% 61/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev-tablet-pad.c.o -MF libinput.so.10.13.0.p/src_evdev-tablet-pad.c.o.d -o libinput.so.10.13.0.p/src_evdev-tablet-pad.c.o -c ../src/evdev-tablet-pad.c
[ 61% 62/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev-tablet-pad-leds.c.o -MF libinput.so.10.13.0.p/src_evdev-tablet-pad-leds.c.o.d -o libinput.so.10.13.0.p/src_evdev-tablet-pad-leds.c.o -c ../src/evdev-tablet-pad-leds.c
[ 62% 63/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_evdev-wheel.c.o -MF libinput.so.10.13.0.p/src_evdev-wheel.c.o.d -o libinput.so.10.13.0.p/src_evdev-wheel.c.o -c ../src/evdev-wheel.c
[ 63% 64/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_path-seat.c.o -MF libinput.so.10.13.0.p/src_path-seat.c.o.d -o libinput.so.10.13.0.p/src_path-seat.c.o -c ../src/path-seat.c
[ 64% 65/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_udev-seat.c.o -MF libinput.so.10.13.0.p/src_udev-seat.c.o.d -o libinput.so.10.13.0.p/src_udev-seat.c.o -c ../src/udev-seat.c
[ 65% 66/101] cc -Ilibinput.so.10.13.0.p -I. -I.. -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -MD -MQ libinput.so.10.13.0.p/src_timer.c.o -MF libinput.so.10.13.0.p/src_timer.c.o.d -o libinput.so.10.13.0.p/src_timer.c.o -c ../src/timer.c
[ 66% 67/101] cc  -o libinput.so.10.13.0 libinput.so.10.13.0.p/src_filter.c.o libinput.so.10.13.0.p/src_filter-flat.c.o libinput.so.10.13.0.p/src_filter-low-dpi.c.o libinput.so.10.13.0.p/src_filter-mouse.c.o libinput.so.10.13.0.p/src_filter-touchpad.c.o libinput.so.10.13.0.p/src_filter-touchpad-flat.c.o libinput.so.10.13.0.p/src_filter-touchpad-x230.c.o libinput.so.10.13.0.p/src_filter-tablet.c.o libinput.so.10.13.0.p/src_filter-trackpoint.c.o libinput.so.10.13.0.p/src_filter-trackpoint-flat.c.o libinput.so.10.13.0.p/src_libinput.c.o libinput.so.10.13.0.p/src_libinput-private-config.c.o libinput.so.10.13.0.p/src_evdev.c.o libinput.so.10.13.0.p/src_evdev-debounce.c.o libinput.so.10.13.0.p/src_evdev-fallback.c.o libinput.so.10.13.0.p/src_evdev-totem.c.o libinput.so.10.13.0.p/src_evdev-middle-button.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-tap.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-thumb.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-buttons.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-edge-scroll.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-gestures.c.o libinput.so.10.13.0.p/src_evdev-tablet.c.o libinput.so.10.13.0.p/src_evdev-tablet-pad.c.o libinput.so.10.13.0.p/src_evdev-tablet-pad-leds.c.o libinput.so.10.13.0.p/src_evdev-wheel.c.o libinput.so.10.13.0.p/src_path-seat.c.o libinput.so.10.13.0.p/src_udev-seat.c.o libinput.so.10.13.0.p/src_timer.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libinput.so.10 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -Wl,-rpath,/usr/local/lib -Wl,-rpath-link,/usr/local/lib liblibinput-util.a libquirks.a -Wl,--version-script,/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src/libinput.sym /usr/local/lib/libmtdev.so /usr/local/lib/libudev.so /usr/local/lib/libevdev.so /usr/local/lib/libepoll-shim.so -lrt -lm /usr/local/lib/libwacom.so -Wl,--end-group
FAILED: libinput.so.10.13.0 
cc  -o libinput.so.10.13.0 libinput.so.10.13.0.p/src_filter.c.o libinput.so.10.13.0.p/src_filter-flat.c.o libinput.so.10.13.0.p/src_filter-low-dpi.c.o libinput.so.10.13.0.p/src_filter-mouse.c.o libinput.so.10.13.0.p/src_filter-touchpad.c.o libinput.so.10.13.0.p/src_filter-touchpad-flat.c.o libinput.so.10.13.0.p/src_filter-touchpad-x230.c.o libinput.so.10.13.0.p/src_filter-tablet.c.o libinput.so.10.13.0.p/src_filter-trackpoint.c.o libinput.so.10.13.0.p/src_filter-trackpoint-flat.c.o libinput.so.10.13.0.p/src_libinput.c.o libinput.so.10.13.0.p/src_libinput-private-config.c.o libinput.so.10.13.0.p/src_evdev.c.o libinput.so.10.13.0.p/src_evdev-debounce.c.o libinput.so.10.13.0.p/src_evdev-fallback.c.o libinput.so.10.13.0.p/src_evdev-totem.c.o libinput.so.10.13.0.p/src_evdev-middle-button.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-tap.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-thumb.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-buttons.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-edge-scroll.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-gestures.c.o libinput.so.10.13.0.p/src_evdev-tablet.c.o libinput.so.10.13.0.p/src_evdev-tablet-pad.c.o libinput.so.10.13.0.p/src_evdev-tablet-pad-leds.c.o libinput.so.10.13.0.p/src_evdev-wheel.c.o libinput.so.10.13.0.p/src_path-seat.c.o libinput.so.10.13.0.p/src_udev-seat.c.o libinput.so.10.13.0.p/src_timer.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libinput.so.10 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -Wl,-rpath,/usr/local/lib -Wl,-rpath-link,/usr/local/lib liblibinput-util.a libquirks.a -Wl,--version-script,/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src/libinput.sym /usr/local/lib/libmtdev.so /usr/local/lib/libudev.so /usr/local/lib/libevdev.so /usr/local/lib/libepoll-shim.so -lrt -lm /usr/local/lib/libwacom.so -Wl,--end-group
ld: error: undefined symbol: versionsort
>>> referenced by quirks.c
>>>               libquirks.a.p/src_quirks.c.o:(quirks_init_subsystem) in archive libquirks.a
>>> referenced by quirks.c
>>>               libquirks.a.p/src_quirks.c.o:(quirks_init_subsystem) in archive libquirks.a
cc: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/x11/libinput
*** Error code 1

Stop.
make: stopped in /usr/ports/x11/libinput
root@Fred_RasPi4B:/usr/ports/x11/libinput # uname -aKropmn
FreeBSD Fred_RasPi4B 14.0-CURRENT FreeBSD 14.0-CURRENT #3 main-n259619-07d1c4a919c0-dirty: Thu Dec  8 13:21:46 PST 2022     root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-VCHIQ arm64 aarch64 1400073
root@Fred_RasPi4B:/usr/ports/x11/libinput # 



https://reviews.freebsd.org/rG27e60668bf29

Related files:

/usr/local/include/dirent.h

/usr/local/include/cdefs.h

/usr/src/lib/libc/gen/scandir.c   versionsort  is located inside a #ifndef  I_AM_SCANDIR_B  #endif section.   What happens if I_AM_SCANDIR_B  is DEFINED? No versionsort() function created ? 

Line #163   #ifndef I_AM_SCANDIR_B

Line #195-200  int versionsort()

Line #209  #endif


/usr/ports/x11/libinput    'make install clean' breaks because of error:   versionsort  undefined

How to debug and see which #DEFINE  are enabled?


This all happened, when  I used  pkg update ; pkg upgrade  on  FreeBSD 14.0-CURRENT  from my Raspberry Pi 4B.

Now running  'startx'  prints an XFCE4 desktop, but  file  libinput.so.10.13.0 errored out when loading, because of missing  versionsort symbol undefined

So my usb keyboard and usb mouse no longer work.  No input is coming in.   Is anybody using Desktop Environments like MATE or XFCE4 and have  this same problem of no keyboard or mouse input?  Can you update your ports for the ARM64 aarch64 FreeBSD.  portsnap fetch update  ;  cd /usr/ports/x11/libinput;  make install clean  Does that make run without errors?   

nm -D /usr/local/lib/libinput.so.10     Do you find a symbol versionsort  undefined ? Capitol U

                 U versionsort

readelf -d /usr/local/lib/libinput.so.10.13.0
readelf -a /usr/local/lib/libinput.so.10.13.0


Quelrond Q is running Desktop Environment Enlightenment  https://lists.freebsd.org/archives/freebsd-arm/2022-December/002089.html

Hello,

Enlightenment installed from package worked perfectly on RPi4 with 4GB de RAM on FreeBSD 13.

Peter 


URL reference:

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

January 3, 2023  Chance to make, compile  /usr/ports/x11/libinput

/usr/src/lib/libc/gen   directory contains the file scandir.c  that has the definition of function versionsort()


/usr/ports/x11/libinput  does not link up with object file scandir.c.o and therefore  function versionsort() is left UNDEFINED and the 'ld'  linker errors out

file   src/libinput-versionsort.h:75:versionsort(const struct dirent **a, const struct dirent **b)

file quirks.c  calls function versionsort()

/src/quirks.c:42:#include "libinput-versionsort.h"

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src/quirks.c:1092: ndev = scandir(data_path, &namelist, is_data_file, versionsort);

root@Fred_RasPi4B:/usr/ports/x11/libinput # grep -nr scandir *

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src/quirks.c:937: * provided by scandir so they do exist. Short of races we

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src/quirks.c:1092: ndev = scandir(data_path, &namelist, is_data_file, versionsort);

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/test/litest.c:1484: ndev = scandir(LIBINPUT_QUIRKS_SRCDIR,

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/tools/libinput-record.c:1881: ndev = scandir("/dev/input", &namelist, is_event_node, versionsort);

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/tools/libinput-record.c:1943: ndev = scandir("/dev/input", &namelist, is_event_node, versionsort);


So, I don't understand how there is a reference to scandir() function and that is linked ok, but the versionsort() function is declared in file src/libinput-versionsort.h but left declared in file /usr/src/lib/libc/gen/scandir.c?   Only seems that quirks.c performs a test call using versionsort() function

file   src/libinput-versionsort.h:75:versionsort(const struct dirent **a, const struct dirent **b)


root@Fred_RasPi4B:/usr/ports/x11/libinput # make install clean

===>  Building for libinput-1.22.0

[  3% 4/26] cc  -o libinput.so.10.13.0 libinput.so.10.13.0.p/src_filter.c.o libinput.so.10.13.0.p/src_filter-flat.c.o libinput.so.10.13.0.p/src_filter-low-dpi.c.o libinput.so.10.13.0.p/src_filter-mouse.c.o libinput.so.10.13.0.p/src_filter-touchpad.c.o libinput.so.10.13.0.p/src_filter-touchpad-flat.c.o libinput.so.10.13.0.p/src_filter-touchpad-x230.c.o libinput.so.10.13.0.p/src_filter-tablet.c.o libinput.so.10.13.0.p/src_filter-trackpoint.c.o libinput.so.10.13.0.p/src_filter-trackpoint-flat.c.o libinput.so.10.13.0.p/src_libinput.c.o libinput.so.10.13.0.p/src_libinput-private-config.c.o libinput.so.10.13.0.p/src_evdev.c.o libinput.so.10.13.0.p/src_evdev-debounce.c.o libinput.so.10.13.0.p/src_evdev-fallback.c.o libinput.so.10.13.0.p/src_evdev-totem.c.o libinput.so.10.13.0.p/src_evdev-middle-button.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-tap.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-thumb.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-buttons.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-edge-scroll.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-gestures.c.o libinput.so.10.13.0.p/src_evdev-tablet.c.o libinput.so.10.13.0.p/src_evdev-tablet-pad.c.o libinput.so.10.13.0.p/src_evdev-tablet-pad-leds.c.o libinput.so.10.13.0.p/src_evdev-wheel.c.o libinput.so.10.13.0.p/src_path-seat.c.o libinput.so.10.13.0.p/src_udev-seat.c.o libinput.so.10.13.0.p/src_timer.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libinput.so.10 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -Wl,-rpath,/usr/local/lib -Wl,-rpath-link,/usr/local/lib liblibinput-util.a libquirks.a -Wl,--version-script,/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src/libinput.sym /usr/local/lib/libmtdev.so /usr/local/lib/libudev.so /usr/local/lib/libevdev.so /usr/local/lib/libepoll-shim.so -lrt -lm /usr/local/lib/libwacom.so -Wl,--end-group

FAILED: libinput.so.10.13.0 

cc  -o libinput.so.10.13.0 libinput.so.10.13.0.p/src_filter.c.o libinput.so.10.13.0.p/src_filter-flat.c.o libinput.so.10.13.0.p/src_filter-low-dpi.c.o libinput.so.10.13.0.p/src_filter-mouse.c.o libinput.so.10.13.0.p/src_filter-touchpad.c.o libinput.so.10.13.0.p/src_filter-touchpad-flat.c.o libinput.so.10.13.0.p/src_filter-touchpad-x230.c.o libinput.so.10.13.0.p/src_filter-tablet.c.o libinput.so.10.13.0.p/src_filter-trackpoint.c.o libinput.so.10.13.0.p/src_filter-trackpoint-flat.c.o libinput.so.10.13.0.p/src_libinput.c.o libinput.so.10.13.0.p/src_libinput-private-config.c.o libinput.so.10.13.0.p/src_evdev.c.o libinput.so.10.13.0.p/src_evdev-debounce.c.o libinput.so.10.13.0.p/src_evdev-fallback.c.o libinput.so.10.13.0.p/src_evdev-totem.c.o libinput.so.10.13.0.p/src_evdev-middle-button.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-tap.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-thumb.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-buttons.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-edge-scroll.c.o libinput.so.10.13.0.p/src_evdev-mt-touchpad-gestures.c.o libinput.so.10.13.0.p/src_evdev-tablet.c.o libinput.so.10.13.0.p/src_evdev-tablet-pad.c.o libinput.so.10.13.0.p/src_evdev-tablet-pad-leds.c.o libinput.so.10.13.0.p/src_evdev-wheel.c.o libinput.so.10.13.0.p/src_path-seat.c.o libinput.so.10.13.0.p/src_udev-seat.c.o libinput.so.10.13.0.p/src_timer.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libinput.so.10 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -Wl,-rpath,/usr/local/lib -Wl,-rpath-link,/usr/local/lib liblibinput-util.a libquirks.a -Wl,--version-script,/usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src/libinput.sym /usr/local/lib/libmtdev.so /usr/local/lib/libudev.so /usr/local/lib/libevdev.so /usr/local/lib/libepoll-shim.so -lrt -lm /usr/local/lib/libwacom.so -Wl,--end-group

ld: error: undefined symbol: versionsort

>>> referenced by quirks.c

>>>               libquirks.a.p/src_quirks.c.o:(quirks_init_subsystem) in archive libquirks.a

>>> referenced by quirks.c

>>>               libquirks.a.p/src_quirks.c.o:(quirks_init_subsystem) in archive libquirks.a

cc: error: linker command failed with exit code 1 (use -v to see invocation)

[  7% 4/26] cc -Itest-builddir-lookup.p -I. -I.. -I../src -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MD -MQ test-builddir-lookup.p/test_test-builddir-lookup.c.o -MF test-builddir-lookup.p/test_test-builddir-lookup.c.o.d -o test-builddir-lookup.p/test_test-builddir-lookup.c.o -c ../test/test-builddir-lookup.c

[ 11% 4/26] /usr/local/bin/meson --internal vcstagger ../src/libinput-git-version.h.in libinput-git-version.h unknown /usr/ports/x11/libinput/work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a @VCS_TAG@ '(.*)' /usr/local/bin/git describe

fatal: not a git repository (or any of the parent directories): .git

[ 16% 4/25] cc -Iptraccel-debug.p -I. -I.. -I../src -I../include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libevdev-1.0 -I/usr/local/include/libwacom-1.0 -I/usr/local/include/gudev-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wno-missing-field-initializers -Wmissing-declarations -fvisibility=hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MD -MQ ptraccel-debug.p/tools_ptraccel-debug.c.o -MF ptraccel-debug.p/tools_ptraccel-debug.c.o.d -o ptraccel-debug.p/tools_ptraccel-debug.c.o -c ../tools/ptraccel-debug.c

ninja: build stopped: subcommand failed.

===> Compilation failed unexpectedly.

Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to

the maintainer.

*** Error code 1


Stop.

make[1]: stopped in /usr/ports/x11/libinput

*** Error code 1


Stop.

make: stopped in /usr/ports/x11/libinput

root@Fred_RasPi4B:/usr/ports/x11/libinput # grep -n versionsort *.c

grep: *.c: No such file or directory

root@Fred_RasPi4B:/usr/ports/x11/libinput # grep -nr versionsort *.c

grep: *.c: No such file or directory

root@Fred_RasPi4B:/usr/ports/x11/libinput # grep -nr versionsort *

build4_test.txt:9:ld: error: undefined symbol: versionsort

build_libinput_test2.txt:46:Header "dirent.h" has symbol "versionsort" : YES 

build_libinput_test3.txt:25:ld: error: undefined symbol: versionsort

test_build_libinput.txt:45:Header "dirent.h" has symbol "versionsort" : YES 

test_build_libinput.txt:188:ld: error: undefined symbol: versionsort

test_error__BSD_VISIBLE.txt:17:ld: error: undefined symbol: versionsort

test_error__BSD_VISIBLE.txt:86:Header "dirent.h" has symbol "versionsort" : YES 

test_error__BSD_VISIBLE.txt:229:ld: error: undefined symbol: versionsort

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/meson.build:114:if cc.has_header_symbol('dirent.h', 'versionsort', prefix : prefix)

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/quirks/README.md:22:Data files are read in versionsort order, read order determines how values

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src/libinput-versionsort.h:75:versionsort(const struct dirent **a, const struct dirent **b)

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src/quirks.c:42:#include "libinput-versionsort.h"

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/src/quirks.c:1092: ndev = scandir(data_path, &namelist, is_data_file, versionsort);

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/test/litest.c:1487:        versionsort);

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/test/test-utils.c:40:#include "libinput-versionsort.h"

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/tools/libinput-record.c:46:#include "libinput-versionsort.h"

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/tools/libinput-record.c:1881: ndev = scandir("/dev/input", &namelist, is_event_node, versionsort);

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/tools/libinput-record.c:1943: ndev = scandir("/dev/input", &namelist, is_event_node, versionsort);

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/meson.build.orig:114:if cc.has_header_symbol('dirent.h', 'versionsort', prefix : prefix)

Binary file work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/_build/meson-private/coredata.dat matches

Binary file work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/_build/meson-private/build.dat matches

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/_build/meson-logs/meson-log.txt:323:            #ifndef versionsort

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/_build/meson-logs/meson-log.txt:324:                versionsort;

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/_build/meson-logs/meson-log.txt:332:                versionsort;

work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/_build/meson-logs/meson-log.txt:336:Header "dirent.h" has symbol "versionsort" : YES 

Binary file work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/_build/libquirks.a.p/src_quirks.c.o matches

grep: work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/_build/libinput.so.10: No such file or directory

grep: work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/_build/libinput.so: No such file or directory

Binary file work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/_build/libinput-record.p/tools_libinput-record.c.o matches

Binary file work/libinput-fc59e574e050c502c9a3adefacf97babf3d09c7a/_build/.ninja_deps matches

root@Fred_RasPi4B:/usr/ports/x11/libinput # 



Hello,  Fred here asking a programming question.  I am using FreeBSD 14.0 and /usr/ports/x11/libinput   Here is my problem.   Read the bottom of the blogpost first.
https://ghostbsd-arm64.blogspot.com/2022/11/libinput-module-error-fbsd17-not-found.html   I am having problems with function versionsort() being defined and used in src/quirks.c file but NOT declared. It is not linked with scandir.c.o objectfile or library archive.   It versionsort() function is declared inside  /usr/src/lib/libc/gen/scandir.c    which includes /usr/local/include   cdefs.h and dirent.h 

I don't know how to add the proper library archive or scandir.c.o object file for linking, when running 'MAKE' in directory /usr/ports/x11/libinput/  to create /usr/local/lib/libinput.so.10.13.0 file

Contents of /var/log/Xorg.0.log file  

[   682.629] (II) LoadModule: "libinput"
[   682.630] (II) Loading /usr/local/lib/xorg/modules/input/libinput_drv.so
[   682.636] (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"
[   682.636] (EE) Failed to load module "libinput" (loader failed, 0)
[   682.636] (EE) No input driver matching `libinput'
[   682.636] (II) Falling back to input driver `libinput'
[   682.636] (II) LoadModule: "libinput"
[   682.636] (II) Loading /usr/local/lib/xorg/modules/input/libinput_drv.so
[   682.642] (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"
[   682.642] (EE) Failed to load module "libinput" (loader failed, 0)
[   682.644] scfb: SaveScreen 0
[   682.644] scfb: SaveScreen done
fred@fredTC93-pc ~/A/v/log> ls -l
total 133
-rw-r--r--  1 fred  fred   2123 Jan  5 23:42 scp_howto_example.txt
-rw-r--r--  1 fred  fred  11363 Jan  5 23:40 Xorg.0.log

See,  Failed to load module "libinput"  (loader failed, 0)   above. 
/usr/local/lib/libinput.so.10: Undefined symbol "versionsort@FBSD_1.7"

Email sent back to Emmanuel Vadot and Peter Hutterer (@whot) to thank them.

 

Yes the new /lib/libc.so.7 library file created from cd /usr/src; make buildworld  has the necessary library linking symbol   versionsort

fred@Fred_RasPi4B:~ $ date
Wed Jan 18 03:45:57 PST 2023
fred@Fred_RasPi4B:~ $ uname -a
FreeBSD Fred_RasPi4B 14.0-CURRENT FreeBSD 14.0-CURRENT #6 main-n259952-7e2600ea7be2-dirty: Sun Jan 15 18:14:05 PST 2023     root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-VCHIQ arm64
fred@Fred_RasPi4B:~ $ uname -Kmnopr
FreeBSD Fred_RasPi4B 14.0-CURRENT arm64 aarch64 1400077
fred@Fred_RasPi4B:~ $ readelf -s /lib/libc.so.7 | grep versionsort
  3003: 00000000000b7398    20 FUNC    GLOBAL DEFAULT   13 versionsort@@FBSD_1.7 (9)
fred@Fred_RasPi4B:~ $ readelf -s /lib/libc.so.7 | grep -i versionsort
  3003: 00000000000b7398    20 FUNC    GLOBAL DEFAULT   13 versionsort@@FBSD_1.7 (9)
fred@Fred_RasPi4B:~ $ readelf -s /lib/libc.so.7 | grep -i alphasort
   257: 00000000000b7384    20 FUNC    GLOBAL DEFAULT   13 alphasort@@FBSD_1.5 (7)
   258: 00000000000b76f4    20 FUNC    GLOBAL DEFAULT   13 alphasort@FBSD_1.0 (2)
fred@Fred_RasPi4B:~ $ readelf -s /lib/libc.so.7 | grep -i scandir
   192: 00000000000b7118    84 FUNC    GLOBAL DEFAULT   13 scandir@@FBSD_1.5 (7)
   193: 00000000000b753c   432 FUNC    GLOBAL DEFAULT   13 scandir@FBSD_1.0 (2)
  1913: 00000000000b73b4   392 FUNC    GLOBAL DEFAULT   13 scandir_b@@FBSD_1.6 (8)
  2245: 00000000000b7314   112 FUNC    GLOBAL DEFAULT   13 scandirat@@FBSD_1.7 (9)
fred@Fred_RasPi4B:~ $ 

root@Fred_RasPi4B:/home/fred # ls -l  /lib/libc.so.7
-r--r--r--  1 root  wheel  1846456 Jan 17 23:09 /lib/libc.so.7

So with versionsort symbol present in library file /lib/libc.so.7,    startx    command will call ~/.xinitrc file  containing

root@Fred_RasPi4B:/home/fred # cat .xinitrc
exec mate-session
# exec xfce4-session

root@Fred_RasPi4B:~ # cat .xinitrc
# exec mate-session
# exec xfce4-session
# exec startxfce4   # /usr/bin
exec /usr/local/bin/startxfce4 --with-ck-launch

From command line echo "exec /usr/local/bin/startxfce4 --with-ck-launch" > ~/.xinitrc
https://forum.xfce.org/viewtopic.php?id=15580 example of using --with-ck-launch 
 

Thank you  Emmanuel Vadot for pointing me to rebuild library file /lib/libc.so.7 with "make buildworld ??"

Thank you Peter Hutterer (@whot) for removing my post that was not suitable and had  high jacked Andreas Post about Wayland error issue.





Comments

Popular posts from this blog

FreeBSD 14.0 Compiling kernel for Raspberry Pi 4B

HDMI Audio sound patches into GhostBSD source code /usr/ghost14/ghostbsd-src SOLVED Jan20 2024

How to install GhostBSD-Arm64 into a USB Flash Drive stick February 5, 2024 edition.