https://sourceforge.net/p/toppler/bugs/17/ --- main.cc.orig 2012-12-22 05:02:06.000000000 -0600 +++ main.cc 2016-12-05 21:41:58.000000000 -0600 @@ -96,7 +96,7 @@ DIR *dir = opendir("locale"); bindtextdomain("toppler", dir == NULL ? LOCALEDIR : "locale"); - closedir(dir); + if (dir != NULL) closedir(dir); textdomain("toppler"); #endif