GNOME Bugzilla – Bug 791052
Missing dependency on pthread
Last modified: 2017-12-01 16:38:59 UTC
The terminal server calls pthread_atfork(), but the GNOME Terminal build does not explicitly depend on pthreads. The reason why it works is because there's a transitive implicit dependency coming from GLib — but GLib may not necessarily build with pthreads or exposes this dependency explicitly in any way. I only caught this because the pkg-config file for GLib temporarily lost the pthread variables in the Meson build. Ideally, GNOME Terminal should use the AX_PTHREADS m4 macro to check for pthread, and add PTHREADS_CFLAGS and PTHREADS_LIBS to the terminal server target, since it's using pthread API directly, instead of GLib wrappers.