pdf build options: CFLAGS = -std=c99 -fPIC -pedantic -Wall -Wno-format-zero-length -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 LDFLAGS = DFLAGS = -g CC = cc CC pdf.c In file included from pdf.c:7:0: pdf.h:18:3: error: unknown type name ‘pdf_xref’ pdf.c:15:24: error: unknown type name ‘fz_obj’ pdf.c:16:27: error: unknown type name ‘fz_obj’ pdf.c:19:37: error: unknown type name ‘pdf_xref’ pdf.c: In function ‘pdf_document_open’: pdf.c:63:3: warning: implicit declaration of function ‘fz_accelerate’ [-Wimplicit-function-declaration] pdf.c:64:3: warning: implicit declaration of function ‘fz_new_glyph_cache’ [-Wimplicit-function-declaration] pdf.c:64:29: warning: assignment makes pointer from integer without a cast [enabled by default] pdf.c:66:3: warning: implicit declaration of function ‘pdf_open_xref’ [-Wimplicit-function-declaration] pdf.c:66:78: error: ‘fz_okay’ undeclared (first use in this function) pdf.c:66:78: note: each undeclared identifier is reported only once for each function it appears in pdf.c:71:3: warning: passing argument 1 of ‘pdf_needs_password’ from incompatible pointer type [enabled by default] In file included from pdf.h:9:0, from pdf.c:7: /usr/include/mupdf.h:147:5: note: expected ‘struct pdf_document *’ but argument is of type ‘int *’ pdf.c:72:5: warning: passing argument 1 of ‘pdf_authenticate_password’ from incompatible pointer type [enabled by default] In file included from pdf.h:9:0, from pdf.c:7: /usr/include/mupdf.h:148:5: note: expected ‘struct pdf_document *’ but argument is of type ‘int *’ pdf.c:78:3: warning: implicit declaration of function ‘pdf_load_page_tree’ [-Wimplicit-function-declaration] pdf.c:83:3: warning: passing argument 1 of ‘pdf_count_pages’ from incompatible pointer type [enabled by default] In file included from pdf.h:9:0, from pdf.c:7: /usr/include/mupdf.h:168:5: note: expected ‘struct pdf_document *’ but argument is of type ‘int *’ pdf.c:90:5: warning: implicit declaration of function ‘pdf_free_xref’ [-Wimplicit-function-declaration] pdf.c:94:5: warning: implicit declaration of function ‘fz_free_glyph_cache’ [-Wimplicit-function-declaration] pdf.c: In function ‘pdf_page_get’: pdf.c:154:3: warning: passing argument 1 of ‘pdf_load_page’ from incompatible pointer type [enabled by default] In file included from pdf.h:9:0, from pdf.c:7: /usr/include/mupdf.h:180:11: note: expected ‘struct pdf_document *’ but argument is of type ‘struct pdf_page **’ pdf.c:154:3: warning: passing argument 2 of ‘pdf_load_page’ makes integer from pointer without a cast [enabled by default] In file included from pdf.h:9:0, from pdf.c:7: /usr/include/mupdf.h:180:11: note: expected ‘int’ but argument is of type ‘int *’ pdf.c:154:3: error: too many arguments to function ‘pdf_load_page’ In file included from pdf.h:9:0, from pdf.c:7: /usr/include/mupdf.h:180:11: note: declared here pdf.c:154:75: error: ‘fz_okay’ undeclared (first use in this function) pdf.c:162:43: error: dereferencing pointer to incomplete type pdf.c:162:75: error: dereferencing pointer to incomplete type pdf.c:163:43: error: dereferencing pointer to incomplete type pdf.c:163:75: error: dereferencing pointer to incomplete type pdf.c:167:3: warning: implicit declaration of function ‘fz_new_text_span’ [-Wimplicit-function-declaration] pdf.c:167:20: warning: assignment makes pointer from integer without a cast [enabled by default] pdf.c:178:7: warning: passing argument 1 of ‘pdf_free_page’ from incompatible pointer type [enabled by default] In file included from pdf.h:9:0, from pdf.c:7: /usr/include/mupdf.h:201:6: note: expected ‘struct pdf_document *’ but argument is of type ‘struct pdf_page *’ pdf.c:178:7: error: too few arguments to function ‘pdf_free_page’ In file included from pdf.h:9:0, from pdf.c:7: /usr/include/mupdf.h:201:6: note: declared here pdf.c:182:7: warning: implicit declaration of function ‘fz_free_text_span’ [-Wimplicit-function-declaration] pdf.c: In function ‘pdf_page_free’: pdf.c:212:7: warning: passing argument 1 of ‘pdf_free_page’ from incompatible pointer type [enabled by default] In file included from pdf.h:9:0, from pdf.c:7: /usr/include/mupdf.h:201:6: note: expected ‘struct pdf_document *’ but argument is of type ‘struct pdf_page *’ pdf.c:212:7: error: too few arguments to function ‘pdf_free_page’ In file included from pdf.h:9:0, from pdf.c:7: /usr/include/mupdf.h:201:6: note: declared here pdf.c: In function ‘pdf_page_search_text’: pdf.c:243:5: warning: implicit declaration of function ‘mupdf_page_extract_text’ [-Wimplicit-function-declaration] pdf.c: In function ‘pdf_page_links_get’: pdf.c:314:3: error: unknown type name ‘pdf_link’ pdf.c:314:36: error: dereferencing pointer to incomplete type pdf.c:316:35: error: request for member ‘next’ in something not a structure or union pdf.c:326:37: error: request for member ‘rect’ in something not a structure or union pdf.c:327:37: error: request for member ‘rect’ in something not a structure or union pdf.c:328:52: error: request for member ‘rect’ in something not a structure or union pdf.c:329:52: error: request for member ‘rect’ in something not a structure or union pdf.c:331:13: error: request for member ‘kind’ in something not a structure or union pdf.c:331:23: error: ‘PDF_LINK_URI’ undeclared (first use in this function) pdf.c:332:7: warning: implicit declaration of function ‘fz_to_str_len’ [-Wimplicit-function-declaration] pdf.c:332:66: error: request for member ‘dest’ in something not a structure or union pdf.c:333:7: warning: implicit declaration of function ‘fz_to_str_buf’ [-Wimplicit-function-declaration] pdf.c:333:40: error: request for member ‘dest’ in something not a structure or union pdf.c:333:67: error: request for member ‘dest’ in something not a structure or union pdf.c:334:32: error: request for member ‘dest’ in something not a structure or union pdf.c:338:20: error: request for member ‘kind’ in something not a structure or union pdf.c:338:30: error: ‘PDF_LINK_GOTO’ undeclared (first use in this function) pdf.c:339:7: warning: implicit declaration of function ‘pdf_find_page_number’ [-Wimplicit-function-declaration] pdf.c:339:7: warning: implicit declaration of function ‘fz_array_get’ [-Wimplicit-function-declaration] pdf.c:339:87: error: request for member ‘dest’ in something not a structure or union pdf.c: In function ‘pdf_page_get_text’: pdf.c:382:72: error: ‘fz_text_span’ has no member named ‘next’ pdf.c:386:7: error: incompatible type for argument 2 of ‘fz_transform_bbox’ In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:939:9: note: expected ‘fz_bbox’ but argument is of type ‘fz_rect’ pdf.c:402:29: error: ‘fz_text_span’ has no member named ‘eol’ pdf.c: In function ‘pdf_page_images_get’: pdf.c:438:3: error: unknown type name ‘fz_obj’ pdf.c:438:47: error: request for member ‘page_objs’ in something not a structure or union pdf.c:443:3: error: unknown type name ‘fz_obj’ pdf.c:443:3: warning: implicit declaration of function ‘fz_dict_gets’ [-Wimplicit-function-declaration] pdf.c:443:22: warning: initialization makes pointer from integer without a cast [enabled by default] pdf.c:458:3: warning: implicit declaration of function ‘get_resources’ [-Wimplicit-function-declaration] pdf.c: In function ‘pdf_document_meta_get’: pdf.c:490:3: error: unknown type name ‘fz_obj’ pdf.c:490:55: error: request for member ‘trailer’ in something not a structure or union pdf.c:491:3: error: unknown type name ‘fz_obj’ pdf.c:491:3: warning: implicit declaration of function ‘fz_resolve_indirect’ [-Wimplicit-function-declaration] pdf.c:491:20: warning: initialization makes pointer from integer without a cast [enabled by default] pdf.c:493:3: warning: implicit declaration of function ‘fz_dict_len’ [-Wimplicit-function-declaration] pdf.c:494:5: error: unknown type name ‘fz_obj’ pdf.c:494:5: warning: implicit declaration of function ‘fz_dict_get_key’ [-Wimplicit-function-declaration] pdf.c:494:19: warning: initialization makes pointer from integer without a cast [enabled by default] pdf.c:495:5: error: unknown type name ‘fz_obj’ pdf.c:495:5: warning: implicit declaration of function ‘fz_dict_get_val’ [-Wimplicit-function-declaration] pdf.c:495:19: warning: initialization makes pointer from integer without a cast [enabled by default] pdf.c:497:5: warning: implicit declaration of function ‘fz_is_name’ [-Wimplicit-function-declaration] pdf.c:497:5: warning: implicit declaration of function ‘fz_is_string’ [-Wimplicit-function-declaration] pdf.c:501:5: warning: implicit declaration of function ‘fz_to_name’ [-Wimplicit-function-declaration] pdf.c:501:19: warning: initialization makes pointer from integer without a cast [enabled by default] pdf.c:502:19: warning: initialization makes pointer from integer without a cast [enabled by default] pdf.c: In function ‘pdf_page_render’: pdf.c:552:3: error: too few arguments to function ‘fz_new_display_list’ In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1770:18: note: declared here pdf.c:553:3: warning: passing argument 1 of ‘fz_new_list_device’ from incompatible pointer type [enabled by default] In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1784:12: note: expected ‘struct fz_context *’ but argument is of type ‘struct fz_display_list *’ pdf.c:553:3: error: too few arguments to function ‘fz_new_list_device’ In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1784:12: note: declared here pdf.c:555:3: warning: passing argument 1 of ‘pdf_run_page’ from incompatible pointer type [enabled by default] In file included from pdf.h:9:0, from pdf.c:7: /usr/include/mupdf.h:213:6: note: expected ‘struct pdf_document *’ but argument is of type ‘int *’ pdf.c:555:3: error: too few arguments to function ‘pdf_run_page’ In file included from pdf.h:9:0, from pdf.c:7: /usr/include/mupdf.h:213:6: note: declared here pdf.c:555:129: error: ‘fz_okay’ undeclared (first use in this function) pdf.c:566:3: warning: implicit declaration of function ‘fz_new_pixmap_with_rect’ [-Wimplicit-function-declaration] pdf.c:566:23: warning: initialization makes pointer from integer without a cast [enabled by default] pdf.c:567:3: warning: implicit declaration of function ‘fz_clear_pixmap_with_color’ [-Wimplicit-function-declaration] pdf.c:569:3: warning: passing argument 1 of ‘fz_new_draw_device’ from incompatible pointer type [enabled by default] In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1523:12: note: expected ‘struct fz_context *’ but argument is of type ‘struct fz_glyph_cache *’ pdf.c:570:3: warning: implicit declaration of function ‘fz_execute_display_list’ [-Wimplicit-function-declaration] pdf.c:573:28: error: dereferencing pointer to incomplete type pdf.c:574:38: error: dereferencing pointer to incomplete type pdf.c:575:40: error: dereferencing pointer to incomplete type pdf.c:576:47: error: dereferencing pointer to incomplete type pdf.c:581:18: error: dereferencing pointer to incomplete type pdf.c:585:3: warning: passing argument 1 of ‘fz_drop_pixmap’ from incompatible pointer type [enabled by default] In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1275:6: note: expected ‘struct fz_context *’ but argument is of type ‘struct fz_pixmap *’ pdf.c:585:3: error: too few arguments to function ‘fz_drop_pixmap’ In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1275:6: note: declared here pdf.c:586:3: warning: passing argument 1 of ‘fz_free_display_list’ from incompatible pointer type [enabled by default] In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1821:6: note: expected ‘struct fz_context *’ but argument is of type ‘struct fz_display_list *’ pdf.c:586:3: error: too few arguments to function ‘fz_free_display_list’ In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1821:6: note: declared here pdf.c: In function ‘pdf_page_render_cairo’: pdf.c:613:3: error: too few arguments to function ‘fz_new_display_list’ In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1770:18: note: declared here pdf.c:614:3: warning: passing argument 1 of ‘fz_new_list_device’ from incompatible pointer type [enabled by default] In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1784:12: note: expected ‘struct fz_context *’ but argument is of type ‘struct fz_display_list *’ pdf.c:614:3: error: too few arguments to function ‘fz_new_list_device’ In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1784:12: note: declared here pdf.c:616:3: warning: passing argument 1 of ‘pdf_run_page’ from incompatible pointer type [enabled by default] In file included from pdf.h:9:0, from pdf.c:7: /usr/include/mupdf.h:213:6: note: expected ‘struct pdf_document *’ but argument is of type ‘int *’ pdf.c:616:3: error: too few arguments to function ‘pdf_run_page’ In file included from pdf.h:9:0, from pdf.c:7: /usr/include/mupdf.h:213:6: note: declared here pdf.c:616:99: error: ‘fz_okay’ undeclared (first use in this function) pdf.c:625:23: warning: initialization makes pointer from integer without a cast [enabled by default] pdf.c:628:3: warning: passing argument 1 of ‘fz_new_draw_device’ from incompatible pointer type [enabled by default] In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1523:12: note: expected ‘struct fz_context *’ but argument is of type ‘struct fz_glyph_cache *’ pdf.c:635:28: error: dereferencing pointer to incomplete type pdf.c:636:38: error: dereferencing pointer to incomplete type pdf.c:637:40: error: dereferencing pointer to incomplete type pdf.c:638:34: error: dereferencing pointer to incomplete type pdf.c:642:18: error: dereferencing pointer to incomplete type pdf.c:646:3: warning: passing argument 1 of ‘fz_drop_pixmap’ from incompatible pointer type [enabled by default] In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1275:6: note: expected ‘struct fz_context *’ but argument is of type ‘struct fz_pixmap *’ pdf.c:646:3: error: too few arguments to function ‘fz_drop_pixmap’ In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1275:6: note: declared here pdf.c:647:3: warning: passing argument 1 of ‘fz_free_display_list’ from incompatible pointer type [enabled by default] In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1821:6: note: expected ‘struct fz_context *’ but argument is of type ‘struct fz_display_list *’ pdf.c:647:3: error: too few arguments to function ‘fz_free_display_list’ In file included from pdf.h:8:0, from pdf.c:7: /usr/include/fitz.h:1821:6: note: declared here pdf.c: In function ‘text_span_char_at’: pdf.c:662:13: error: ‘fz_text_span’ has no member named ‘eol’ pdf.c:670:16: error: ‘fz_text_span’ has no member named ‘next’ pdf.c: In function ‘text_span_length’: pdf.c:684:13: error: ‘fz_text_span’ has no member named ‘eol’ pdf.c:688:16: error: ‘fz_text_span’ has no member named ‘next’ pdf.c: At top level: pdf.c:734:12: error: unknown type name ‘fz_obj’ pdf.c:780:15: error: unknown type name ‘fz_obj’ pdf.c: In function ‘search_result_add_char’: pdf.c:811:35: error: ‘fz_text_span’ has no member named ‘next’ pdf.c:813:7: error: invalid initializer pdf.c:834:13: error: ‘fz_text_span’ has no member named ‘eol’ pdf.c: At top level: pdf.c:843:25: error: unknown type name ‘pdf_xref’ make: *** [pdf.o] Error 1