Hi, Had issues building poppler on Solaris, should apply to other users of GCC 7 and 8 having the <filesystem> header that might be lacking on the system provided GCC of NetBSD 9 (I thought I saw that somewhere?) Anyway, attached a patch that if compiled using GCC will skip the use of std::filesystem and use the old unlink behaviour instead of having to sort out the link of the extra library required. This patch check against > 8, https://en.cppreference.com/w/cpp/filesystem says 9.1 but the CMake module I found for the check claimed 9.0. This could of course be extended to check for clang version but clang in pkgsrc should be more than recent enough. Regards, Claes Nästén
Attachment:
patch-splash_SplashFontFile.cc
Description: Binary data