=> Bootstrap dependency digest>=20211023: found digest-20220214 ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for pdf2djvu-0.9.17.1nb9 c++ -fopenmp -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/nspr -Wall -Wempty-body -Werror=misleading-indentation -Werror=narrowing -Werror=overloaded-virtual -I/usr/pkg/include -pthread -I/usr/pkg/include/poppler -I/usr/pkg/include/GraphicsMagick -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/nspr -c -o config.o config.cc c++ -fopenmp -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/nspr -Wall -Wempty-body -Werror=misleading-indentation -Werror=narrowing -Werror=overloaded-virtual -I/usr/pkg/include -pthread -I/usr/pkg/include/poppler -I/usr/pkg/include/GraphicsMagick -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/nspr -c -o debug.o debug.cc c++ -fopenmp -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/nspr -Wall -Wempty-body -Werror=misleading-indentation -Werror=narrowing -Werror=overloaded-virtual -I/usr/pkg/include -pthread -I/usr/pkg/include/poppler -I/usr/pkg/include/GraphicsMagick -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/nspr -c -o djvu-outline.o djvu-outline.cc tools/generate-paths-hh localedir /usr/pkg/share/locale djvulibre_bindir /usr/pkg/bin c++ -fopenmp -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/nspr -Wall -Wempty-body -Werror=misleading-indentation -Werror=narrowing -Werror=overloaded-virtual -I/usr/pkg/include -pthread -I/usr/pkg/include/poppler -I/usr/pkg/include/GraphicsMagick -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/nspr -c -o image-filter.o image-filter.cc c++ -fopenmp -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/nspr -Wall -Wempty-body -Werror=misleading-indentation -Werror=narrowing -Werror=overloaded-virtual -I/usr/pkg/include -pthread -I/usr/pkg/include/poppler -I/usr/pkg/include/GraphicsMagick -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/nspr -c -o pdf-backend.o pdf-backend.cc c++ -fopenmp -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/nspr -Wall -Wempty-body -Werror=misleading-indentation -Werror=narrowing -Werror=overloaded-virtual -I/usr/pkg/include -pthread -I/usr/pkg/include/poppler -I/usr/pkg/include/GraphicsMagick -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/nspr -c -o pdf-document-map.o pdf-document-map.cc In file included from /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:63:0, from pdf-backend.hh:32, from image-filter.hh:22, from image-filter.cc:15: /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:315:200: error: 'optional' in namespace 'std' does not name a template type bool signDocument(const char *filename, const char *certNickname, const char *digestName, const char *password, const GooString *reason = nullptr, const GooString *location = nullptr, const std::optional &ownerPassword = {}, ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:315:208: error: expected ',' or '...' before '<' token bool signDocument(const char *filename, const char *certNickname, const char *digestName, const char *password, const GooString *reason = nullptr, const GooString *location = nullptr, const std::optional &ownerPassword = {}, ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:320:48: error: 'optional' in namespace 'std' does not name a template type const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, const GooString &signatureText = {}, const GooString &signatureTextLeft = {}, double fontSize = {}, ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:320:56: error: expected ',' or '...' before '<' token const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, const GooString &signatureText = {}, const GooString &signatureTextLeft = {}, double fontSize = {}, ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:326:10: error: 'optional' in namespace 'std' does not name a template type std::optional getCheckedSignature(Goffset *checkedFileSize); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:332:114: error: 'optional' in namespace 'std' does not name a template type bool getObjectStartEnd(const GooString &filename, int objNum, Goffset *objStart, Goffset *objEnd, const std::optional &ownerPassword, const std::optional &userPassword); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:332:122: error: expected ',' or '...' before '<' token bool getObjectStartEnd(const GooString &filename, int objNum, Goffset *objStart, Goffset *objEnd, const std::optional &ownerPassword, const std::optional &userPassword); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:315:10: error: default argument missing for parameter 7 of 'bool FormWidgetSignature::signDocument(const char*, const char*, const char*, const char*, const GooString*, const GooString*, int)' bool signDocument(const char *filename, const char *certNickname, const char *digestName, const char *password, const GooString *reason = nullptr, const GooString *location = nullptr, const std::optional &ownerPassword = {}, ^~~~~~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:319:10: error: default argument missing for parameter 7 of 'bool FormWidgetSignature::signDocumentWithAppearance(const char*, const char*, const char*, const char*, const GooString*, const GooString*, int)' bool signDocumentWithAppearance(const char *filename, const char *certNickname, const char *digestName, const char *password, const GooString *reason = nullptr, const GooString *location = nullptr, ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:619:10: error: 'optional' in namespace 'std' does not name a template type std::optional getCheckedSignature(Goffset *checkedFileSize); ^~~~~~~~ In file included from pdf-backend.hh:32:0, from image-filter.hh:22, from image-filter.cc:15: /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:132:72: error: 'optional' in namespace 'std' does not name a template type explicit PDFDoc(std::unique_ptr &&fileNameA, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr, ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:132:80: error: expected ',' or '...' before '<' token explicit PDFDoc(std::unique_ptr &&fileNameA, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr, ^ In file included from pdf-backend.hh:32:0, from image-filter.hh:22, from image-filter.cc:15: /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:139:50: error: 'optional' in namespace 'std' does not name a template type explicit PDFDoc(BaseStream *strA, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr, const std::function &xrefReconstructedCallback = {}); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:139:58: error: expected ',' or '...' before '<' token explicit PDFDoc(BaseStream *strA, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr, const std::function &xrefReconstructedCallback = {}); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:342:98: error: 'optional' in namespace 'std' does not name a template type const GooString *location = nullptr, const std::string &imagePath = "", const std::optional &ownerPassword = {}, const std::optional &userPassword = {}); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:342:106: error: expected ',' or '...' before '<' token const GooString *location = nullptr, const std::string &imagePath = "", const std::optional &ownerPassword = {}, const std::optional &userPassword = {}); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:372:27: error: 'optional' in namespace 'std' does not name a template type bool setup(const std::optional &ownerPassword, const std::optional &userPassword, const std::function &xrefReconstructedCallback); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:372:35: error: expected ',' or '...' before '<' token bool setup(const std::optional &ownerPassword, const std::optional &userPassword, const std::function &xrefReconstructedCallback); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:375:37: error: 'optional' in namespace 'std' does not name a template type bool checkEncryption(const std::optional &ownerPassword, const std::optional &userPassword); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:375:45: error: expected ',' or '...' before '<' token bool checkEncryption(const std::optional &ownerPassword, const std::optional &userPassword); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:340:10: error: default argument missing for parameter 18 of 'bool PDFDoc::sign(const char*, const char*, const char*, GooString*, int, const PDFRectangle&, const GooString&, const GooString&, double, double, std::unique_ptr&&, double, std::unique_ptr&&, std::unique_ptr&&, const GooString*, const GooString*, const string&, int)' bool sign(const char *saveFilename, const char *certNickname, const char *password, GooString *partialFieldName, int page, const PDFRectangle &rect, const GooString &signatureText, const GooString &signatureTextLeft, double fontSize, ^~~~ In file included from /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:63:0, from pdf-backend.hh:32, from pdf-backend.cc:16: /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:315:200: error: 'optional' in namespace 'std' does not name a template type bool signDocument(const char *filename, const char *certNickname, const char *digestName, const char *password, const GooString *reason = nullptr, const GooString *location = nullptr, const std::optional &ownerPassword = {}, ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:315:208: error: expected ',' or '...' before '<' token bool signDocument(const char *filename, const char *certNickname, const char *digestName, const char *password, const GooString *reason = nullptr, const GooString *location = nullptr, const std::optional &ownerPassword = {}, ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:320:48: error: 'optional' in namespace 'std' does not name a template type const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, const GooString &signatureText = {}, const GooString &signatureTextLeft = {}, double fontSize = {}, ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:320:56: error: expected ',' or '...' before '<' token const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, const GooString &signatureText = {}, const GooString &signatureTextLeft = {}, double fontSize = {}, ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:326:10: error: 'optional' in namespace 'std' does not name a template type std::optional getCheckedSignature(Goffset *checkedFileSize); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:332:114: error: 'optional' in namespace 'std' does not name a template type bool getObjectStartEnd(const GooString &filename, int objNum, Goffset *objStart, Goffset *objEnd, const std::optional &ownerPassword, const std::optional &userPassword); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:332:122: error: expected ',' or '...' before '<' token bool getObjectStartEnd(const GooString &filename, int objNum, Goffset *objStart, Goffset *objEnd, const std::optional &ownerPassword, const std::optional &userPassword); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:315:10: error: default argument missing for parameter 7 of 'bool FormWidgetSignature::signDocument(const char*, const char*, const char*, const char*, const GooString*, const GooString*, int)' bool signDocument(const char *filename, const char *certNickname, const char *digestName, const char *password, const GooString *reason = nullptr, const GooString *location = nullptr, const std::optional &ownerPassword = {}, ^~~~~~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:319:10: error: default argument missing for parameter 7 of 'bool FormWidgetSignature::signDocumentWithAppearance(const char*, const char*, const char*, const char*, const GooString*, const GooString*, int)' bool signDocumentWithAppearance(const char *filename, const char *certNickname, const char *digestName, const char *password, const GooString *reason = nullptr, const GooString *location = nullptr, ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:619:10: error: 'optional' in namespace 'std' does not name a template type std::optional getCheckedSignature(Goffset *checkedFileSize); ^~~~~~~~ In file included from pdf-backend.hh:32:0, from pdf-backend.cc:16: /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:132:72: error: 'optional' in namespace 'std' does not name a template type explicit PDFDoc(std::unique_ptr &&fileNameA, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr, ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:132:80: error: expected ',' or '...' before '<' token explicit PDFDoc(std::unique_ptr &&fileNameA, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr, ^ In file included from pdf-backend.hh:32:0, from pdf-backend.cc:16: /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:139:50: error: 'optional' in namespace 'std' does not name a template type explicit PDFDoc(BaseStream *strA, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr, const std::function &xrefReconstructedCallback = {}); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:139:58: error: expected ',' or '...' before '<' token explicit PDFDoc(BaseStream *strA, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr, const std::function &xrefReconstructedCallback = {}); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:342:98: error: 'optional' in namespace 'std' does not name a template type const GooString *location = nullptr, const std::string &imagePath = "", const std::optional &ownerPassword = {}, const std::optional &userPassword = {}); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:342:106: error: expected ',' or '...' before '<' token const GooString *location = nullptr, const std::string &imagePath = "", const std::optional &ownerPassword = {}, const std::optional &userPassword = {}); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:372:27: error: 'optional' in namespace 'std' does not name a template type bool setup(const std::optional &ownerPassword, const std::optional &userPassword, const std::function &xrefReconstructedCallback); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:372:35: error: expected ',' or '...' before '<' token bool setup(const std::optional &ownerPassword, const std::optional &userPassword, const std::function &xrefReconstructedCallback); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:375:37: error: 'optional' in namespace 'std' does not name a template type bool checkEncryption(const std::optional &ownerPassword, const std::optional &userPassword); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:375:45: error: expected ',' or '...' before '<' token bool checkEncryption(const std::optional &ownerPassword, const std::optional &userPassword); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:340:10: error: default argument missing for parameter 18 of 'bool PDFDoc::sign(const char*, const char*, const char*, GooString*, int, const PDFRectangle&, const GooString&, const GooString&, double, double, std::unique_ptr&&, double, std::unique_ptr&&, std::unique_ptr&&, const GooString*, const GooString*, const string&, int)' bool sign(const char *saveFilename, const char *certNickname, const char *password, GooString *partialFieldName, int page, const PDFRectangle &rect, const GooString &signatureText, const GooString &signatureTextLeft, double fontSize, ^~~~ In file included from /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:63:0, from pdf-backend.hh:32, from pdf-document-map.cc:23: /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:315:200: error: 'optional' in namespace 'std' does not name a template type bool signDocument(const char *filename, const char *certNickname, const char *digestName, const char *password, const GooString *reason = nullptr, const GooString *location = nullptr, const std::optional &ownerPassword = {}, ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:315:208: error: expected ',' or '...' before '<' token bool signDocument(const char *filename, const char *certNickname, const char *digestName, const char *password, const GooString *reason = nullptr, const GooString *location = nullptr, const std::optional &ownerPassword = {}, ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:320:48: error: 'optional' in namespace 'std' does not name a template type const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, const GooString &signatureText = {}, const GooString &signatureTextLeft = {}, double fontSize = {}, ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:320:56: error: expected ',' or '...' before '<' token const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, const GooString &signatureText = {}, const GooString &signatureTextLeft = {}, double fontSize = {}, ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:326:10: error: 'optional' in namespace 'std' does not name a template type std::optional getCheckedSignature(Goffset *checkedFileSize); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:332:114: error: 'optional' in namespace 'std' does not name a template type bool getObjectStartEnd(const GooString &filename, int objNum, Goffset *objStart, Goffset *objEnd, const std::optional &ownerPassword, const std::optional &userPassword); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:332:122: error: expected ',' or '...' before '<' token bool getObjectStartEnd(const GooString &filename, int objNum, Goffset *objStart, Goffset *objEnd, const std::optional &ownerPassword, const std::optional &userPassword); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:315:10: error: default argument missing for parameter 7 of 'bool FormWidgetSignature::signDocument(const char*, const char*, const char*, const char*, const GooString*, const GooString*, int)' bool signDocument(const char *filename, const char *certNickname, const char *digestName, const char *password, const GooString *reason = nullptr, const GooString *location = nullptr, const std::optional &ownerPassword = {}, ^~~~~~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:319:10: error: default argument missing for parameter 7 of 'bool FormWidgetSignature::signDocumentWithAppearance(const char*, const char*, const char*, const char*, const GooString*, const GooString*, int)' bool signDocumentWithAppearance(const char *filename, const char *certNickname, const char *digestName, const char *password, const GooString *reason = nullptr, const GooString *location = nullptr, ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/Form.h:619:10: error: 'optional' in namespace 'std' does not name a template type std::optional getCheckedSignature(Goffset *checkedFileSize); ^~~~~~~~ gmake: *** [: image-filter.o] Error 1 gmake: *** Waiting for unfinished jobs.... In file included from pdf-backend.hh:32:0, from pdf-document-map.cc:23: /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:132:72: error: 'optional' in namespace 'std' does not name a template type explicit PDFDoc(std::unique_ptr &&fileNameA, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr, ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:132:80: error: expected ',' or '...' before '<' token explicit PDFDoc(std::unique_ptr &&fileNameA, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr, ^ In file included from pdf-backend.hh:32:0, from pdf-document-map.cc:23: /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:139:50: error: 'optional' in namespace 'std' does not name a template type explicit PDFDoc(BaseStream *strA, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr, const std::function &xrefReconstructedCallback = {}); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:139:58: error: expected ',' or '...' before '<' token explicit PDFDoc(BaseStream *strA, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr, const std::function &xrefReconstructedCallback = {}); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:342:98: error: 'optional' in namespace 'std' does not name a template type const GooString *location = nullptr, const std::string &imagePath = "", const std::optional &ownerPassword = {}, const std::optional &userPassword = {}); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:342:106: error: expected ',' or '...' before '<' token const GooString *location = nullptr, const std::string &imagePath = "", const std::optional &ownerPassword = {}, const std::optional &userPassword = {}); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:372:27: error: 'optional' in namespace 'std' does not name a template type bool setup(const std::optional &ownerPassword, const std::optional &userPassword, const std::function &xrefReconstructedCallback); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:372:35: error: expected ',' or '...' before '<' token bool setup(const std::optional &ownerPassword, const std::optional &userPassword, const std::function &xrefReconstructedCallback); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:375:37: error: 'optional' in namespace 'std' does not name a template type bool checkEncryption(const std::optional &ownerPassword, const std::optional &userPassword); ^~~~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:375:45: error: expected ',' or '...' before '<' token bool checkEncryption(const std::optional &ownerPassword, const std::optional &userPassword); ^ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:340:10: error: default argument missing for parameter 18 of 'bool PDFDoc::sign(const char*, const char*, const char*, GooString*, int, const PDFRectangle&, const GooString&, const GooString&, double, double, std::unique_ptr&&, double, std::unique_ptr&&, std::unique_ptr&&, const GooString*, const GooString*, const string&, int)' bool sign(const char *saveFilename, const char *certNickname, const char *password, GooString *partialFieldName, int page, const PDFRectangle &rect, const GooString &signatureText, const GooString &signatureTextLeft, double fontSize, ^~~~ pdf-backend.cc: In constructor 'pdf::Document::Document(const string&)': pdf-backend.cc:133:64: error: no matching function for call to 'PDFDoc::PDFDoc(pdf::String*, std::nullptr_t, std::nullptr_t)' : ::PDFDoc(new pdf::String(file_name.c_str()), nullptr, nullptr) ^ In file included from pdf-backend.hh:32:0, from pdf-backend.cc:16: /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:371:5: note: candidate: PDFDoc::PDFDoc() PDFDoc(); ^~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:371:5: note: candidate expects 0 arguments, 3 provided /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:139:14: note: candidate: PDFDoc::PDFDoc(BaseStream*, int) explicit PDFDoc(BaseStream *strA, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr, const std::function &xrefReconstructedCallback = {}); ^~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:139:14: note: candidate expects 2 arguments, 3 provided In file included from pdf-backend.hh:32:0, from pdf-backend.cc:16: /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:132:14: note: candidate: PDFDoc::PDFDoc(std::unique_ptr&&, int) explicit PDFDoc(std::unique_ptr &&fileNameA, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr, ^~~~~~ /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:132:14: note: candidate expects 2 arguments, 3 provided pdf-backend.cc: In member function 'const string pdf::Document::get_xmp()': pdf-backend.cc:232:37: error: no matching function for call to 'std::unique_ptr::reset(std::unique_ptr)' mstring.reset(this->readMetadata()); ^ In file included from /usr/include/g++/condition_variable:43:0, from /usr/include/g++/mutex:45, from /tmp/print/pdf2djvu/work/.buildlink/include/poppler/PDFDoc.h:52, from pdf-backend.hh:32, from pdf-backend.cc:16: /usr/include/g++/bits/unique_ptr.h:371:7: note: candidate: void std::unique_ptr<_Tp, _Dp>::reset(std::unique_ptr<_Tp, _Dp>::pointer) [with _Tp = const GooString; _Dp = std::default_delete; std::unique_ptr<_Tp, _Dp>::pointer = const GooString*] reset(pointer __p = pointer()) noexcept ^~~~~ /usr/include/g++/bits/unique_ptr.h:371:7: note: no known conversion for argument 1 from 'std::unique_ptr' to 'std::unique_ptr::pointer {aka const GooString*}' gmake: *** [: pdf-backend.o] Error 1 gmake: *** [: pdf-document-map.o] Error 1 *** Error code 2 Stop. make[1]: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/print/pdf2djvu *** Error code 1 Stop. make: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/print/pdf2djvu