You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following is copied from a pull request. It probably belongs here for posterity.
I suppose there should be more work on this. Before using pthread_atfork() indiscriminately, I was assured by glibc developers that pthread_atfork has been moved to normal libc. Exactly how they do it I do not directly see. But objdump --syms /usr/lib64/libc-2.30.so | grep atfork shows: __register_atfork and digging into nptl/pthread_atfork.c shows that there is a weak alias that uses __register_atfork.
I have no idea which version of glibc started making pthread_atfork "work" for plain libc linking. Perhaps some work needs to be done to find that and create a proper test for configure that does the right thing for both old and new glibc.
Building on some distros (openSUSE 15.1) requires the addition of -lpthread in order to build successfully:
I noticed this with 0.7.10, but the issue also exists on master.
I can build successfully if I do:
The text was updated successfully, but these errors were encountered: