]> git.ipfire.org Git - thirdparty/glibc.git/commit
hurd: Fix missing pthread_ compat symbol in libc
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 17 Jul 2024 00:03:13 +0000 (02:03 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 1 Aug 2024 21:58:51 +0000 (23:58 +0200)
commit8dc3f4f8adcfbc991b1677464dd7cd485f4e6d85
treeec34dd8c56cc69226a20169f4c67200d1d78bd04
parentec119972cb2598c04ec7d4219e20506006836f64
hurd: Fix missing pthread_ compat symbol in libc

5476f8cd2e68 ("htl: move pthread_self info libc.") and
9dfa2562162b ("htl: move pthread_equal into libc") to
1dc0bc8f0748 ("htl: move pthread_attr_setdetachstate into libc")
moved some pthread_ symbols from libpthread.so to libc.so, but missed
adding the compat version like 5476f8cd2e68 ("htl: move pthread_self
info libc.") did: libc already had these symbols as forwards,
but versioned GLIBC_2.21, while the symbols in libpthread.so were
versioned GLIBC_2.12.

To fix running executables built before this, we thus have to add the
GLIBC_2.12 version, otherwise execution fails with e.g.

/usr/lib/i386-gnu/libglib-2.0.so: symbol lookup error: /usr/lib/i386-gnu/libglib-2.0.so: undefined symbol: pthread_attr_setinheritsched, version GLIBC_2.12
12 files changed:
htl/Versions
sysdeps/htl/pt-attr-getdetachstate.c
sysdeps/htl/pt-attr-getinheritsched.c
sysdeps/htl/pt-attr-getschedparam.c
sysdeps/htl/pt-attr-getschedpolicy.c
sysdeps/htl/pt-attr-setdetachstate.c
sysdeps/htl/pt-attr-setinheritsched.c
sysdeps/htl/pt-attr-setschedpolicy.c
sysdeps/htl/pt-equal.c
sysdeps/htl/pt-getschedparam.c
sysdeps/htl/pt-setschedparam.c
sysdeps/mach/hurd/i386/libc.abilist