Unfortunately it seems to be broken again with MuPDF 1.17. Now I get ``` In file included from sources/fitzmodel.cpp:37: /usr/include/mupdf/fitz/document.h:13:16: error: using typedef-name ‘fz_document’ after ‘struct’ 13 | typedef struct fz_document fz_document; | ^~~~~~~~~~~ In file included from sources/fitzmodel.cpp:24: sources/fitzmodel.h:34:30: note: ‘fz_document’ has a previous declaration here 34 | typedef struct fz_document_s fz_document; | ^~~~~~~~~~~ In file included from sources/fitzmodel.cpp:37: /usr/include/mupdf/fitz/document.h:13:28: error: conflicting declaration ‘typedef int fz_document’ 13 | typedef struct fz_document fz_document; | ^~~~~~~~~~~ In file included from sources/fitzmodel.cpp:24: sources/fitzmodel.h:34:30: note: previous declaration as ‘typedef struct fz_document_s fz_document’ 34 | typedef struct fz_document_s fz_document; | ^~~~~~~~~~~ In file included from sources/fitzmodel.cpp:37: /usr/include/mupdf/fitz/document.h:15:16: error: using typedef-name ‘fz_page’ after ‘struct’ 15 | typedef struct fz_page fz_page; | ^~~~~~~ In file included from sources/fitzmodel.cpp:24: sources/fitzmodel.h:33:26: note: ‘fz_page’ has a previous declaration here 33 | typedef struct fz_page_s fz_page; | ^~~~~~~ In file included from sources/fitzmodel.cpp:37: /usr/include/mupdf/fitz/document.h:15:24: error: conflicting declaration ‘typedef int fz_page’ 15 | typedef struct fz_page fz_page; | ^~~~~~~ In file included from sources/fitzmodel.cpp:24: sources/fitzmodel.h:33:26: note: previous declaration as ‘typedef struct fz_page_s fz_page’ 33 | typedef struct fz_page_s fz_page; | ^~~~~~~ In file included from sources/fitzmodel.cpp:37: /usr/include/mupdf/fitz/document.h:746:8: error: using typedef-name ‘fz_page’ after ‘struct’ 746 | struct fz_page | ^~~~~~~ In file included from sources/fitzmodel.cpp:24: sources/fitzmodel.h:33:26: note: ‘fz_page’ has a previous declaration here 33 | typedef struct fz_page_s fz_page; | ^~~~~~~ In file included from sources/fitzmodel.cpp:37: /usr/include/mupdf/fitz/document.h:772:8: error: using typedef-name ‘fz_document’ after ‘struct’ 772 | struct fz_document | ^~~~~~~~~~~ In file included from sources/fitzmodel.cpp:24: sources/fitzmodel.h:34:30: note: ‘fz_document’ has a previous declaration here 34 | typedef struct fz_document_s fz_document; | ^~~~~~~~~~~ sources/fitzmodel.cpp: In member function ‘virtual QList qpdfview::Model::FitzPage::links() const’: sources/fitzmodel.cpp:254:49: error: cannot convert ‘fz_location’ to ‘const int’ in initialization 254 | const int page = fz_resolve_link(m_parent->m_context, m_parent->m_document, link->uri, &left, &top); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | fz_location make[2]: *** [Makefile.fitz-plugin:835: objects-fitz/fitzmodel.o] Error 1 ```