[Bug libc/34437] New: posix_spawn_file_actions_addchdir and posix_spawn_file_actions_addfchdir not available as exported symbols
bruno at clisp dot org via Glibc-bugs <[email protected]> Sun, 26 Jul 2026 18:15:32 +0000
| Newsgroups | gmane.comp.lib.glibc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://sourceware.org/bugzilla/show_bug.cgi?id=3D34437
Bug ID: 34437
Summary: posix_spawn_file_actions_addchdir and
posix_spawn_file_actions_addfchdir not available as
exported symbols
Product: glibc
Version: 2.44
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: bruno at clisp dot org
CC: drepper.fsp at gmail dot com
Target Milestone: ---
Commit 7594b4e5a75d41e891782aa7e3fb51924f6840cb (committed on 2026-04-07) a=
dds
the functions posix_spawn_file_actions_addchdir and
posix_spawn_file_actions_addfchdir, defined by POSIX:2024, through a
modification of <spawn.h>.
They are *not* exported at the linker level, from libc.so. In other words, =
they
are missing from glibc-2.44/sysdeps/unix/sysv/linux/x86_64/64/libc.abilist.
This has the effect that the usual Autoconf test
AC_CHECK_FUNCS([posix_spawn_file_actions_addchdir])
or
AC_CHECK_FUNCS([posix_spawn_file_actions_addfchdir])
reports these functions as nonexistent in glibc 2.44.
Each such symbol where AC_CHECK_FUNCS does not work causes extra trouble to
developers (such as seen for 'strerror_r').
Glibc has a proper mechanism for creating an alias name for an existing sym=
bol
at the linker level, such as seen for
- sprintf and _IO_sprintf
- pthread_getspecific and __pthread_getspecific
- pthread_key_create and __pthread_key_create
- free and cfree
- obstack_free and _obstack_free
- ffs and __ffs
- memcmp and __memcmpeq
- sysctl and __sysctl
and so on. Why not use it here as well?
Originally reported by Xi Ruoyao <[email protected]> at
https://lists.gnu.org/archive/html/bug-gnulib/2026-07/msg00164.html
--=20
You are receiving this mail because:
You are on the CC list for the bug.=