Created attachment 354650 [details, diff] patch to make the package build against poppler 0.24 I can't be sure if this patch is fully correct, cause I'm not sure about timing between unlink and close/fdopen and potential leaks. Most of it seems correct though. As poppler 0.24 is quite fresh, this problem isn't reported upstream yet, AFAICT.
Fixed with the upstream commits backported, thanks anyway!