Page MenuHomeFreeBSD

tools/build: Support building with glibc 2.38
ClosedPublic

Authored by andrew on Oct 19 2023, 4:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 21, 2:27 AM
Unknown Object (File)
Mon, Oct 21, 2:27 AM
Unknown Object (File)
Mon, Oct 21, 2:22 AM
Unknown Object (File)
Mon, Oct 21, 2:21 AM
Unknown Object (File)
Fri, Oct 18, 8:06 PM
Unknown Object (File)
Sep 18 2024, 11:28 AM
Unknown Object (File)
Sep 17 2024, 10:54 AM
Unknown Object (File)
Sep 16 2024, 11:55 AM
Subscribers

Details

Summary

Ubuntu 23.10 uses glibc 2.38. This adds strlcpy and strlcmp so we need
to remove them from the cross build environment.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This looks sensible, but please file a dummy PR against https://github.com/freebsd/freebsd-src in order to run it through the various GitHub Actions runners to test other versions of Ubuntu (and macOS, but shouldn't be relevant) before merging.

This revision is now accepted and ready to land.Oct 19 2023, 4:57 PM
andrew retitled this revision from tools/build: Support building with glibc 2.28 to tools/build: Support building with glibc 2.38.Oct 20 2023, 10:43 AM
andrew edited the summary of this revision. (Show Details)
This revision now requires review to proceed.Oct 20 2023, 10:44 AM
This revision is now accepted and ready to land.Oct 20 2023, 1:53 PM
tools/build/Makefile
204

This seems super fragile, though a nice one liner.
A more direct test would be to run #include <string.h> through the compiler's pre-processor and grep for strlcpy.

tools/build/Makefile
204

It's a copy of an earlier check for explicit_bzero

This revision was automatically updated to reflect the committed changes.