The configure script has many calls to the undeclared exit function. Upstream says the project is archived, so failing this here.
Sort of fixed in pthsem-2.0.7-26.fc38, but I can't build due to bug 2155455. Closing nevertheless.