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)
Fri, May 10, 7:20 PM
Unknown Object (File)
Thu, May 2, 2:24 PM
Unknown Object (File)
Wed, May 1, 7:36 AM
Unknown Object (File)
Wed, May 1, 7:35 AM
Unknown Object (File)
Fri, Apr 26, 3:19 PM
Unknown Object (File)
Fri, Apr 26, 3:19 PM
Unknown Object (File)
Fri, Apr 26, 3:19 PM
Unknown Object (File)
Fri, Apr 26, 3:19 PM
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.