From c9cca82612e9b926ea3acbcdc8b25a3a499e1b40 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 15 Nov 2026 15:45:02 +0100 Subject: 0.5.1: silence the GLIBC_2.39 weak-version warning on the target .cargo/config.toml defines pidfd_spawnp/pidfd_getpid as absolute zero for i686, removing the version need while keeping std's NULL-check fallback. --- .cargo/config.toml | 13 +++++++++++++ CHANGELOG.md | 9 +++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..17369d2 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,13 @@ +# Rust's std references glibc 2.39's pidfd_spawnp/pidfd_getpid as *weak* symbols. +# On an older glibc the dynamic linker resolves them to NULL (std falls back to +# posix_spawn), but it also prints a warning on every start: +# +# /lib/i386-linux-gnu/libc.so.6: weak version `GLIBC_2.39' not found +# +# Defining them locally as absolute 0 removes the version need while keeping the +# same runtime behaviour: the check sees NULL and takes the fallback path. +[target.i686-unknown-linux-gnu] +rustflags = [ + "-C", "link-arg=-Wl,--defsym,pidfd_spawnp=0", + "-C", "link-arg=-Wl,--defsym,pidfd_getpid=0", +] diff --git a/CHANGELOG.md b/CHANGELOG.md index 6340520..928f05a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,15 @@ break the interface, **PATCH** for bug fixes. file, and the tool schemas the model sees. Anything a script or a resumed session could depend on counts as API. +## 0.5.1 + +### Fixed +- Every start on the target printed + `weak version 'GLIBC_2.39' not found`. Rust's std references glibc 2.39's + `pidfd_spawnp`/`pidfd_getpid` weakly; the dynamic linker still warns. They are + now defined as absolute zero for the i686 target, which removes the version + need and leaves the fallback path unchanged. + ## 0.5.0 ### Added diff --git a/Cargo.lock b/Cargo.lock index ea416df..46e4610 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,7 +10,7 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" [[package]] name = "agent686" -version = "0.5.0" +version = "0.5.1" dependencies = [ "crossterm", "libc", diff --git a/Cargo.toml b/Cargo.toml index ea03c5e..4c04ee7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "agent686" -version = "0.5.0" +version = "0.5.1" edition = "2021" description = "A small coding agent for a 32-bit Debian box" publish = false -- cgit v1.2.3