HomeFreeBSD

libc: Add strverscmp(3) and versionsort(3)
Concern Raised27e60668bf29

Description

libc: Add strverscmp(3) and versionsort(3)

(cherry picked from commit 05c9a0158f6837bb3a3781e4ed75f66115f6415a)

Details

Auditors
fred_thegalacticzoo.com
Provenance
obiwac_gmail.comAuthored on Aug 24 2022, 11:20 PM
kibCommitted on Aug 31 2022, 1:20 AM
Parents
rGa7593bf87d54: Document scandirat(3)
Branches
Unknown
Tags
Unknown

Event Timeline

fred_thegalacticzoo.com raised a concern with this commit.EditedDec 25 2022, 9:09 AM

Hello using aarch64 FreeBSD 14.0-CURRENT on Raspberry Pi 4B with 8GB dram. I am new user to FreeBSD and asking to look at file /usr/src/lib/libc/gen/scandir.c The #ifdef #endif at the end of the file encloses functions alphasort() and versionsort() What happens #ifndef I_AM_SCANDIR_B is undefined?? for aarch64

The problem occurs when building libinput from the ports at /usr/ports/x11/libinput && make install clean

Start near the bottom , which is the latest information of the following post.
versionsort() missing breaks /usr/ports/x11/libinput Here I placed many lines of ideas I looked up during my learning experience. Maybe in this clutter, you will discover some little undefined piece of why scandir.o leaves symbol versionsort Undefined.

My test fix was, to copy the vesionsort() lines outside the #ifndef scandir_b #endif construct. make -I /usr/src/lib/libc/gen/include scandir.o nm -D libinput.so.10.13.0 to find the Dynamic --dynamic symbols that 'ld' linker loader relocates at runtime versionsort was there
I realize I don't have enough knowledge to give you very specific details. Happy to provide more information, if you tell me HOW TO do this with an example command line. Fred

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

Very Happy with running MATE desktop on aarch64 on Raspberry Pi 4B. Included Patch VCHIQ to enable Audio coming out the HDMI Audio speakers on the Television when play YouTube videos. Hope to see Kernel Src updated with that VCHIQ audio patch. See website link for more details
FreeBSD 14.0 Compiling kernel for Raspberry Pi 4B, with Audio Patch VCHIQ

Related GNU URLs on scandir and versionsort . Yes I know this is FreeBSD 14.0-CURRENT
GNU Scanning Directory Content Manual

Notice the 3 newer functions scandir64 , alphasort64, versionsort64 Do you have a future time or plan to support these GNU Linux calls in updated scandir.c file?

This commit now has outstanding concerns.Dec 25 2022, 9:09 AM