undefined symbol: pthread_yield
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hello,
while compiling our software in a Ubuntu jammy docker image I noticed a backward incompatibility issue in glibc 2.34-0ubuntu3. Our build fails with:
ld.lld: error: undefined symbol: pthread_yield
>>> referenced by tlibthrd.cxx:1546 (ptlib/
>>> tlib.o:
>>> did you mean: pthread_
>>> defined in: /lib/x86_
The libpt_d_s.a library was statically built on Ubuntu 20.04 and depends on a lot of pthread symbols:
$ nm /builds/
U pthread_
U pthread_attr_init
U pthread_
U pthread_
U pthread_
U pthread_yield
Recompiling libpt against the current glibc will redirect from pthread_yield to sched_yield, but nevertheless it would be nice if existing libraries could be used for the transition phase.
The changes behavior is most likely due to
https:/
Thanks,
Gregor
Status changed to 'Confirmed' because the bug affects multiple users.