Mock Version: 1.4.13 Mock Version: 1.4.13 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/python-PyMuPDF.spec'], chrootPath='/var/lib/mock/f30-build-38394-22187/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/python-PyMuPDF.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/python-PyMuPDF-1.14.1-1.fc30.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python-PyMuPDF.spec'], chrootPath='/var/lib/mock/f30-build-38394-22187/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python-PyMuPDF.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.EF72c1 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf PyMuPDF-1.14.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/PyMuPDF-1.14.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd PyMuPDF-1.14.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/fix-library-linking.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.MCadEA + umask 022 + cd /builddir/build/BUILD + cd PyMuPDF-1.14.1 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib.linux-riscv64-3.7 creating build/lib.linux-riscv64-3.7/fitz copying fitz/__init__.py -> build/lib.linux-riscv64-3.7/fitz copying fitz/fitz.py -> build/lib.linux-riscv64-3.7/fitz copying fitz/utils.py -> build/lib.linux-riscv64-3.7/fitz running build_ext building 'fitz._fitz' extension creating build/temp.linux-riscv64-3.7 creating build/temp.linux-riscv64-3.7/fitz gcc -pthread -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/mupdf -I/usr/local/include/mupdf -I/usr/local/thirdparty/zlib -I/usr/include/python3.7m -c fitz/fitz_wrap.c -o build/temp.linux-riscv64-3.7/fitz/fitz_wrap.o BUILDSTDERR: fitz/fitz_wrap.c:3134:1: error: unknown type name ‘fz_quad’; did you mean ‘fz_shade’? BUILDSTDERR: fz_quad JM_quad_from_py(PyObject *r) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fz_shade BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_quad_from_py’: BUILDSTDERR: fitz/fitz_wrap.c:3136:5: error: unknown type name ‘fz_quad’; did you mean ‘fz_shade’? BUILDSTDERR: fz_quad q; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fz_shade BUILDSTDERR: fitz/fitz_wrap.c:3139:6: error: request for member ‘ul’ in something not a structure or union BUILDSTDERR: q.ul = q.ur = q.ll = q.lr = fz_make_point(0,0); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3139:13: error: request for member ‘ur’ in something not a structure or union BUILDSTDERR: q.ul = q.ur = q.ll = q.lr = fz_make_point(0,0); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3139:20: error: request for member ‘ll’ in something not a structure or union BUILDSTDERR: q.ul = q.ur = q.ll = q.lr = fz_make_point(0,0); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3139:27: error: request for member ‘lr’ in something not a structure or union BUILDSTDERR: q.ul = q.ur = q.ll = q.lr = fz_make_point(0,0); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3156:10: error: request for member ‘ul’ in something not a structure or union BUILDSTDERR: q.ul = fz_make_point(x0, y0); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3157:10: error: request for member ‘ur’ in something not a structure or union BUILDSTDERR: q.ur = fz_make_point(x1, y0); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3158:10: error: request for member ‘ll’ in something not a structure or union BUILDSTDERR: q.ll = fz_make_point(x0, y1); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3159:10: error: request for member ‘lr’ in something not a structure or union BUILDSTDERR: q.lr = fz_make_point(x1, y1); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3186:6: error: request for member ‘ul’ in something not a structure or union BUILDSTDERR: q.ul = p[0]; BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3187:6: error: request for member ‘ur’ in something not a structure or union BUILDSTDERR: q.ur = p[1]; BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3188:6: error: request for member ‘ll’ in something not a structure or union BUILDSTDERR: q.ll = p[2]; BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3189:6: error: request for member ‘lr’ in something not a structure or union BUILDSTDERR: q.lr = p[3]; BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_BinFromBuffer’: BUILDSTDERR: fitz/fitz_wrap.c:3521:54: warning: passing argument 3 of ‘fz_buffer_storage’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: size_t len = fz_buffer_storage(gctx, buffer, &c); BUILDSTDERR: ^~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:34:75: note: expected ‘unsigned char **’ but argument is of type ‘char **’ BUILDSTDERR: size_t fz_buffer_storage(fz_context *ctx, fz_buffer *buf, unsigned char **datap); BUILDSTDERR: ~~~~~~~~~~~~~~~~^~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_BArrayFromBuffer’: BUILDSTDERR: fitz/fitz_wrap.c:3536:53: warning: passing argument 3 of ‘fz_buffer_storage’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: size_t len = fz_buffer_storage(ctx, buffer, &c); BUILDSTDERR: ^~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:34:75: note: expected ‘unsigned char **’ but argument is of type ‘char **’ BUILDSTDERR: size_t fz_buffer_storage(fz_context *ctx, fz_buffer *buf, unsigned char **datap); BUILDSTDERR: ~~~~~~~~~~~~~~~~^~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_B64FromBuffer’: BUILDSTDERR: fitz/fitz_wrap.c:3552:53: warning: passing argument 3 of ‘fz_buffer_storage’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: size_t len = fz_buffer_storage(ctx, buffer, &c); BUILDSTDERR: ^~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:34:75: note: expected ‘unsigned char **’ but argument is of type ‘char **’ BUILDSTDERR: size_t fz_buffer_storage(fz_context *ctx, fz_buffer *buf, unsigned char **datap); BUILDSTDERR: ~~~~~~~~~~~~~~~~^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3556:51: warning: passing argument 3 of ‘fz_buffer_storage’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: size_t nlen = fz_buffer_storage(ctx, res, &b64); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:34:75: note: expected ‘unsigned char **’ but argument is of type ‘char **’ BUILDSTDERR: size_t fz_buffer_storage(fz_context *ctx, fz_buffer *buf, unsigned char **datap); BUILDSTDERR: ~~~~~~~~~~~~~~~~^~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_update_stream’: BUILDSTDERR: fitz/fitz_wrap.c:3613:32: warning: implicit declaration of function ‘PDF_NAME’; did you mean ‘PDF_NAME_A’? [-Wimplicit-function-declaration] BUILDSTDERR: pdf_dict_put(ctx, obj, PDF_NAME(Filter), PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: PDF_NAME_A BUILDSTDERR: fitz/fitz_wrap.c:3613:41: error: ‘Filter’ undeclared (first use in this function); did you mean ‘setter’? BUILDSTDERR: pdf_dict_put(ctx, obj, PDF_NAME(Filter), PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: setter BUILDSTDERR: fitz/fitz_wrap.c:3613:41: note: each undeclared identifier is reported only once for each function it appears in BUILDSTDERR: fitz/fitz_wrap.c:3613:59: error: ‘FlateDecode’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, obj, PDF_NAME(Filter), PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_pixmap_from_display_list’: BUILDSTDERR: fitz/fitz_wrap.c:3630:20: error: too few arguments to function ‘fz_bound_display_list’ BUILDSTDERR: fz_rect rect = fz_bound_display_list(ctx, list); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:47, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/display-list.h:92:10: note: declared here BUILDSTDERR: fz_rect *fz_bound_display_list(fz_context *ctx, fz_display_list *list, fz_rect *bounds); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3638:30: error: incompatible type for argument 1 of ‘fz_intersect_rect’ BUILDSTDERR: rect = fz_intersect_rect(rect, rclip); // no-op if clip is not given BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:490:10: note: expected ‘fz_rect * restrict’ {aka ‘struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_intersect_rect(fz_rect *restrict a, const fz_rect *restrict b); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3638:36: error: incompatible type for argument 2 of ‘fz_intersect_rect’ BUILDSTDERR: rect = fz_intersect_rect(rect, rclip); // no-op if clip is not given BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:490:10: note: expected ‘const fz_rect * restrict’ {aka ‘const struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_intersect_rect(fz_rect *restrict a, const fz_rect *restrict b); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3640:30: error: incompatible type for argument 1 of ‘fz_transform_rect’ BUILDSTDERR: rect = fz_transform_rect(rect, matrix); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:629:10: note: expected ‘fz_rect * restrict’ {aka ‘struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_transform_rect(fz_rect *restrict rect, const fz_matrix *restrict transform); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3640:36: error: incompatible type for argument 2 of ‘fz_transform_rect’ BUILDSTDERR: rect = fz_transform_rect(rect, matrix); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:629:10: note: expected ‘const fz_matrix * restrict’ {aka ‘const struct fz_matrix_s * restrict’} but argument is of type ‘fz_matrix’ {aka ‘struct fz_matrix_s’} BUILDSTDERR: fz_rect *fz_transform_rect(fz_rect *restrict rect, const fz_matrix *restrict transform); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3641:36: error: incompatible type for argument 1 of ‘fz_round_rect’ BUILDSTDERR: fz_irect irect = fz_round_rect(rect); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:544:11: note: expected ‘fz_irect * restrict’ {aka ‘struct fz_irect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_irect *fz_round_rect(fz_irect *restrict bbox, const fz_rect *restrict rect); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3641:22: error: too few arguments to function ‘fz_round_rect’ BUILDSTDERR: fz_irect irect = fz_round_rect(rect); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:544:11: note: declared here BUILDSTDERR: fz_irect *fz_round_rect(fz_irect *restrict bbox, const fz_rect *restrict rect); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3643:44: error: incompatible type for argument 3 of ‘fz_new_pixmap_with_bbox’ BUILDSTDERR: pix = fz_new_pixmap_with_bbox(ctx, cs, irect, seps, alpha); BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:35, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/pixmap.h:86:12: note: expected ‘const fz_irect *’ {aka ‘const struct fz_irect_s *’} but argument is of type ‘fz_irect’ {aka ‘struct fz_irect_s’} BUILDSTDERR: fz_pixmap *fz_new_pixmap_with_bbox(fz_context *ctx, fz_colorspace *colorspace, const fz_irect *bbox, fz_separations *seps, int alpha); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3651:34: error: incompatible type for argument 1 of ‘fz_is_infinite_rect’ BUILDSTDERR: if (!fz_is_infinite_rect(rclip)) BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:248:36: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_is_infinite_rect(const fz_rect *r) BUILDSTDERR: ~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:3653:53: error: incompatible type for argument 2 of ‘fz_new_draw_device_with_bbox’ BUILDSTDERR: dev = fz_new_draw_device_with_bbox(ctx, matrix, pix, &irect); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:46, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/device.h:345:12: note: expected ‘const fz_matrix *’ {aka ‘const struct fz_matrix_s *’} but argument is of type ‘fz_matrix’ {aka ‘struct fz_matrix_s’} BUILDSTDERR: fz_device *fz_new_draw_device_with_bbox(fz_context *ctx, const fz_matrix *transform, fz_pixmap *dest, const fz_irect *clip); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3654:49: error: incompatible type for argument 4 of ‘fz_run_display_list’ BUILDSTDERR: fz_run_display_list(ctx, list, dev, fz_identity, rclip, NULL); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:47, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/display-list.h:76:99: note: expected ‘const fz_matrix *’ {aka ‘const struct fz_matrix_s *’} but argument is of type ‘fz_matrix’ {aka ‘const struct fz_matrix_s’} BUILDSTDERR: void fz_run_display_list(fz_context *ctx, fz_display_list *list, fz_device *dev, const fz_matrix *ctm, const fz_rect *area, fz_cookie *cookie); BUILDSTDERR: ~~~~~~~~~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:3654:62: error: incompatible type for argument 5 of ‘fz_run_display_list’ BUILDSTDERR: fz_run_display_list(ctx, list, dev, fz_identity, rclip, NULL); BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:47, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/display-list.h:76:119: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: void fz_run_display_list(fz_context *ctx, fz_display_list *list, fz_device *dev, const fz_matrix *ctm, const fz_rect *area, fz_cookie *cookie); BUILDSTDERR: ~~~~~~~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:3658:43: error: incompatible type for argument 2 of ‘fz_new_draw_device’ BUILDSTDERR: dev = fz_new_draw_device(ctx, matrix, pix); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:46, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/device.h:329:12: note: expected ‘const fz_matrix *’ {aka ‘const struct fz_matrix_s *’} but argument is of type ‘fz_matrix’ {aka ‘struct fz_matrix_s’} BUILDSTDERR: fz_device *fz_new_draw_device(fz_context *ctx, const fz_matrix *transform, fz_pixmap *dest); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3659:49: error: incompatible type for argument 4 of ‘fz_run_display_list’ BUILDSTDERR: fz_run_display_list(ctx, list, dev, fz_identity, fz_infinite_rect, NULL); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:47, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/display-list.h:76:99: note: expected ‘const fz_matrix *’ {aka ‘const struct fz_matrix_s *’} but argument is of type ‘fz_matrix’ {aka ‘const struct fz_matrix_s’} BUILDSTDERR: void fz_run_display_list(fz_context *ctx, fz_display_list *list, fz_device *dev, const fz_matrix *ctm, const fz_rect *area, fz_cookie *cookie); BUILDSTDERR: ~~~~~~~~~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:3659:62: error: incompatible type for argument 5 of ‘fz_run_display_list’ BUILDSTDERR: fz_run_display_list(ctx, list, dev, fz_identity, fz_infinite_rect, NULL); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:47, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/display-list.h:76:119: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘const struct fz_rect_s’} BUILDSTDERR: void fz_run_display_list(fz_context *ctx, fz_display_list *list, fz_device *dev, const fz_matrix *ctm, const fz_rect *area, fz_cookie *cookie); BUILDSTDERR: ~~~~~~~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘page_merge’: BUILDSTDERR: fitz/fitz_wrap.c:3786:44: error: ‘Contents’ undeclared (first use in this function); did you mean ‘PyContext’? BUILDSTDERR: pdf_obj *known_page_objs[] = {PDF_NAME(Contents), PDF_NAME(Resources), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: PyContext BUILDSTDERR: fitz/fitz_wrap.c:3786:64: error: ‘Resources’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *known_page_objs[] = {PDF_NAME(Contents), PDF_NAME(Resources), BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3787:18: error: ‘MediaBox’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(MediaBox), PDF_NAME(CropBox), PDF_NAME(BleedBox), PDF_NAME(Annots), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3787:38: error: ‘CropBox’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(MediaBox), PDF_NAME(CropBox), PDF_NAME(BleedBox), PDF_NAME(Annots), BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3787:57: error: ‘BleedBox’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(MediaBox), PDF_NAME(CropBox), PDF_NAME(BleedBox), PDF_NAME(Annots), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3787:77: error: ‘Annots’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(MediaBox), PDF_NAME(CropBox), PDF_NAME(BleedBox), PDF_NAME(Annots), BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3788:18: error: ‘TrimBox’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(TrimBox), PDF_NAME(ArtBox), PDF_NAME(Rotate), PDF_NAME(UserUnit)}; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3788:37: error: ‘ArtBox’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(TrimBox), PDF_NAME(ArtBox), PDF_NAME(Rotate), PDF_NAME(UserUnit)}; BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3788:55: error: ‘Rotate’ undeclared (first use in this function); did you mean ‘rotate’? BUILDSTDERR: PDF_NAME(TrimBox), PDF_NAME(ArtBox), PDF_NAME(Rotate), PDF_NAME(UserUnit)}; BUILDSTDERR: ^~~~~~ BUILDSTDERR: rotate BUILDSTDERR: fitz/fitz_wrap.c:3788:73: error: ‘UserUnit’ undeclared (first use in this function); did you mean ‘isprint’? BUILDSTDERR: PDF_NAME(TrimBox), PDF_NAME(ArtBox), PDF_NAME(Rotate), PDF_NAME(UserUnit)}; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: isprint BUILDSTDERR: fitz/fitz_wrap.c:3801:52: error: ‘Type’ undeclared (first use in this function); did you mean ‘Byte’? BUILDSTDERR: pdf_dict_put_drop(ctx, page_dict, PDF_NAME(Type), PDF_NAME(Page)); BUILDSTDERR: ^~~~ BUILDSTDERR: Byte BUILDSTDERR: fitz/fitz_wrap.c:3801:68: error: ‘Page’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_drop(ctx, page_dict, PDF_NAME(Type), PDF_NAME(Page)); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:3801:43: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, page_dict, PDF_NAME(Type), PDF_NAME(Page)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:3801:59: warning: passing argument 4 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, page_dict, PDF_NAME(Type), PDF_NAME(Page)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:79: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:3811:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *annots = pdf_dict_get(ctx, page_dict, PDF_NAME(Annots)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3816:65: error: ‘Subtype’ undeclared (first use in this function); did you mean ‘isctype’? BUILDSTDERR: if (!pdf_name_eq(ctx, pdf_dict_get(ctx, o, PDF_NAME(Subtype)), PDF_NAME(Link))) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: isctype BUILDSTDERR: fitz/fitz_wrap.c:3816:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (!pdf_name_eq(ctx, pdf_dict_get(ctx, o, PDF_NAME(Subtype)), PDF_NAME(Link))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3816:85: error: ‘Link’ undeclared (first use in this function); did you mean ‘link’? BUILDSTDERR: if (!pdf_name_eq(ctx, pdf_dict_get(ctx, o, PDF_NAME(Subtype)), PDF_NAME(Link))) BUILDSTDERR: ^~~~ BUILDSTDERR: link BUILDSTDERR: fitz/fitz_wrap.c:3816:76: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (!pdf_name_eq(ctx, pdf_dict_get(ctx, o, PDF_NAME(Subtype)), PDF_NAME(Link))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:3826:51: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *rotateobj = pdf_new_int(ctx, (int64_t) rotate); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘long int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3826:34: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: pdf_obj *rotateobj = pdf_new_int(ctx, (int64_t) rotate); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3826:34: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: pdf_obj *rotateobj = pdf_new_int(ctx, (int64_t) rotate); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3827:47: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, page_dict, PDF_NAME(Rotate), rotateobj); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:3783:40: warning: unused variable ‘subt’ [-Wunused-variable] BUILDSTDERR: pdf_obj *obj = NULL, *ref = NULL, *subt = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘merge_range’: BUILDSTDERR: fitz/fitz_wrap.c:3858:26: warning: variable ‘count’ set but not used [-Wunused-but-set-variable] BUILDSTDERR: int page, afterpage, count; BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_outline_xrefs’: BUILDSTDERR: fitz/fitz_wrap.c:3897:53: error: ‘First’ undeclared (first use in this function); did you mean ‘first’? BUILDSTDERR: first = pdf_dict_get(ctx, thisobj, PDF_NAME(First)); // try go down BUILDSTDERR: ^~~~~ BUILDSTDERR: first BUILDSTDERR: fitz/fitz_wrap.c:3897:44: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: first = pdf_dict_get(ctx, thisobj, PDF_NAME(First)); // try go down BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3899:55: error: ‘Next’ undeclared (first use in this function); did you mean ‘exp’? BUILDSTDERR: thisobj = pdf_dict_get(ctx, thisobj, PDF_NAME(Next)); // try go next BUILDSTDERR: ^~~~ BUILDSTDERR: exp BUILDSTDERR: fitz/fitz_wrap.c:3899:46: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: thisobj = pdf_dict_get(ctx, thisobj, PDF_NAME(Next)); // try go next BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3900:54: error: ‘Parent’ undeclared (first use in this function); did you mean ‘parent’? BUILDSTDERR: parent = pdf_dict_get(ctx, thisobj, PDF_NAME(Parent)); // get parent BUILDSTDERR: ^~~~~~ BUILDSTDERR: parent BUILDSTDERR: fitz/fitz_wrap.c:3900:45: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: parent = pdf_dict_get(ctx, thisobj, PDF_NAME(Parent)); // get parent BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fontbuffer’: BUILDSTDERR: fitz/fitz_wrap.c:3915:43: error: ‘DescendantFonts’ undeclared (first use in this function); did you mean ‘PDF_NAME_DescendantFonts’? BUILDSTDERR: desft = pdf_dict_get(ctx, o, PDF_NAME(DescendantFonts)); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: PDF_NAME_DescendantFonts BUILDSTDERR: fitz/fitz_wrap.c:3915:34: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: desft = pdf_dict_get(ctx, o, PDF_NAME(DescendantFonts)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3919:47: error: ‘FontDescriptor’ undeclared (first use in this function); did you mean ‘pdf_ocg_descriptor’? BUILDSTDERR: obj = pdf_dict_get(ctx, obj, PDF_NAME(FontDescriptor)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: pdf_ocg_descriptor BUILDSTDERR: fitz/fitz_wrap.c:3919:38: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, obj, PDF_NAME(FontDescriptor)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3922:36: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, o, PDF_NAME(FontDescriptor)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3933:41: error: ‘FontFile’ undeclared (first use in this function); did you mean ‘gzFile’? BUILDSTDERR: obj = pdf_dict_get(ctx, o, PDF_NAME(FontFile)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: gzFile BUILDSTDERR: fitz/fitz_wrap.c:3933:32: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, o, PDF_NAME(FontFile)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3936:41: error: ‘FontFile2’ undeclared (first use in this function) BUILDSTDERR: obj = pdf_dict_get(ctx, o, PDF_NAME(FontFile2)); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3936:32: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, o, PDF_NAME(FontFile2)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3939:41: error: ‘FontFile3’ undeclared (first use in this function) BUILDSTDERR: obj = pdf_dict_get(ctx, o, PDF_NAME(FontFile3)); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3939:32: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, o, PDF_NAME(FontFile3)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3944:47: error: ‘Subtype’ undeclared (first use in this function); did you mean ‘isctype’? BUILDSTDERR: obj = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: isctype BUILDSTDERR: fitz/fitz_wrap.c:3944:38: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3951:44: error: ‘Type1C’ undeclared (first use in this function) BUILDSTDERR: if (pdf_name_eq(ctx, obj, PDF_NAME(Type1C))) BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3951:35: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, obj, PDF_NAME(Type1C))) BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:3953:49: error: ‘CIDFontType0C’ undeclared (first use in this function) BUILDSTDERR: else if (pdf_name_eq(ctx, obj, PDF_NAME(CIDFontType0C))) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3953:40: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: else if (pdf_name_eq(ctx, obj, PDF_NAME(CIDFontType0C))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:3955:49: error: ‘OpenType’ undeclared (first use in this function); did you mean ‘PyGen_Type’? BUILDSTDERR: else if (pdf_name_eq(ctx, obj, PDF_NAME(OpenType))) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: PyGen_Type BUILDSTDERR: fitz/fitz_wrap.c:3955:40: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: else if (pdf_name_eq(ctx, obj, PDF_NAME(OpenType))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:3913:11: warning: variable ‘ext’ set but not used [-Wunused-but-set-variable] BUILDSTDERR: char *ext = ""; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fontextension’: BUILDSTDERR: fitz/fitz_wrap.c:3978:43: error: ‘DescendantFonts’ undeclared (first use in this function); did you mean ‘PDF_NAME_DescendantFonts’? BUILDSTDERR: desft = pdf_dict_get(ctx, o, PDF_NAME(DescendantFonts)); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: PDF_NAME_DescendantFonts BUILDSTDERR: fitz/fitz_wrap.c:3978:34: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: desft = pdf_dict_get(ctx, o, PDF_NAME(DescendantFonts)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3982:47: error: ‘FontDescriptor’ undeclared (first use in this function); did you mean ‘pdf_ocg_descriptor’? BUILDSTDERR: obj = pdf_dict_get(ctx, obj, PDF_NAME(FontDescriptor)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: pdf_ocg_descriptor BUILDSTDERR: fitz/fitz_wrap.c:3982:38: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, obj, PDF_NAME(FontDescriptor)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3985:36: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, o, PDF_NAME(FontDescriptor)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3992:41: error: ‘FontFile’ undeclared (first use in this function); did you mean ‘gzFile’? BUILDSTDERR: obj = pdf_dict_get(ctx, o, PDF_NAME(FontFile)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: gzFile BUILDSTDERR: fitz/fitz_wrap.c:3992:32: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, o, PDF_NAME(FontFile)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3995:41: error: ‘FontFile2’ undeclared (first use in this function) BUILDSTDERR: obj = pdf_dict_get(ctx, o, PDF_NAME(FontFile2)); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3995:32: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, o, PDF_NAME(FontFile2)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3998:41: error: ‘FontFile3’ undeclared (first use in this function) BUILDSTDERR: obj = pdf_dict_get(ctx, o, PDF_NAME(FontFile3)); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3998:32: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, o, PDF_NAME(FontFile3)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4001:47: error: ‘Subtype’ undeclared (first use in this function); did you mean ‘isctype’? BUILDSTDERR: obj = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: isctype BUILDSTDERR: fitz/fitz_wrap.c:4001:38: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4007:44: error: ‘Type1C’ undeclared (first use in this function) BUILDSTDERR: if (pdf_name_eq(ctx, obj, PDF_NAME(Type1C))) BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4007:35: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, obj, PDF_NAME(Type1C))) BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:4009:49: error: ‘CIDFontType0C’ undeclared (first use in this function) BUILDSTDERR: else if (pdf_name_eq(ctx, obj, PDF_NAME(CIDFontType0C))) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4009:40: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: else if (pdf_name_eq(ctx, obj, PDF_NAME(CIDFontType0C))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:4011:49: error: ‘OpenType’ undeclared (first use in this function); did you mean ‘PyGen_Type’? BUILDSTDERR: else if (pdf_name_eq(ctx, obj, PDF_NAME(OpenType))) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: PyGen_Type BUILDSTDERR: fitz/fitz_wrap.c:4011:40: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: else if (pdf_name_eq(ctx, obj, PDF_NAME(OpenType))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘markref’: BUILDSTDERR: fitz/fitz_wrap.c:4574:60: error: ‘Length’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *len = pdf_dict_get(ctx, obj, PDF_NAME(Length)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4574:51: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *len = pdf_dict_get(ctx, obj, PDF_NAME(Length)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4579:40: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, obj, PDF_NAME(Length), len); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘markobj’: BUILDSTDERR: fitz/fitz_wrap.c:4657:44: error: ‘PDF_NULL’ undeclared (first use in this function); did you mean ‘Py_ULL’? BUILDSTDERR: pdf_array_put(ctx, obj, i, PDF_NULL); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: Py_ULL BUILDSTDERR: fitz/fitz_wrap.c:4657:44: warning: passing argument 4 of ‘pdf_array_put’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:101:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: void pdf_array_put(fz_context *ctx, pdf_obj *array, int i, pdf_obj *obj); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘renumberobj’: BUILDSTDERR: fitz/fitz_wrap.c:4856:27: error: ‘PDF_NULL’ undeclared (first use in this function); did you mean ‘Py_ULL’? BUILDSTDERR: val = PDF_NULL; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: Py_ULL BUILDSTDERR: fitz/fitz_wrap.c:4856:25: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: val = PDF_NULL; BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:4878:25: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: val = PDF_NULL; BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘mark_pages’: BUILDSTDERR: fitz/fitz_wrap.c:5057:43: error: ‘Page’ undeclared (first use in this function) BUILDSTDERR: if (pdf_name_eq(ctx, PDF_NAME(Page), pdf_dict_get(ctx, val, PDF_NAME(Type)))) BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:5057:82: error: ‘Type’ undeclared (first use in this function); did you mean ‘Byte’? BUILDSTDERR: if (pdf_name_eq(ctx, PDF_NAME(Page), pdf_dict_get(ctx, val, PDF_NAME(Type)))) BUILDSTDERR: ^~~~ BUILDSTDERR: Byte BUILDSTDERR: fitz/fitz_wrap.c:5057:73: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, PDF_NAME(Page), pdf_dict_get(ctx, val, PDF_NAME(Type)))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5057:34: warning: passing argument 2 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, PDF_NAME(Page), pdf_dict_get(ctx, val, PDF_NAME(Type)))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:57: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:5075:51: error: ‘Kids’ undeclared (first use in this function); did you mean ‘_is’? BUILDSTDERR: if (pdf_name_eq(ctx, PDF_NAME(Kids), key)) BUILDSTDERR: ^~~~ BUILDSTDERR: _is BUILDSTDERR: fitz/fitz_wrap.c:5075:42: warning: passing argument 2 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, PDF_NAME(Kids), key)) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:57: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘mark_root’: BUILDSTDERR: fitz/fitz_wrap.c:5135:43: error: ‘Pages’ undeclared (first use in this function); did you mean ‘gzgets’? BUILDSTDERR: if (pdf_name_eq(ctx, PDF_NAME(Pages), key)) BUILDSTDERR: ^~~~~ BUILDSTDERR: gzgets BUILDSTDERR: fitz/fitz_wrap.c:5135:34: warning: passing argument 2 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, PDF_NAME(Pages), key)) BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:57: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:5137:48: error: ‘Names’ undeclared (first use in this function) BUILDSTDERR: else if (pdf_name_eq(ctx, PDF_NAME(Names), key)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5137:39: warning: passing argument 2 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: else if (pdf_name_eq(ctx, PDF_NAME(Names), key)) BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:57: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:5139:48: error: ‘Dests’ undeclared (first use in this function) BUILDSTDERR: else if (pdf_name_eq(ctx, PDF_NAME(Dests), key)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5139:39: warning: passing argument 2 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: else if (pdf_name_eq(ctx, PDF_NAME(Dests), key)) BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:57: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:5141:48: error: ‘Outlines’ undeclared (first use in this function); did you mean ‘futimes’? BUILDSTDERR: else if (pdf_name_eq(ctx, PDF_NAME(Outlines), key)) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: futimes BUILDSTDERR: fitz/fitz_wrap.c:5141:39: warning: passing argument 2 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: else if (pdf_name_eq(ctx, PDF_NAME(Outlines), key)) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:57: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:5146:71: error: ‘PageMode’ undeclared (first use in this function) BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, dict, PDF_NAME(PageMode)), PDF_NAME(UseOutlines))) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5146:62: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, dict, PDF_NAME(PageMode)), PDF_NAME(UseOutlines))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5146:92: error: ‘UseOutlines’ undeclared (first use in this function); did you mean ‘fz_outline’? BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, dict, PDF_NAME(PageMode)), PDF_NAME(UseOutlines))) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fz_outline BUILDSTDERR: fitz/fitz_wrap.c:5146:83: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, dict, PDF_NAME(PageMode)), PDF_NAME(UseOutlines))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘mark_trailer’: BUILDSTDERR: fitz/fitz_wrap.c:5181:43: error: ‘Root’ undeclared (first use in this function) BUILDSTDERR: if (pdf_name_eq(ctx, PDF_NAME(Root), key)) BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:5181:34: warning: passing argument 2 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, PDF_NAME(Root), key)) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:57: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘add_linearization_objs’: BUILDSTDERR: fitz/fitz_wrap.c:5223:53: error: ‘Linearized’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_real(ctx, params_obj, PDF_NAME(Linearized), 1.0f); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5223:44: warning: passing argument 3 of ‘pdf_dict_put_real’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_real(ctx, params_obj, PDF_NAME(Linearized), 1.0f); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:135:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_real(fz_context *ctx, pdf_obj *dict, pdf_obj *key, double x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5224:43: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: opts->linear_l = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5224:26: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: opts->linear_l = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5224:24: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: opts->linear_l = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5225:48: error: ‘L’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, params_obj, PDF_NAME(L), opts->linear_l); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5225:39: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, params_obj, PDF_NAME(L), opts->linear_l); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5226:44: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: opts->linear_h0 = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5226:27: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: opts->linear_h0 = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5226:25: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: opts->linear_h0 = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5228:53: error: ‘H’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_drop(ctx, params_obj, PDF_NAME(H), o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5228:44: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, params_obj, PDF_NAME(H), o); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5230:44: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: opts->linear_h1 = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5230:27: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: opts->linear_h1 = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5230:25: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: opts->linear_h1 = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5232:43: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: opts->linear_o = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5232:26: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: opts->linear_o = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5232:24: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: opts->linear_o = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5233:48: error: ‘O’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, params_obj, PDF_NAME(O), opts->linear_o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5233:39: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, params_obj, PDF_NAME(O), opts->linear_o); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5234:43: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: opts->linear_e = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5234:26: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: opts->linear_e = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5234:24: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: opts->linear_e = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5235:48: error: ‘E’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, params_obj, PDF_NAME(E), opts->linear_e); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5235:39: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, params_obj, PDF_NAME(E), opts->linear_e); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5236:43: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: opts->linear_n = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5236:26: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: opts->linear_n = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5236:24: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: opts->linear_n = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5237:48: error: ‘N’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, params_obj, PDF_NAME(N), opts->linear_n); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5237:39: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, params_obj, PDF_NAME(N), opts->linear_n); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5238:43: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: opts->linear_t = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5238:26: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: opts->linear_t = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5238:24: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: opts->linear_t = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5239:48: error: ‘T’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, params_obj, PDF_NAME(T), opts->linear_t); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5239:39: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, params_obj, PDF_NAME(T), opts->linear_t); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5250:50: error: ‘P’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_int(ctx, hint_obj, PDF_NAME(P), 0); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5250:41: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(ctx, hint_obj, PDF_NAME(P), 0); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5251:42: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: opts->hints_s = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5251:25: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: opts->hints_s = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5251:23: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: opts->hints_s = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5252:46: error: ‘S’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, hint_obj, PDF_NAME(S), opts->hints_s); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5252:37: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, hint_obj, PDF_NAME(S), opts->hints_s); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5261:46: error: ‘Filter’ undeclared (first use in this function); did you mean ‘setter’? BUILDSTDERR: pdf_dict_put(ctx, hint_obj, PDF_NAME(Filter), PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: setter BUILDSTDERR: fitz/fitz_wrap.c:5261:64: error: ‘FlateDecode’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, hint_obj, PDF_NAME(Filter), PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5261:37: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, hint_obj, PDF_NAME(Filter), PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5261:55: warning: passing argument 4 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, hint_obj, PDF_NAME(Filter), PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:74: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5262:47: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: opts->hints_length = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5262:30: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: opts->hints_length = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5262:28: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: opts->hints_length = pdf_new_int(ctx, INT_MIN); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5263:46: error: ‘Length’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, hint_obj, PDF_NAME(Length), opts->hints_length); BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5263:37: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, hint_obj, PDF_NAME(Length), opts->hints_length); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘lpr_inherit_res’: BUILDSTDERR: fitz/fitz_wrap.c:5330:49: error: ‘Parent’ undeclared (first use in this function); did you mean ‘_arena’? BUILDSTDERR: node = pdf_dict_get(ctx, node, PDF_NAME(Parent)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: _arena BUILDSTDERR: fitz/fitz_wrap.c:5330:40: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: node = pdf_dict_get(ctx, node, PDF_NAME(Parent)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5335:46: error: ‘Resources’ undeclared (first use in this function) BUILDSTDERR: o = pdf_dict_get(ctx, node, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5335:37: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(ctx, node, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5338:61: error: ‘ExtGState’ undeclared (first use in this function); did you mean ‘setstate’? BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(ExtGState)); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: setstate BUILDSTDERR: fitz/fitz_wrap.c:5338:52: warning: passing argument 4 of ‘lpr_inherit_res_contents’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(ExtGState)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5280:81: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: lpr_inherit_res_contents(fz_context *ctx, pdf_obj *res, pdf_obj *dict, pdf_obj *text) BUILDSTDERR: ~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:5339:61: error: ‘ColorSpace’ undeclared (first use in this function); did you mean ‘fz_colorspace’? BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(ColorSpace)); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: fz_colorspace BUILDSTDERR: fitz/fitz_wrap.c:5339:52: warning: passing argument 4 of ‘lpr_inherit_res_contents’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(ColorSpace)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5280:81: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: lpr_inherit_res_contents(fz_context *ctx, pdf_obj *res, pdf_obj *dict, pdf_obj *text) BUILDSTDERR: ~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:5340:61: error: ‘Pattern’ undeclared (first use in this function); did you mean ‘setter’? BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(Pattern)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: setter BUILDSTDERR: fitz/fitz_wrap.c:5340:52: warning: passing argument 4 of ‘lpr_inherit_res_contents’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(Pattern)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5280:81: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: lpr_inherit_res_contents(fz_context *ctx, pdf_obj *res, pdf_obj *dict, pdf_obj *text) BUILDSTDERR: ~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:5341:61: error: ‘Shading’ undeclared (first use in this function) BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(Shading)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5341:52: warning: passing argument 4 of ‘lpr_inherit_res_contents’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(Shading)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5280:81: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: lpr_inherit_res_contents(fz_context *ctx, pdf_obj *res, pdf_obj *dict, pdf_obj *text) BUILDSTDERR: ~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:5342:61: error: ‘XObject’ undeclared (first use in this function); did you mean ‘PyObject’? BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(XObject)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: PyObject BUILDSTDERR: fitz/fitz_wrap.c:5342:52: warning: passing argument 4 of ‘lpr_inherit_res_contents’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(XObject)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5280:81: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: lpr_inherit_res_contents(fz_context *ctx, pdf_obj *res, pdf_obj *dict, pdf_obj *text) BUILDSTDERR: ~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:5343:61: error: ‘Font’ undeclared (first use in this function); did you mean ‘uInt’? BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(Font)); BUILDSTDERR: ^~~~ BUILDSTDERR: uInt BUILDSTDERR: fitz/fitz_wrap.c:5343:52: warning: passing argument 4 of ‘lpr_inherit_res_contents’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(Font)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5280:81: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: lpr_inherit_res_contents(fz_context *ctx, pdf_obj *res, pdf_obj *dict, pdf_obj *text) BUILDSTDERR: ~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:5344:61: error: ‘ProcSet’ undeclared (first use in this function) BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(ProcSet)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5344:52: warning: passing argument 4 of ‘lpr_inherit_res_contents’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(ProcSet)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5280:81: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: lpr_inherit_res_contents(fz_context *ctx, pdf_obj *res, pdf_obj *dict, pdf_obj *text) BUILDSTDERR: ~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:5345:61: error: ‘Properties’ undeclared (first use in this function) BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(Properties)); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5345:52: warning: passing argument 4 of ‘lpr_inherit_res_contents’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: lpr_inherit_res_contents(ctx, dict, o, PDF_NAME(Properties)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5280:81: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: lpr_inherit_res_contents(fz_context *ctx, pdf_obj *res, pdf_obj *dict, pdf_obj *text) BUILDSTDERR: ~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘lpr_inherit’: BUILDSTDERR: fitz/fitz_wrap.c:5359:49: error: ‘Parent’ undeclared (first use in this function); did you mean ‘_arena’? BUILDSTDERR: node = pdf_dict_get(ctx, node, PDF_NAME(Parent)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: _arena BUILDSTDERR: fitz/fitz_wrap.c:5359:40: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: node = pdf_dict_get(ctx, node, PDF_NAME(Parent)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘lpr’: BUILDSTDERR: fitz/fitz_wrap.c:5381:39: error: ‘Page’ undeclared (first use in this function); did you mean ‘page’? BUILDSTDERR: if (pdf_name_eq(ctx, PDF_NAME(Page), pdf_dict_get(ctx, node, PDF_NAME(Type)))) BUILDSTDERR: ^~~~ BUILDSTDERR: page BUILDSTDERR: fitz/fitz_wrap.c:5381:79: error: ‘Type’ undeclared (first use in this function); did you mean ‘Byte’? BUILDSTDERR: if (pdf_name_eq(ctx, PDF_NAME(Page), pdf_dict_get(ctx, node, PDF_NAME(Type)))) BUILDSTDERR: ^~~~ BUILDSTDERR: Byte BUILDSTDERR: fitz/fitz_wrap.c:5381:70: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, PDF_NAME(Page), pdf_dict_get(ctx, node, PDF_NAME(Type)))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5381:30: warning: passing argument 2 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, PDF_NAME(Page), pdf_dict_get(ctx, node, PDF_NAME(Type)))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:57: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:5386:68: error: ‘Resources’ undeclared (first use in this function) BUILDSTDERR: o = pdf_keep_obj(ctx, pdf_dict_get(ctx, node, PDF_NAME(Resources))); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5386:59: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_keep_obj(ctx, pdf_dict_get(ctx, node, PDF_NAME(Resources))); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5390:41: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, node, PDF_NAME(Resources), o); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5395:50: error: ‘MediaBox’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, node, PDF_NAME(MediaBox), r); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5395:41: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, node, PDF_NAME(MediaBox), r); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5398:50: error: ‘CropBox’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, node, PDF_NAME(CropBox), r); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5398:41: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, node, PDF_NAME(CropBox), r); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5401:50: error: ‘BleedBox’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, node, PDF_NAME(BleedBox), r); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5401:41: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, node, PDF_NAME(BleedBox), r); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5404:50: error: ‘TrimBox’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, node, PDF_NAME(TrimBox), r); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5404:41: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, node, PDF_NAME(TrimBox), r); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5407:50: error: ‘ArtBox’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, node, PDF_NAME(ArtBox), r); BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5407:41: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, node, PDF_NAME(ArtBox), r); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5410:50: error: ‘Rotate’ undeclared (first use in this function); did you mean ‘statx’? BUILDSTDERR: pdf_dict_put(ctx, node, PDF_NAME(Rotate), r); BUILDSTDERR: ^~~~~~ BUILDSTDERR: statx BUILDSTDERR: fitz/fitz_wrap.c:5410:41: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, node, PDF_NAME(Rotate), r); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5415:53: error: ‘Kids’ undeclared (first use in this function); did you mean ‘kids’? BUILDSTDERR: kids = pdf_dict_get(ctx, node, PDF_NAME(Kids)); BUILDSTDERR: ^~~~ BUILDSTDERR: kids BUILDSTDERR: fitz/fitz_wrap.c:5415:44: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: kids = pdf_dict_get(ctx, node, PDF_NAME(Kids)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5421:37: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, node, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5422:37: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, node, PDF_NAME(MediaBox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5423:37: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, node, PDF_NAME(CropBox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5424:37: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, node, PDF_NAME(BleedBox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5425:37: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, node, PDF_NAME(TrimBox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5426:37: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, node, PDF_NAME(ArtBox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5427:37: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, node, PDF_NAME(Rotate)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘addhexfilter’: BUILDSTDERR: fitz/fitz_wrap.c:5599:42: error: ‘Filter’ undeclared (first use in this function); did you mean ‘setter’? BUILDSTDERR: f = pdf_dict_get(ctx, dict, PDF_NAME(Filter)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: setter BUILDSTDERR: fitz/fitz_wrap.c:5599:33: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: f = pdf_dict_get(ctx, dict, PDF_NAME(Filter)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5600:43: error: ‘DecodeParms’ undeclared (first use in this function); did you mean ‘deflateParams’? BUILDSTDERR: dp = pdf_dict_get(ctx, dict, PDF_NAME(DecodeParms)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: deflateParams BUILDSTDERR: fitz/fitz_wrap.c:5600:34: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: dp = pdf_dict_get(ctx, dict, PDF_NAME(DecodeParms)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5610:48: error: ‘ASCIIHexDecode’ undeclared (first use in this function); did you mean ‘PyCodec_Decode’? BUILDSTDERR: pdf_array_push(ctx, newf, PDF_NAME(ASCIIHexDecode)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: PyCodec_Decode BUILDSTDERR: fitz/fitz_wrap.c:5610:39: warning: passing argument 3 of ‘pdf_array_push’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_array_push(ctx, newf, PDF_NAME(ASCIIHexDecode)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:103:63: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_array_push(fz_context *ctx, pdf_obj *array, pdf_obj *obj); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5616:44: error: ‘PDF_NULL’ undeclared (first use in this function); did you mean ‘Py_ULL’? BUILDSTDERR: pdf_array_push(ctx, newdp, PDF_NULL); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: Py_ULL BUILDSTDERR: fitz/fitz_wrap.c:5616:44: warning: passing argument 3 of ‘pdf_array_push’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:103:63: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: void pdf_array_push(fz_context *ctx, pdf_obj *array, pdf_obj *obj); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5623:38: warning: passing argument 3 of ‘pdf_array_insert’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_array_insert(ctx, f, PDF_NAME(ASCIIHexDecode), 0); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:105:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_array_insert(fz_context *ctx, pdf_obj *array, pdf_obj *obj, int index); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5625:43: warning: passing argument 3 of ‘pdf_array_insert’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: pdf_array_insert(ctx, dp, PDF_NULL, 0); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:105:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: void pdf_array_insert(fz_context *ctx, pdf_obj *array, pdf_obj *obj, int index); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5628:15: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: f = PDF_NAME(ASCIIHexDecode); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:5630:33: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, dict, PDF_NAME(Filter), f); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5632:37: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, dict, PDF_NAME(DecodeParms), dp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘copystream’: BUILDSTDERR: fitz/fitz_wrap.c:5686:56: error: ‘Filter’ undeclared (first use in this function); did you mean ‘setter’? BUILDSTDERR: if (do_deflate && !pdf_dict_get(ctx, obj, PDF_NAME(Filter))) BUILDSTDERR: ^~~~~~ BUILDSTDERR: setter BUILDSTDERR: fitz/fitz_wrap.c:5686:47: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (do_deflate && !pdf_dict_get(ctx, obj, PDF_NAME(Filter))) BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5701:63: error: ‘FlateDecode’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, obj, PDF_NAME(Filter), PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5701:36: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, obj, PDF_NAME(Filter), PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5701:54: warning: passing argument 4 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, obj, PDF_NAME(Filter), PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:74: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5717:41: error: ‘Length’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_int(ctx, obj, PDF_NAME(Length), pdf_encrypted_len(ctx, NULL, num, gen, (int)len)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5717:32: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(ctx, obj, PDF_NAME(Length), pdf_encrypted_len(ctx, NULL, num, gen, (int)len)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘expandstream’: BUILDSTDERR: fitz/fitz_wrap.c:5742:37: error: ‘Filter’ undeclared (first use in this function); did you mean ‘setter’? BUILDSTDERR: pdf_dict_del(ctx, obj, PDF_NAME(Filter)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: setter BUILDSTDERR: fitz/fitz_wrap.c:5742:28: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, obj, PDF_NAME(Filter)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5743:37: error: ‘DecodeParms’ undeclared (first use in this function); did you mean ‘deflateParams’? BUILDSTDERR: pdf_dict_del(ctx, obj, PDF_NAME(DecodeParms)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: deflateParams BUILDSTDERR: fitz/fitz_wrap.c:5743:28: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, obj, PDF_NAME(DecodeParms)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5761:63: error: ‘FlateDecode’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, obj, PDF_NAME(Filter), PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5761:36: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, obj, PDF_NAME(Filter), PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5761:54: warning: passing argument 4 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, obj, PDF_NAME(Filter), PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:74: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:5777:41: error: ‘Length’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_int(ctx, obj, PDF_NAME(Length), len); BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5777:32: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(ctx, obj, PDF_NAME(Length), len); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘is_image_stream’: BUILDSTDERR: fitz/fitz_wrap.c:5820:46: error: ‘Type’ undeclared (first use in this function); did you mean ‘Byte’? BUILDSTDERR: if ((o = pdf_dict_get(ctx, obj, PDF_NAME(Type)), pdf_name_eq(ctx, o, PDF_NAME(XObject)))) BUILDSTDERR: ^~~~ BUILDSTDERR: Byte BUILDSTDERR: fitz/fitz_wrap.c:5820:37: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if ((o = pdf_dict_get(ctx, obj, PDF_NAME(Type)), pdf_name_eq(ctx, o, PDF_NAME(XObject)))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5820:83: error: ‘XObject’ undeclared (first use in this function); did you mean ‘PyObject’? BUILDSTDERR: if ((o = pdf_dict_get(ctx, obj, PDF_NAME(Type)), pdf_name_eq(ctx, o, PDF_NAME(XObject)))) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: PyObject BUILDSTDERR: fitz/fitz_wrap.c:5820:74: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if ((o = pdf_dict_get(ctx, obj, PDF_NAME(Type)), pdf_name_eq(ctx, o, PDF_NAME(XObject)))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:5821:50: error: ‘Subtype’ undeclared (first use in this function); did you mean ‘isctype’? BUILDSTDERR: if ((o = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), pdf_name_eq(ctx, o, PDF_NAME(Image)))) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: isctype BUILDSTDERR: fitz/fitz_wrap.c:5821:41: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if ((o = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), pdf_name_eq(ctx, o, PDF_NAME(Image)))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5821:90: error: ‘Image’ undeclared (first use in this function) BUILDSTDERR: if ((o = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), pdf_name_eq(ctx, o, PDF_NAME(Image)))) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5821:81: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if ((o = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), pdf_name_eq(ctx, o, PDF_NAME(Image)))) BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:5823:45: error: ‘Filter’ undeclared (first use in this function); did you mean ‘setter’? BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Filter)), filter_implies_image(ctx, o)) BUILDSTDERR: ^~~~~~ BUILDSTDERR: setter BUILDSTDERR: fitz/fitz_wrap.c:5823:36: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Filter)), filter_implies_image(ctx, o)) BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5825:41: error: ‘Width’ undeclared (first use in this function) BUILDSTDERR: if (pdf_dict_get(ctx, obj, PDF_NAME(Width)) != NULL && pdf_dict_get(ctx, obj, PDF_NAME(Height)) != NULL) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5825:32: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_dict_get(ctx, obj, PDF_NAME(Width)) != NULL && pdf_dict_get(ctx, obj, PDF_NAME(Height)) != NULL) BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5825:92: error: ‘Height’ undeclared (first use in this function); did you mean ‘sdigit’? BUILDSTDERR: if (pdf_dict_get(ctx, obj, PDF_NAME(Width)) != NULL && pdf_dict_get(ctx, obj, PDF_NAME(Height)) != NULL) BUILDSTDERR: ^~~~~~ BUILDSTDERR: sdigit BUILDSTDERR: fitz/fitz_wrap.c:5825:83: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_dict_get(ctx, obj, PDF_NAME(Width)) != NULL && pdf_dict_get(ctx, obj, PDF_NAME(Height)) != NULL) BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘is_font_stream’: BUILDSTDERR: fitz/fitz_wrap.c:5833:45: error: ‘Type’ undeclared (first use in this function); did you mean ‘Byte’? BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Type)), pdf_name_eq(ctx, o, PDF_NAME(Font))) BUILDSTDERR: ^~~~ BUILDSTDERR: Byte BUILDSTDERR: fitz/fitz_wrap.c:5833:36: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Type)), pdf_name_eq(ctx, o, PDF_NAME(Font))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5833:82: error: ‘Font’ undeclared (first use in this function); did you mean ‘uInt’? BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Type)), pdf_name_eq(ctx, o, PDF_NAME(Font))) BUILDSTDERR: ^~~~ BUILDSTDERR: uInt BUILDSTDERR: fitz/fitz_wrap.c:5833:73: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Type)), pdf_name_eq(ctx, o, PDF_NAME(Font))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:5835:36: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Type)), pdf_name_eq(ctx, o, PDF_NAME(FontDescriptor))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5835:82: error: ‘FontDescriptor’ undeclared (first use in this function); did you mean ‘pdf_ocg_descriptor’? BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Type)), pdf_name_eq(ctx, o, PDF_NAME(FontDescriptor))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: pdf_ocg_descriptor BUILDSTDERR: fitz/fitz_wrap.c:5835:73: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Type)), pdf_name_eq(ctx, o, PDF_NAME(FontDescriptor))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:5837:41: error: ‘Length1’ undeclared (first use in this function) BUILDSTDERR: if (pdf_dict_get(ctx, obj, PDF_NAME(Length1)) != NULL) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5837:32: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_dict_get(ctx, obj, PDF_NAME(Length1)) != NULL) BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5839:41: error: ‘Length2’ undeclared (first use in this function) BUILDSTDERR: if (pdf_dict_get(ctx, obj, PDF_NAME(Length2)) != NULL) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5839:32: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_dict_get(ctx, obj, PDF_NAME(Length2)) != NULL) BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5841:41: error: ‘Length3’ undeclared (first use in this function) BUILDSTDERR: if (pdf_dict_get(ctx, obj, PDF_NAME(Length3)) != NULL) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5841:32: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_dict_get(ctx, obj, PDF_NAME(Length3)) != NULL) BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5843:45: error: ‘Subtype’ undeclared (first use in this function); did you mean ‘isctype’? BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), pdf_name_eq(ctx, o, PDF_NAME(Type1C))) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: isctype BUILDSTDERR: fitz/fitz_wrap.c:5843:36: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), pdf_name_eq(ctx, o, PDF_NAME(Type1C))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5843:85: error: ‘Type1C’ undeclared (first use in this function) BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), pdf_name_eq(ctx, o, PDF_NAME(Type1C))) BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5843:76: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), pdf_name_eq(ctx, o, PDF_NAME(Type1C))) BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:5845:36: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), pdf_name_eq(ctx, o, PDF_NAME(CIDFontType0C))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5845:85: error: ‘CIDFontType0C’ undeclared (first use in this function) BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), pdf_name_eq(ctx, o, PDF_NAME(CIDFontType0C))) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5845:76: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (o = pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), pdf_name_eq(ctx, o, PDF_NAME(CIDFontType0C))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘is_xml_metadata’: BUILDSTDERR: fitz/fitz_wrap.c:5852:58: error: ‘Type’ undeclared (first use in this function); did you mean ‘Byte’? BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, obj, PDF_NAME(Type)), PDF_NAME(Metadata))) BUILDSTDERR: ^~~~ BUILDSTDERR: Byte BUILDSTDERR: fitz/fitz_wrap.c:5852:49: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, obj, PDF_NAME(Type)), PDF_NAME(Metadata))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5852:75: error: ‘Metadata’ undeclared (first use in this function); did you mean ‘getdate’? BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, obj, PDF_NAME(Type)), PDF_NAME(Metadata))) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: getdate BUILDSTDERR: fitz/fitz_wrap.c:5852:66: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, obj, PDF_NAME(Type)), PDF_NAME(Metadata))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:5853:62: error: ‘Subtype’ undeclared (first use in this function); did you mean ‘isctype’? BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), PDF_NAME(XML))) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: isctype BUILDSTDERR: fitz/fitz_wrap.c:5853:53: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), PDF_NAME(XML))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5853:82: error: ‘XML’ undeclared (first use in this function) BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), PDF_NAME(XML))) BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c:5853:73: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, obj, PDF_NAME(Subtype)), PDF_NAME(XML))) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘writeobject’: BUILDSTDERR: fitz/fitz_wrap.c:5887:48: error: ‘Type’ undeclared (first use in this function); did you mean ‘type’? BUILDSTDERR: type = pdf_dict_get(ctx, obj, PDF_NAME(Type)); BUILDSTDERR: ^~~~ BUILDSTDERR: type BUILDSTDERR: fitz/fitz_wrap.c:5887:39: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: type = pdf_dict_get(ctx, obj, PDF_NAME(Type)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5888:45: error: ‘ObjStm’ undeclared (first use in this function) BUILDSTDERR: if (pdf_name_eq(ctx, type, PDF_NAME(ObjStm))) BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5888:36: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, type, PDF_NAME(ObjStm))) BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:5894:59: error: ‘XRef’ undeclared (first use in this function) BUILDSTDERR: if (skip_xrefs && pdf_name_eq(ctx, type, PDF_NAME(XRef))) BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:5894:50: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (skip_xrefs && pdf_name_eq(ctx, type, PDF_NAME(XRef))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘writexref’: BUILDSTDERR: fitz/fitz_wrap.c:6008:49: error: ‘Size’ undeclared (first use in this function); did you mean ‘time’? BUILDSTDERR: pdf_dict_put_int(ctx, trailer, PDF_NAME(Size), pdf_xref_len(ctx, doc)); BUILDSTDERR: ^~~~ BUILDSTDERR: time BUILDSTDERR: fitz/fitz_wrap.c:6008:40: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(ctx, trailer, PDF_NAME(Size), pdf_xref_len(ctx, doc)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6009:49: error: ‘Prev’ undeclared (first use in this function); did you mean ‘drem’? BUILDSTDERR: pdf_dict_put_int(ctx, trailer, PDF_NAME(Prev), doc->startxref); BUILDSTDERR: ^~~~ BUILDSTDERR: drem BUILDSTDERR: fitz/fitz_wrap.c:6009:40: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(ctx, trailer, PDF_NAME(Prev), doc->startxref); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6016:33: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: nobj = pdf_new_int(ctx, to); BUILDSTDERR: ^~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6016:16: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: nobj = pdf_new_int(ctx, to); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6016:14: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: nobj = pdf_new_int(ctx, to); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:6017:41: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, trailer, PDF_NAME(Size), nobj); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6021:69: error: ‘Info’ undeclared (first use in this function); did you mean ‘ynf’? BUILDSTDERR: obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(Info)); BUILDSTDERR: ^~~~ BUILDSTDERR: ynf BUILDSTDERR: fitz/fitz_wrap.c:6021:60: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(Info)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6023:44: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, trailer, PDF_NAME(Info), obj); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6025:69: error: ‘Root’ undeclared (first use in this function) BUILDSTDERR: obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(Root)); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:6025:60: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(Root)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6027:44: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, trailer, PDF_NAME(Root), obj); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6029:69: error: ‘ID’ undeclared (first use in this function) BUILDSTDERR: obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(ID)); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:6029:60: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(ID)); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6031:44: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, trailer, PDF_NAME(ID), obj); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6035:37: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: nobj = pdf_new_int(ctx, main_xref_offset); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘int64_t’ {aka ‘long int’} BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6035:20: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: nobj = pdf_new_int(ctx, main_xref_offset); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6035:18: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: nobj = pdf_new_int(ctx, main_xref_offset); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:6036:45: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, trailer, PDF_NAME(Prev), nobj); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘writexrefstream’: BUILDSTDERR: fitz/fitz_wrap.c:6093:69: error: ‘Info’ undeclared (first use in this function); did you mean ‘ynf’? BUILDSTDERR: obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(Info)); BUILDSTDERR: ^~~~ BUILDSTDERR: ynf BUILDSTDERR: fitz/fitz_wrap.c:6093:60: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(Info)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6095:41: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, dict, PDF_NAME(Info), obj); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6097:69: error: ‘Root’ undeclared (first use in this function) BUILDSTDERR: obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(Root)); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:6097:60: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(Root)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6099:41: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, dict, PDF_NAME(Root), obj); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6101:69: error: ‘ID’ undeclared (first use in this function) BUILDSTDERR: obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(ID)); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:6101:60: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(ID)); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6103:41: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, dict, PDF_NAME(ID), obj); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6107:73: error: ‘Encrypt’ undeclared (first use in this function); did you mean ‘crypt’? BUILDSTDERR: obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(Encrypt)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: crypt BUILDSTDERR: fitz/fitz_wrap.c:6107:64: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(Encrypt)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6109:45: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, dict, PDF_NAME(Encrypt), obj); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6113:46: error: ‘Size’ undeclared (first use in this function); did you mean ‘time’? BUILDSTDERR: pdf_dict_put_int(ctx, dict, PDF_NAME(Size), to); BUILDSTDERR: ^~~~ BUILDSTDERR: time BUILDSTDERR: fitz/fitz_wrap.c:6113:37: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(ctx, dict, PDF_NAME(Size), to); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6117:50: error: ‘Prev’ undeclared (first use in this function); did you mean ‘drem’? BUILDSTDERR: pdf_dict_put_int(ctx, dict, PDF_NAME(Prev), doc->startxref); BUILDSTDERR: ^~~~ BUILDSTDERR: drem BUILDSTDERR: fitz/fitz_wrap.c:6117:41: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(ctx, dict, PDF_NAME(Prev), doc->startxref); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6123:45: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(ctx, dict, PDF_NAME(Prev), main_xref_offset); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6126:42: error: ‘Type’ undeclared (first use in this function); did you mean ‘Byte’? BUILDSTDERR: pdf_dict_put(ctx, dict, PDF_NAME(Type), PDF_NAME(XRef)); BUILDSTDERR: ^~~~ BUILDSTDERR: Byte BUILDSTDERR: fitz/fitz_wrap.c:6126:58: error: ‘XRef’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, dict, PDF_NAME(Type), PDF_NAME(XRef)); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:6126:33: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, dict, PDF_NAME(Type), PDF_NAME(XRef)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6126:49: warning: passing argument 4 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, dict, PDF_NAME(Type), PDF_NAME(XRef)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:74: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6129:42: error: ‘W’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, dict, PDF_NAME(W), w); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:6129:33: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, dict, PDF_NAME(W), w); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6135:47: error: ‘Index’ undeclared (first use in this function); did you mean ‘index’? BUILDSTDERR: pdf_dict_put_drop(ctx, dict, PDF_NAME(Index), index); BUILDSTDERR: ^~~~~ BUILDSTDERR: index BUILDSTDERR: fitz/fitz_wrap.c:6135:38: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, dict, PDF_NAME(Index), index); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:6184:8: error: ‘pdf_document’ {aka ‘struct pdf_document_s’} has no member named ‘has_old_style_xrefs’ BUILDSTDERR: doc->has_old_style_xrefs = 0; BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:6184:5: warning: statement with no effect [-Wunused-value] BUILDSTDERR: doc->has_old_style_xrefs = 0; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘presize_unsaved_signature_byteranges’: BUILDSTDERR: fitz/fitz_wrap.c:6606:80: error: ‘V’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *byte_range = pdf_dict_getl(ctx, usig->field, PDF_NAME(V), PDF_NAME(ByteRange), NULL); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:6606:93: error: ‘ByteRange’ undeclared (first use in this function); did you mean ‘byte_range’? BUILDSTDERR: pdf_obj *byte_range = pdf_dict_getl(ctx, usig->field, PDF_NAME(V), PDF_NAME(ByteRange), NULL); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: byte_range BUILDSTDERR: fitz/fitz_wrap.c: In function ‘complete_signatures’: BUILDSTDERR: fitz/fitz_wrap.c:6643:44: error: ‘pdf_pkcs7_signer’ {aka ‘struct pdf_pkcs7_signer_s’} has no member named ‘max_digest_size’ BUILDSTDERR: int size = usig->signer->max_digest_size(usig->signer); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:6643:32: error: called object is not a function or function pointer BUILDSTDERR: int size = usig->signer->max_digest_size(usig->signer); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:6643:32: warning: initialization of ‘int’ from ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} makes integer from pointer without a cast [-Wint-conversion] BUILDSTDERR: fitz/fitz_wrap.c:6657:97: error: ‘V’ undeclared (first use in this function) BUILDSTDERR: int pnum = pdf_obj_parent_num(ctx, pdf_dict_getl(ctx, usig->field, PDF_NAME(V), PDF_NAME(ByteRange), NULL)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:6657:110: error: ‘ByteRange’ undeclared (first use in this function); did you mean ‘byte_range’? BUILDSTDERR: int pnum = pdf_obj_parent_num(ctx, pdf_dict_getl(ctx, usig->field, PDF_NAME(V), PDF_NAME(ByteRange), NULL)); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: byte_range BUILDSTDERR: fitz/fitz_wrap.c: In function ‘change_identity’: BUILDSTDERR: fitz/fitz_wrap.c:6827:75: error: ‘ID’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *identity = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(ID)); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:6827:66: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *identity = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(ID)); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6836:31: warning: passing argument 2 of ‘pdf_new_string’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: str = pdf_new_string(ctx, (char *)rnd, 16); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:23:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘char *’ BUILDSTDERR: pdf_obj *pdf_new_string(fz_context *ctx, pdf_document *doc, const char *str, size_t len); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6836:44: warning: passing argument 3 of ‘pdf_new_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: str = pdf_new_string(ctx, (char *)rnd, 16); BUILDSTDERR: ^~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:23:10: note: expected ‘const char *’ but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_new_string(fz_context *ctx, pdf_document *doc, const char *str, size_t len); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6836:11: error: too few arguments to function ‘pdf_new_string’ BUILDSTDERR: str = pdf_new_string(ctx, (char *)rnd, 16); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:23:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_string(fz_context *ctx, pdf_document *doc, const char *str, size_t len); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6836:9: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: str = pdf_new_string(ctx, (char *)rnd, 16); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘do_pdf_save_document’: BUILDSTDERR: fitz/fitz_wrap.c:6899:80: error: ‘Encrypt’ undeclared (first use in this function); did you mean ‘crypt’? BUILDSTDERR: pdf_obj *crypt = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(Encrypt)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: crypt BUILDSTDERR: fitz/fitz_wrap.c:6899:71: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *crypt = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(Encrypt)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_get_border_style’: BUILDSTDERR: fitz/fitz_wrap.c:7226:29: error: ‘S’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *val = PDF_NAME(S); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7226:20: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *val = PDF_NAME(S); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7231:73: error: ‘B’ undeclared (first use in this function) BUILDSTDERR: if (!strncmp(s, "b", 1) || !strncmp(s, "B", 1)) val = PDF_NAME(B); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7231:62: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (!strncmp(s, "b", 1) || !strncmp(s, "B", 1)) val = PDF_NAME(B); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7232:73: error: ‘D’ undeclared (first use in this function) BUILDSTDERR: else if (!strncmp(s, "d", 1) || !strncmp(s, "D", 1)) val = PDF_NAME(D); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7232:62: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: else if (!strncmp(s, "d", 1) || !strncmp(s, "D", 1)) val = PDF_NAME(D); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7233:73: error: ‘I’ undeclared (first use in this function) BUILDSTDERR: else if (!strncmp(s, "i", 1) || !strncmp(s, "I", 1)) val = PDF_NAME(I); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7233:62: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: else if (!strncmp(s, "i", 1) || !strncmp(s, "I", 1)) val = PDF_NAME(I); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7234:73: error: ‘U’ undeclared (first use in this function) BUILDSTDERR: else if (!strncmp(s, "u", 1) || !strncmp(s, "U", 1)) val = PDF_NAME(U); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7234:62: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: else if (!strncmp(s, "u", 1) || !strncmp(s, "U", 1)) val = PDF_NAME(U); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_make_annot_DA’: BUILDSTDERR: fitz/fitz_wrap.c:7270:50: warning: passing argument 3 of ‘fz_buffer_storage’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: size_t len = fz_buffer_storage(ctx, buf, &da); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:34:75: note: expected ‘unsigned char **’ but argument is of type ‘char **’ BUILDSTDERR: size_t fz_buffer_storage(fz_context *ctx, fz_buffer *buf, unsigned char **datap); BUILDSTDERR: ~~~~~~~~~~~~~~~~^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7271:55: error: ‘DA’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_string(ctx, annot->obj, PDF_NAME(DA), (const char *)da, len); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:7271:46: warning: passing argument 3 of ‘pdf_dict_put_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_string(ctx, annot->obj, PDF_NAME(DA), (const char *)da, len); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:137:67: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x, size_t n); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘refresh_link_table’: BUILDSTDERR: fitz/fitz_wrap.c:7283:65: error: ‘Annots’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *annots_arr = pdf_dict_get(ctx, page->obj, PDF_NAME(Annots)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7283:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *annots_arr = pdf_dict_get(ctx, page->obj, PDF_NAME(Annots)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7290:72: error: incompatible type for argument 5 of ‘pdf_load_link_annots’ BUILDSTDERR: pdf_to_num(ctx, page->obj), page_ctm); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:23, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/annot.h:133:10: note: expected ‘const fz_matrix *’ {aka ‘const struct fz_matrix_s *’} but argument is of type ‘fz_matrix’ {aka ‘struct fz_matrix_s’} BUILDSTDERR: fz_link *pdf_load_link_annots(fz_context *ctx, pdf_document *, pdf_obj *annots, int pagenum, const fz_matrix *page_ctm); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7289:21: warning: assignment to ‘fz_link *’ {aka ‘struct fz_link_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: page->links = pdf_load_link_annots(ctx, page->doc, annots_arr, BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: At top level: BUILDSTDERR: fitz/fitz_wrap.c:7299:72: error: unknown type name ‘fz_quad’; did you mean ‘fz_shade’? BUILDSTDERR: struct fz_annot_s *JM_AnnotTextmarker(fz_context *ctx, pdf_page *page, fz_quad q, int type) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fz_shade BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_AnnotCircleOrRect’: BUILDSTDERR: fitz/fitz_wrap.c:7351:40: error: incompatible type for argument 3 of ‘pdf_set_annot_rect’ BUILDSTDERR: pdf_set_annot_rect(ctx, annot, JM_rect_from_py(rect)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:23, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/annot.h:178:75: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: void pdf_set_annot_rect(fz_context *ctx, pdf_annot *annot, const fz_rect *rect); BUILDSTDERR: ~~~~~~~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:7351:9: warning: statement with no effect [-Wunused-value] BUILDSTDERR: pdf_set_annot_rect(ctx, annot, JM_rect_from_py(rect)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7347:23: warning: unused variable ‘pdf’ [-Wunused-variable] BUILDSTDERR: pdf_document *pdf = page->doc; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_AnnotMultiline’: BUILDSTDERR: fitz/fitz_wrap.c:7392:49: error: incompatible type for argument 1 of ‘fz_include_point_in_rect’ BUILDSTDERR: rect = fz_include_point_in_rect(rect, point); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:572:10: note: expected ‘fz_rect *’ {aka ‘struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_include_point_in_rect(fz_rect *r, const fz_point *p); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7392:55: error: incompatible type for argument 2 of ‘fz_include_point_in_rect’ BUILDSTDERR: rect = fz_include_point_in_rect(rect, point); BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:572:10: note: expected ‘const fz_point *’ {aka ‘const struct fz_point_s *’} but argument is of type ‘fz_point’ {aka ‘struct fz_point_s’} BUILDSTDERR: fz_rect *fz_include_point_in_rect(fz_rect *r, const fz_point *p); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7392:22: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: rect = fz_include_point_in_rect(rect, point); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7392:17: warning: statement with no effect [-Wunused-value] BUILDSTDERR: rect = fz_include_point_in_rect(rect, point); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:7396:31: error: incompatible type for argument 1 of ‘fz_expand_rect’ BUILDSTDERR: rect = fz_expand_rect(rect, 3 * width); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:563:10: note: expected ‘fz_rect *’ {aka ‘struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_expand_rect(fz_rect *b, float expand); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7396:14: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: rect = fz_expand_rect(rect, 3 * width); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7396:9: warning: statement with no effect [-Wunused-value] BUILDSTDERR: rect = fz_expand_rect(rect, 3 * width); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:7397:40: error: incompatible type for argument 3 of ‘pdf_set_annot_rect’ BUILDSTDERR: pdf_set_annot_rect(ctx, annot, rect); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:23, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/annot.h:178:75: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: void pdf_set_annot_rect(fz_context *ctx, pdf_annot *annot, const fz_rect *rect); BUILDSTDERR: ~~~~~~~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:7397:9: warning: statement with no effect [-Wunused-value] BUILDSTDERR: pdf_set_annot_rect(ctx, annot, rect); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_annot_border’: BUILDSTDERR: fitz/fitz_wrap.c:7414:56: error: ‘Border’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *o = pdf_dict_get(ctx, annot_obj, PDF_NAME(Border)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7414:47: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *o = pdf_dict_get(ctx, annot_obj, PDF_NAME(Border)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7427:59: error: ‘BS’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *bs_o = pdf_dict_get(ctx, annot_obj, PDF_NAME(BS)); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:7427:50: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *bs_o = pdf_dict_get(ctx, annot_obj, PDF_NAME(BS)); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7430:46: error: ‘W’ undeclared (first use in this function) BUILDSTDERR: o = pdf_dict_get(ctx, bs_o, PDF_NAME(W)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7430:37: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(ctx, bs_o, PDF_NAME(W)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7432:46: error: ‘S’ undeclared (first use in this function) BUILDSTDERR: o = pdf_dict_get(ctx, bs_o, PDF_NAME(S)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7432:37: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(ctx, bs_o, PDF_NAME(S)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7434:46: error: ‘D’ undeclared (first use in this function) BUILDSTDERR: o = pdf_dict_get(ctx, bs_o, PDF_NAME(D)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7434:37: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(ctx, bs_o, PDF_NAME(D)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7446:37: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(ctx, be_o, PDF_NAME(S)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7448:46: error: ‘I’ undeclared (first use in this function) BUILDSTDERR: o = pdf_dict_get(ctx, be_o, PDF_NAME(I)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7448:37: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(ctx, be_o, PDF_NAME(I)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_annot_set_border’: BUILDSTDERR: fitz/fitz_wrap.c:7493:43: error: ‘BS’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_del(ctx, annot_obj, PDF_NAME(BS)); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:7493:34: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, annot_obj, PDF_NAME(BS)); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:7494:43: error: ‘BE’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_del(ctx, annot_obj, PDF_NAME(BE)); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:7494:34: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, annot_obj, PDF_NAME(BE)); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:7495:43: error: ‘Border’ undeclared (first use in this function); did you mean ‘border’? BUILDSTDERR: pdf_dict_del(ctx, annot_obj, PDF_NAME(Border)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: border BUILDSTDERR: fitz/fitz_wrap.c:7495:34: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, annot_obj, PDF_NAME(Border)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:7514:73: error: ‘D’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_putl_drop(ctx, annot_obj, darr, PDF_NAME(BS), PDF_NAME(D), NULL); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7518:58: error: incompatible type for argument 2 of ‘pdf_new_real’ BUILDSTDERR: pdf_dict_putl_drop(ctx, annot_obj, pdf_new_real(ctx, nwidth), BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:21:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘double’ BUILDSTDERR: pdf_obj *pdf_new_real(fz_context *ctx, pdf_document *doc, float f); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7518:40: error: too few arguments to function ‘pdf_new_real’ BUILDSTDERR: pdf_dict_putl_drop(ctx, annot_obj, pdf_new_real(ctx, nwidth), BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:21:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_real(fz_context *ctx, pdf_document *doc, float f); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7519:55: error: ‘W’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(BS), PDF_NAME(W), NULL); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7518:40: warning: passing argument 3 of ‘pdf_dict_putl_drop’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: pdf_dict_putl_drop(ctx, annot_obj, pdf_new_real(ctx, nwidth), BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:128:66: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: void pdf_dict_putl_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *val, ...); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:7524:55: error: ‘S’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(BS), PDF_NAME(S), NULL); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_annot_colors’: BUILDSTDERR: fitz/fitz_wrap.c:7538:56: error: ‘C’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *o = pdf_dict_get(ctx, annot_obj, PDF_NAME(C)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7538:47: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *o = pdf_dict_get(ctx, annot_obj, PDF_NAME(C)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_char_bbox’: BUILDSTDERR: fitz/fitz_wrap.c:7627:17: warning: implicit declaration of function ‘fz_rect_from_quad’; did you mean ‘fz_rect_from_irect’? [-Wimplicit-function-declaration] BUILDSTDERR: fz_rect r = fz_rect_from_quad(ch->quad); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fz_rect_from_irect BUILDSTDERR: fitz/fitz_wrap.c:7627:37: error: ‘fz_stext_char’ {aka ‘struct fz_stext_char_s’} has no member named ‘quad’ BUILDSTDERR: fz_rect r = fz_rect_from_quad(ch->quad); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:7627:17: error: invalid initializer BUILDSTDERR: fz_rect r = fz_rect_from_quad(ch->quad); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7628:27: error: incompatible type for argument 1 of ‘fz_is_empty_rect’ BUILDSTDERR: if (!fz_is_empty_rect(r)) return r; BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:230:33: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_is_empty_rect(const fz_rect *r) BUILDSTDERR: ~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_extract_stext_textblock_as_dict’: BUILDSTDERR: fitz/fitz_wrap.c:7729:38: error: incompatible type for argument 1 of ‘fz_union_rect’ BUILDSTDERR: linerect = fz_union_rect(linerect, ch_bbox); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:510:10: note: expected ‘fz_rect * restrict’ {aka ‘struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_union_rect(fz_rect *restrict a, const fz_rect *restrict b); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7729:48: error: incompatible type for argument 2 of ‘fz_union_rect’ BUILDSTDERR: linerect = fz_union_rect(linerect, ch_bbox); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:510:10: note: expected ‘const fz_rect * restrict’ {aka ‘const struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_union_rect(fz_rect *restrict a, const fz_rect *restrict b); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7729:22: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: linerect = fz_union_rect(linerect, ch_bbox); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7729:13: warning: statement with no effect [-Wunused-value] BUILDSTDERR: linerect = fz_union_rect(linerect, ch_bbox); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7791:35: error: incompatible type for argument 1 of ‘fz_union_rect’ BUILDSTDERR: blockrect = fz_union_rect(blockrect, linerect); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:510:10: note: expected ‘fz_rect * restrict’ {aka ‘struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_union_rect(fz_rect *restrict a, const fz_rect *restrict b); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7791:46: error: incompatible type for argument 2 of ‘fz_union_rect’ BUILDSTDERR: blockrect = fz_union_rect(blockrect, linerect); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:510:10: note: expected ‘const fz_rect * restrict’ {aka ‘const struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_union_rect(fz_rect *restrict a, const fz_rect *restrict b); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7791:19: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: blockrect = fz_union_rect(blockrect, linerect); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7791:9: warning: statement with no effect [-Wunused-value] BUILDSTDERR: blockrect = fz_union_rect(blockrect, linerect); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_extract_stext_imageblock_as_dict’: BUILDSTDERR: fitz/fitz_wrap.c:7843:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_BMP): strcpy(ext, "bmp"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7844:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_GIF): strcpy(ext, "gif"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7845:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JPEG): strcpy(ext, "jpeg"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7846:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JPX): strcpy(ext, "jpx"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7847:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JXR): strcpy(ext, "jxr"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7848:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_PNM): strcpy(ext, "pnm"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7849:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_TIFF): strcpy(ext, "tiff"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7850:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: default: strcpy(ext, "png"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7856:20: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(ext, "png"); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7866:64: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign] BUILDSTDERR: PyDict_SetItemString(dict, "ext", PyString_FromString(ext)); BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c:751:53: note: in definition of macro ‘PyString_FromString’ BUILDSTDERR: #define PyString_FromString(x) PyUnicode_FromString(x) BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/python3.7m/Python.h:80, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/python3.7m/unicodeobject.h:702:23: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ BUILDSTDERR: PyAPI_FUNC(PyObject*) PyUnicode_FromString( BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_checkbox_state’: BUILDSTDERR: fitz/fitz_wrap.c:7913:23: warning: implicit declaration of function ‘pdf_dict_get_inheritable’; did you mean ‘pdf_get_inheritable’? [-Wimplicit-function-declaration] BUILDSTDERR: pdf_obj *leafv = pdf_dict_get_inheritable(ctx, annot->obj, PDF_NAME(V)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: pdf_get_inheritable BUILDSTDERR: fitz/fitz_wrap.c:7913:74: error: ‘V’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *leafv = pdf_dict_get_inheritable(ctx, annot->obj, PDF_NAME(V)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7913:23: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *leafv = pdf_dict_get_inheritable(ctx, annot->obj, PDF_NAME(V)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7914:74: error: ‘AS’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *leafas = pdf_dict_get_inheritable(ctx, annot->obj, PDF_NAME(AS)); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:7914:23: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *leafas = pdf_dict_get_inheritable(ctx, annot->obj, PDF_NAME(AS)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7916:28: error: ‘Off’ undeclared (first use in this function); did you mean ‘erff’? BUILDSTDERR: if (leafv == PDF_NAME(Off)) Py_RETURN_FALSE; BUILDSTDERR: ^~~ BUILDSTDERR: erff BUILDSTDERR: fitz/fitz_wrap.c:7916:16: warning: comparison between pointer and integer BUILDSTDERR: if (leafv == PDF_NAME(Off)) Py_RETURN_FALSE; BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:7917:36: warning: passing argument 2 of ‘pdf_new_name’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: if (leafv == pdf_new_name(ctx, "Yes")) BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:22:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘char *’ BUILDSTDERR: pdf_obj *pdf_new_name(fz_context *ctx, pdf_document *doc, const char *str); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7917:18: error: too few arguments to function ‘pdf_new_name’ BUILDSTDERR: if (leafv == pdf_new_name(ctx, "Yes")) BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:22:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_name(fz_context *ctx, pdf_document *doc, const char *str); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7917:15: warning: comparison of distinct pointer types lacks a cast BUILDSTDERR: if (leafv == pdf_new_name(ctx, "Yes")) BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:7923:26: warning: comparison between pointer and integer BUILDSTDERR: if (leafas && leafas == PDF_NAME(Off)) Py_RETURN_FALSE; BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_listbox_value’: BUILDSTDERR: fitz/fitz_wrap.c:7953:62: error: ‘V’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *optarr = pdf_dict_get(ctx, annot->obj, PDF_NAME(V)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7953:53: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *optarr = pdf_dict_get(ctx, annot->obj, PDF_NAME(V)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7955:36: warning: implicit declaration of function ‘pdf_to_text_string’; did you mean ‘pdf_new_text_string’? [-Wimplicit-function-declaration] BUILDSTDERR: return PyString_FromString(pdf_to_text_string(ctx, optarr)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:751:53: note: in definition of macro ‘PyString_FromString’ BUILDSTDERR: #define PyString_FromString(x) PyUnicode_FromString(x) BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7955:36: warning: passing argument 1 of ‘PyUnicode_FromString’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: return PyString_FromString(pdf_to_text_string(ctx, optarr)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:751:53: note: in definition of macro ‘PyString_FromString’ BUILDSTDERR: #define PyString_FromString(x) PyUnicode_FromString(x) BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/python3.7m/Python.h:80, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/python3.7m/unicodeobject.h:702:23: note: expected ‘const char *’ but argument is of type ‘int’ BUILDSTDERR: PyAPI_FUNC(PyObject*) PyUnicode_FromString( BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7968:50: warning: passing argument 1 of ‘PyUnicode_FromString’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PyList_Append(liste, PyString_FromString(pdf_to_text_string(ctx, elem))); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:751:53: note: in definition of macro ‘PyString_FromString’ BUILDSTDERR: #define PyString_FromString(x) PyUnicode_FromString(x) BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/python3.7m/Python.h:80, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/python3.7m/unicodeobject.h:702:23: note: expected ‘const char *’ but argument is of type ‘int’ BUILDSTDERR: PyAPI_FUNC(PyObject*) PyUnicode_FromString( BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_choice_options’: BUILDSTDERR: fitz/fitz_wrap.c:7994:62: error: ‘Opt’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *optarr = pdf_dict_get(ctx, annot->obj, PDF_NAME(Opt)); BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c:7994:53: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *optarr = pdf_dict_get(ctx, annot->obj, PDF_NAME(Opt)); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8009:54: warning: passing argument 1 of ‘PyUnicode_FromString’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PyList_Append(liste, PyString_FromString(pdf_to_text_string(ctx, pdf_array_get(ctx, optarr, i)))); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:751:53: note: in definition of macro ‘PyString_FromString’ BUILDSTDERR: #define PyString_FromString(x) PyUnicode_FromString(x) BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/python3.7m/Python.h:80, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/python3.7m/unicodeobject.h:702:23: note: expected ‘const char *’ but argument is of type ‘int’ BUILDSTDERR: PyAPI_FUNC(PyObject*) PyUnicode_FromString( BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_set_choice_options’: BUILDSTDERR: fitz/fitz_wrap.c:8030:44: error: ‘Opt’ undeclared (first use in this function); did you mean ‘opt’? BUILDSTDERR: pdf_dict_put(ctx, annot->obj, PDF_NAME(Opt), optarr); BUILDSTDERR: ^~~ BUILDSTDERR: opt BUILDSTDERR: fitz/fitz_wrap.c:8030:35: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, annot->obj, PDF_NAME(Opt), optarr); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_set_widget_properties’: BUILDSTDERR: fitz/fitz_wrap.c:8054:37: error: ‘Root’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(Root), PDF_NAME(AcroForm), PDF_NAME(DR), NULL); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:8054:53: error: ‘AcroForm’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(Root), PDF_NAME(AcroForm), PDF_NAME(DR), NULL); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8054:73: error: ‘DR’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(Root), PDF_NAME(AcroForm), PDF_NAME(DR), NULL); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:8064:40: error: ‘Font’ undeclared (first use in this function); did you mean ‘uInt’? BUILDSTDERR: pdf_dict_put(ctx, dr, PDF_NAME(Font), f); BUILDSTDERR: ^~~~ BUILDSTDERR: uInt BUILDSTDERR: fitz/fitz_wrap.c:8064:31: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, dr, PDF_NAME(Font), f); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8065:38: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, form, PDF_NAME(DR), dr); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8073:36: error: incompatible type for argument 3 of ‘pdf_set_annot_rect’ BUILDSTDERR: pdf_set_annot_rect(ctx, annot, rect); // set the rect BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:23, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/annot.h:178:75: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: void pdf_set_annot_rect(fz_context *ctx, pdf_annot *annot, const fz_rect *rect); BUILDSTDERR: ~~~~~~~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:8073:5: warning: statement with no effect [-Wunused-value] BUILDSTDERR: pdf_set_annot_rect(ctx, annot, rect); // set the rect BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8099:62: error: ‘BS’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_putl_drop(ctx, annot->obj, dashes, PDF_NAME(BS), BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:8100:72: error: ‘D’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(D), NULL); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8114:66: error: ‘MK’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_putl_drop(ctx, annot->obj, border_col, PDF_NAME(MK), BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:8115:71: error: ‘BC’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(BC), NULL); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:8133:56: error: ‘MaxLen’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_int(ctx, annot->obj, PDF_NAME(MaxLen), text_maxlen); BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8133:47: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(ctx, annot->obj, PDF_NAME(MaxLen), text_maxlen); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8150:69: error: ‘S’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_putl_drop(ctx, annot->obj, val, PDF_NAME(BS), PDF_NAME(S), NULL); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8155:59: error: incompatible type for argument 2 of ‘pdf_new_real’ BUILDSTDERR: pdf_dict_putl_drop(ctx, annot->obj, pdf_new_real(ctx, border_width), BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:21:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘float’ BUILDSTDERR: pdf_obj *pdf_new_real(fz_context *ctx, pdf_document *doc, float f); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8155:41: error: too few arguments to function ‘pdf_new_real’ BUILDSTDERR: pdf_dict_putl_drop(ctx, annot->obj, pdf_new_real(ctx, border_width), BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:21:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_real(fz_context *ctx, pdf_document *doc, float f); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8156:47: error: ‘W’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(BS), PDF_NAME(W), NULL); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8155:41: warning: passing argument 3 of ‘pdf_dict_putl_drop’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: pdf_dict_putl_drop(ctx, annot->obj, pdf_new_real(ctx, border_width), BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:128:66: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: void pdf_dict_putl_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *val, ...); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8163:60: error: ‘DA’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_text_string(ctx, annot->obj, PDF_NAME(DA), da); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:8163:51: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(ctx, annot->obj, PDF_NAME(DA), da); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8183:39: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(ctx, annot->obj, PDF_NAME(Ff), Ff); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8194:69: warning: passing argument 2 of ‘pdf_new_text_string’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: pdf_dict_putl(ctx, annot->obj, pdf_new_text_string(ctx, ca), BUILDSTDERR: ^~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:24:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘char *’ BUILDSTDERR: pdf_obj *pdf_new_text_string(fz_context *ctx, pdf_document *doc, const char *s); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8194:44: error: too few arguments to function ‘pdf_new_text_string’ BUILDSTDERR: pdf_dict_putl(ctx, annot->obj, pdf_new_text_string(ctx, ca), BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:24:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_text_string(fz_context *ctx, pdf_document *doc, const char *s); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8195:50: error: ‘CA’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(MK), PDF_NAME(CA), NULL); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:8194:44: warning: passing argument 3 of ‘pdf_dict_putl’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: pdf_dict_putl(ctx, annot->obj, pdf_new_text_string(ctx, ca), BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:127:61: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: void pdf_dict_putl(fz_context *ctx, pdf_obj *dict, pdf_obj *val, ...); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8215:57: error: ‘V’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_name(ctx, annot->obj, PDF_NAME(V), "Yes"); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8215:48: warning: passing argument 3 of ‘pdf_dict_put_name’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_name(ctx, annot->obj, PDF_NAME(V), "Yes"); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:136:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_name(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8220:65: error: ‘Off’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(ctx, annot->obj, PDF_NAME(V), PDF_NAME(Off)); BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c:8220:43: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, annot->obj, PDF_NAME(V), PDF_NAME(Off)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8220:56: warning: passing argument 4 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, annot->obj, PDF_NAME(V), PDF_NAME(Off)); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:74: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8206:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable] BUILDSTDERR: int result = 0; BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8047:32: warning: unused variable ‘text_col’ [-Wunused-variable] BUILDSTDERR: pdf_obj *fill_col = NULL, *text_col = NULL, *border_col = NULL; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_find_embedded’: BUILDSTDERR: fitz/fitz_wrap.c:8273:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: tname = (char *) pdf_to_text_string(ctx, pdf_portfolio_entry_name(ctx, pdf, i)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_embedded_names’: BUILDSTDERR: fitz/fitz_wrap.c:8291:64: error: ‘Root’ undeclared (first use in this function) BUILDSTDERR: names = pdf_dict_getl(ctx, pdf_trailer(ctx, pdf), PDF_NAME(Root), PDF_NAME(Names), PDF_NAME(EmbeddedFiles), BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:8291:120: error: ‘Names’ undeclared (first use in this function); did you mean ‘names’? BUILDSTDERR: names = pdf_dict_getl(ctx, pdf_trailer(ctx, pdf), PDF_NAME(Root), PDF_NAME(Names), PDF_NAME(EmbeddedFiles), BUILDSTDERR: ^~~~~ BUILDSTDERR: names BUILDSTDERR: fitz/fitz_wrap.c:8291:137: error: ‘EmbeddedFiles’ undeclared (first use in this function); did you mean ‘JM_embedded_names’? BUILDSTDERR: names = pdf_dict_getl(ctx, pdf_trailer(ctx, pdf), PDF_NAME(Root), PDF_NAME(Names), PDF_NAME(EmbeddedFiles), BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: JM_embedded_names BUILDSTDERR: fitz/fitz_wrap.c:8298:34: error: ‘Kids’ undeclared (first use in this function); did you mean ‘kids’? BUILDSTDERR: PDF_NAME(Kids), NULL); BUILDSTDERR: ^~~~ BUILDSTDERR: kids BUILDSTDERR: fitz/fitz_wrap.c:8310:38: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: names = pdf_dict_get(ctx, o, PDF_NAME(Names)); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_embedded_clean’: BUILDSTDERR: fitz/fitz_wrap.c:8324:71: error: ‘Root’ undeclared (first use in this function); did you mean ‘root’? BUILDSTDERR: pdf_obj *root = pdf_dict_get(ctx, pdf_trailer(ctx, pdf), PDF_NAME(Root)); BUILDSTDERR: ^~~~ BUILDSTDERR: root BUILDSTDERR: fitz/fitz_wrap.c:8324:62: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *root = pdf_dict_get(ctx, pdf_trailer(ctx, pdf), PDF_NAME(Root)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8327:54: error: ‘Collection’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *coll = pdf_dict_get(ctx, root, PDF_NAME(Collection)); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8327:45: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *coll = pdf_dict_get(ctx, root, PDF_NAME(Collection)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8329:33: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, root, PDF_NAME(Collection)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8334:57: error: ‘Names’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *efiles = pdf_dict_getl(ctx, root, PDF_NAME(Names), BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8335:46: error: ‘EmbeddedFiles’ undeclared (first use in this function); did you mean ‘JM_embedded_clean’? BUILDSTDERR: PDF_NAME(EmbeddedFiles), NULL); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: JM_embedded_clean BUILDSTDERR: fitz/fitz_wrap.c:8338:47: error: ‘PageMode’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_name(ctx, root, PDF_NAME(PageMode), "UseAttachments"); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8338:38: warning: passing argument 3 of ‘pdf_dict_put_name’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_name(ctx, root, PDF_NAME(PageMode), "UseAttachments"); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:136:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_name(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8340:44: error: ‘Limits’ undeclared (first use in this function); did you mean ‘digit’? BUILDSTDERR: pdf_dict_del(ctx, efiles, PDF_NAME(Limits)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: digit BUILDSTDERR: fitz/fitz_wrap.c:8340:35: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, efiles, PDF_NAME(Limits)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_embed_file’: BUILDSTDERR: fitz/fitz_wrap.c:8361:46: error: ‘CI’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_dict(ctx, val, PDF_NAME(CI), 4); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:8361:37: warning: passing argument 3 of ‘pdf_dict_put_dict’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_dict(ctx, val, PDF_NAME(CI), 4); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:142:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_put_dict(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int initial); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8362:51: error: ‘EF’ undeclared (first use in this function); did you mean ‘EOF’? BUILDSTDERR: ef = pdf_dict_put_dict(ctx, val, PDF_NAME(EF), 4); BUILDSTDERR: ^~ BUILDSTDERR: EOF BUILDSTDERR: fitz/fitz_wrap.c:8362:42: warning: passing argument 3 of ‘pdf_dict_put_dict’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: ef = pdf_dict_put_dict(ctx, val, PDF_NAME(EF), 4); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:142:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_put_dict(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int initial); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8363:53: error: ‘F’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_text_string(ctx, val, PDF_NAME(F), filename); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8363:44: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(ctx, val, PDF_NAME(F), filename); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8364:53: error: ‘UF’ undeclared (first use in this function); did you mean ‘OF’? BUILDSTDERR: pdf_dict_put_text_string(ctx, val, PDF_NAME(UF), filename); BUILDSTDERR: ^~ BUILDSTDERR: OF BUILDSTDERR: fitz/fitz_wrap.c:8364:44: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(ctx, val, PDF_NAME(UF), filename); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8365:53: error: ‘Desc’ undeclared (first use in this function); did you mean ‘desc’? BUILDSTDERR: pdf_dict_put_text_string(ctx, val, PDF_NAME(Desc), desc); BUILDSTDERR: ^~~~ BUILDSTDERR: desc BUILDSTDERR: fitz/fitz_wrap.c:8365:44: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(ctx, val, PDF_NAME(Desc), desc); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8366:41: error: ‘Type’ undeclared (first use in this function); did you mean ‘Byte’? BUILDSTDERR: pdf_dict_put(ctx, val, PDF_NAME(Type), PDF_NAME(Filespec)); BUILDSTDERR: ^~~~ BUILDSTDERR: Byte BUILDSTDERR: fitz/fitz_wrap.c:8366:57: error: ‘Filespec’ undeclared (first use in this function); did you mean ‘timespec’? BUILDSTDERR: pdf_dict_put(ctx, val, PDF_NAME(Type), PDF_NAME(Filespec)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: timespec BUILDSTDERR: fitz/fitz_wrap.c:8366:32: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, val, PDF_NAME(Type), PDF_NAME(Filespec)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8366:48: warning: passing argument 4 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, val, PDF_NAME(Type), PDF_NAME(Filespec)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:74: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8370:36: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, ef, PDF_NAME(F), BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8375:43: error: ‘DL’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_int(ctx, f, PDF_NAME(DL), len); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:8375:34: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(ctx, f, PDF_NAME(DL), len); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8376:43: error: ‘Length’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_int(ctx, f, PDF_NAME(Length), len); BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8376:34: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(ctx, f, PDF_NAME(Length), len); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8377:53: error: ‘Params’ undeclared (first use in this function); did you mean ‘params’? BUILDSTDERR: params = pdf_dict_put_dict(ctx, f, PDF_NAME(Params), 4); BUILDSTDERR: ^~~~~~ BUILDSTDERR: params BUILDSTDERR: fitz/fitz_wrap.c:8377:44: warning: passing argument 3 of ‘pdf_dict_put_dict’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: params = pdf_dict_put_dict(ctx, f, PDF_NAME(Params), 4); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:142:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_put_dict(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int initial); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8378:48: error: ‘Size’ undeclared (first use in this function); did you mean ‘time’? BUILDSTDERR: pdf_dict_put_int(ctx, params, PDF_NAME(Size), len); BUILDSTDERR: ^~~~ BUILDSTDERR: time BUILDSTDERR: fitz/fitz_wrap.c:8378:39: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(ctx, params, PDF_NAME(Size), len); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘retainpage’: BUILDSTDERR: fitz/fitz_wrap.c:8423:41: error: ‘Parent’ undeclared (first use in this function); did you mean ‘parent’? BUILDSTDERR: pdf_dict_put(ctx, pageref, PDF_NAME(Parent), parent); BUILDSTDERR: ^~~~~~ BUILDSTDERR: parent BUILDSTDERR: fitz/fitz_wrap.c:8423:32: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, pageref, PDF_NAME(Parent), parent); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘dest_is_valid’: BUILDSTDERR: fitz/fitz_wrap.c:8448:39: error: ‘A’ undeclared (first use in this function) BUILDSTDERR: p = pdf_dict_get(ctx, o, PDF_NAME(A)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8448:30: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: p = pdf_dict_get(ctx, o, PDF_NAME(A)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8449:56: error: ‘S’ undeclared (first use in this function) BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, p, PDF_NAME(S)), PDF_NAME(GoTo)) && BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8449:47: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, p, PDF_NAME(S)), PDF_NAME(GoTo)) && BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8449:70: error: ‘GoTo’ undeclared (first use in this function) BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, p, PDF_NAME(S)), PDF_NAME(GoTo)) && BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:8449:61: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, pdf_dict_get(ctx, p, PDF_NAME(S)), PDF_NAME(GoTo)) && BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:8450:66: error: ‘D’ undeclared (first use in this function) BUILDSTDERR: !string_in_names_list(ctx, pdf_dict_get(ctx, p, PDF_NAME(D)), names_list)) BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8450:57: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: !string_in_names_list(ctx, pdf_dict_get(ctx, p, PDF_NAME(D)), names_list)) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8453:39: error: ‘Dest’ undeclared (first use in this function) BUILDSTDERR: p = pdf_dict_get(ctx, o, PDF_NAME(Dest)); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:8453:30: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: p = pdf_dict_get(ctx, o, PDF_NAME(Dest)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘strip_outline’: BUILDSTDERR: fitz/fitz_wrap.c:8493:69: error: ‘Next’ undeclared (first use in this function); did you mean ‘next’? BUILDSTDERR: pdf_obj *next = pdf_dict_get(ctx, current, PDF_NAME(Next)); BUILDSTDERR: ^~~~ BUILDSTDERR: next BUILDSTDERR: fitz/fitz_wrap.c:8493:60: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *next = pdf_dict_get(ctx, current, PDF_NAME(Next)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8498:49: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, prev, PDF_NAME(Next)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8502:45: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, prev, PDF_NAME(Next), next); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8503:54: error: ‘Prev’ undeclared (first use in this function); did you mean ‘prev’? BUILDSTDERR: pdf_dict_put(ctx, next, PDF_NAME(Prev), prev); BUILDSTDERR: ^~~~ BUILDSTDERR: prev BUILDSTDERR: fitz/fitz_wrap.c:8503:45: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, next, PDF_NAME(Prev), prev); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8507:45: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, next, PDF_NAME(Prev)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8514:53: error: ‘Dest’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_del(ctx, current, PDF_NAME(Dest)); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:8514:44: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, current, PDF_NAME(Dest)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8515:53: error: ‘A’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_del(ctx, current, PDF_NAME(A)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8515:44: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, current, PDF_NAME(A)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8516:54: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: current = pdf_dict_get(ctx, current, PDF_NAME(Next)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8525:50: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: current = pdf_dict_get(ctx, current, PDF_NAME(Next)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘strip_outlines’: BUILDSTDERR: fitz/fitz_wrap.c:8545:50: error: ‘First’ undeclared (first use in this function); did you mean ‘first’? BUILDSTDERR: first = pdf_dict_get(ctx, outlines, PDF_NAME(First)); BUILDSTDERR: ^~~~~ BUILDSTDERR: first BUILDSTDERR: fitz/fitz_wrap.c:8545:41: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: first = pdf_dict_get(ctx, outlines, PDF_NAME(First)); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8554:37: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, outlines, PDF_NAME(First)); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8555:46: error: ‘Last’ undeclared (first use in this function); did you mean ‘last’? BUILDSTDERR: pdf_dict_del(ctx, outlines, PDF_NAME(Last)); BUILDSTDERR: ^~~~ BUILDSTDERR: last BUILDSTDERR: fitz/fitz_wrap.c:8555:37: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, outlines, PDF_NAME(Last)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8556:46: error: ‘Count’ undeclared (first use in this function); did you mean ‘round’? BUILDSTDERR: pdf_dict_del(ctx, outlines, PDF_NAME(Count)); BUILDSTDERR: ^~~~~ BUILDSTDERR: round BUILDSTDERR: fitz/fitz_wrap.c:8556:37: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, outlines, PDF_NAME(Count)); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8560:69: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: int old_count = pdf_to_int(ctx, pdf_dict_get(ctx, outlines, PDF_NAME(Count))); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8561:37: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, outlines, PDF_NAME(First), first); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8562:37: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, outlines, PDF_NAME(Last), last); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8563:95: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, outlines, PDF_NAME(Count), pdf_new_int(ctx, old_count > 0 ? nc : -nc)); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~^~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8563:59: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: pdf_dict_put_drop(ctx, outlines, PDF_NAME(Count), pdf_new_int(ctx, old_count > 0 ? nc : -nc)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8563:42: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, outlines, PDF_NAME(Count), pdf_new_int(ctx, old_count > 0 ? nc : -nc)); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8563:59: warning: passing argument 4 of ‘pdf_dict_put_drop’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: pdf_dict_put_drop(ctx, outlines, PDF_NAME(Count), pdf_new_int(ctx, old_count > 0 ? nc : -nc)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:79: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘retainpages’: BUILDSTDERR: fitz/fitz_wrap.c:8589:65: error: ‘Root’ undeclared (first use in this function); did you mean ‘root’? BUILDSTDERR: oldroot = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(Root)); BUILDSTDERR: ^~~~ BUILDSTDERR: root BUILDSTDERR: fitz/fitz_wrap.c:8589:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: oldroot = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME(Root)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8590:49: error: ‘Pages’ undeclared (first use in this function); did you mean ‘pages’? BUILDSTDERR: pages = pdf_dict_get(ctx, oldroot, PDF_NAME(Pages)); BUILDSTDERR: ^~~~~ BUILDSTDERR: pages BUILDSTDERR: fitz/fitz_wrap.c:8590:40: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pages = pdf_dict_get(ctx, oldroot, PDF_NAME(Pages)); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8591:54: error: ‘Dests’ undeclared (first use in this function) BUILDSTDERR: olddests = pdf_load_name_tree(ctx, doc, PDF_NAME(Dests)); BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8591:45: warning: passing argument 3 of ‘pdf_load_name_tree’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: olddests = pdf_load_name_tree(ctx, doc, PDF_NAME(Dests)); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:23, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/annot.h:130:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_load_name_tree(fz_context *ctx, pdf_document *doc, pdf_obj *which); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8592:52: error: ‘Outlines’ undeclared (first use in this function); did you mean ‘outlines’? BUILDSTDERR: outlines = pdf_dict_get(ctx, oldroot, PDF_NAME(Outlines)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: outlines BUILDSTDERR: fitz/fitz_wrap.c:8592:43: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: outlines = pdf_dict_get(ctx, oldroot, PDF_NAME(Outlines)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8593:56: error: ‘OCProperties’ undeclared (first use in this function); did you mean ‘ocproperties’? BUILDSTDERR: ocproperties = pdf_dict_get(ctx, oldroot, PDF_NAME(OCProperties)); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: ocproperties BUILDSTDERR: fitz/fitz_wrap.c:8593:47: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: ocproperties = pdf_dict_get(ctx, oldroot, PDF_NAME(OCProperties)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8596:38: error: ‘Type’ undeclared (first use in this function); did you mean ‘Byte’? BUILDSTDERR: pdf_dict_put(ctx, root, PDF_NAME(Type), pdf_dict_get(ctx, oldroot, PDF_NAME(Type))); BUILDSTDERR: ^~~~ BUILDSTDERR: Byte BUILDSTDERR: fitz/fitz_wrap.c:8596:72: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, root, PDF_NAME(Type), pdf_dict_get(ctx, oldroot, PDF_NAME(Type))); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8596:29: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, root, PDF_NAME(Type), pdf_dict_get(ctx, oldroot, PDF_NAME(Type))); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8597:73: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, root, PDF_NAME(Pages), pdf_dict_get(ctx, oldroot, PDF_NAME(Pages))); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8597:29: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, root, PDF_NAME(Pages), pdf_dict_get(ctx, oldroot, PDF_NAME(Pages))); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8599:33: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, root, PDF_NAME(Outlines), outlines); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8601:33: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, root, PDF_NAME(OCProperties), ocproperties); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8623:33: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: countobj = pdf_new_int(ctx, pdf_array_len(ctx, kids)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8623:16: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: countobj = pdf_new_int(ctx, pdf_array_len(ctx, kids)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8623:14: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: countobj = pdf_new_int(ctx, pdf_array_len(ctx, kids)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8624:44: error: ‘Count’ undeclared (first use in this function); did you mean ‘round’? BUILDSTDERR: pdf_dict_put_drop(ctx, pages, PDF_NAME(Count), countobj); BUILDSTDERR: ^~~~~ BUILDSTDERR: round BUILDSTDERR: fitz/fitz_wrap.c:8624:35: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, pages, PDF_NAME(Count), countobj); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8625:44: error: ‘Kids’ undeclared (first use in this function); did you mean ‘kids’? BUILDSTDERR: pdf_dict_put_drop(ctx, pages, PDF_NAME(Kids), kids); BUILDSTDERR: ^~~~ BUILDSTDERR: kids BUILDSTDERR: fitz/fitz_wrap.c:8625:35: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, pages, PDF_NAME(Kids), kids); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8652:61: error: ‘D’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *dest = pdf_dict_get(ctx, val, PDF_NAME(D)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8652:52: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *dest = pdf_dict_get(ctx, val, PDF_NAME(D)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8657:56: warning: passing argument 2 of ‘pdf_new_string’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: pdf_obj *key_str = pdf_new_string(ctx, pdf_to_name(ctx, key), strlen(pdf_to_name(ctx, key))); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:23:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘const char *’ BUILDSTDERR: pdf_obj *pdf_new_string(fz_context *ctx, pdf_document *doc, const char *str, size_t len); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8657:79: warning: passing argument 3 of ‘pdf_new_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *key_str = pdf_new_string(ctx, pdf_to_name(ctx, key), strlen(pdf_to_name(ctx, key))); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:23:10: note: expected ‘const char *’ but argument is of type ‘size_t’ {aka ‘long unsigned int’} BUILDSTDERR: pdf_obj *pdf_new_string(fz_context *ctx, pdf_document *doc, const char *str, size_t len); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8657:36: error: too few arguments to function ‘pdf_new_string’ BUILDSTDERR: pdf_obj *key_str = pdf_new_string(ctx, pdf_to_name(ctx, key), strlen(pdf_to_name(ctx, key))); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:23:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_string(fz_context *ctx, pdf_document *doc, const char *str, size_t len); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8657:36: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: pdf_obj *key_str = pdf_new_string(ctx, pdf_to_name(ctx, key), strlen(pdf_to_name(ctx, key))); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8663:43: error: ‘Names’ undeclared (first use in this function); did you mean ‘names’? BUILDSTDERR: pdf_dict_put(ctx, dests, PDF_NAME(Names), names_list); BUILDSTDERR: ^~~~~ BUILDSTDERR: names BUILDSTDERR: fitz/fitz_wrap.c:8663:34: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, dests, PDF_NAME(Names), names_list); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8664:34: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, names, PDF_NAME(Dests), dests); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8665:33: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(ctx, root, PDF_NAME(Names), names); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:8679:63: error: ‘Annots’ undeclared (first use in this function); did you mean ‘annots’? BUILDSTDERR: pdf_obj *annots = pdf_dict_get(ctx, pageref, PDF_NAME(Annots)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: annots BUILDSTDERR: fitz/fitz_wrap.c:8679:54: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *annots = pdf_dict_get(ctx, pageref, PDF_NAME(Annots)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8688:65: error: ‘Subtype’ undeclared (first use in this function); did you mean ‘isctype’? BUILDSTDERR: if (!pdf_name_eq(ctx, pdf_dict_get(ctx, o, PDF_NAME(Subtype)), PDF_NAME(Link))) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: isctype BUILDSTDERR: fitz/fitz_wrap.c:8688:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (!pdf_name_eq(ctx, pdf_dict_get(ctx, o, PDF_NAME(Subtype)), PDF_NAME(Link))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8688:85: error: ‘Link’ undeclared (first use in this function); did you mean ‘link’? BUILDSTDERR: if (!pdf_name_eq(ctx, pdf_dict_get(ctx, o, PDF_NAME(Subtype)), PDF_NAME(Link))) BUILDSTDERR: ^~~~ BUILDSTDERR: link BUILDSTDERR: fitz/fitz_wrap.c:8688:76: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (!pdf_name_eq(ctx, pdf_dict_get(ctx, o, PDF_NAME(Subtype)), PDF_NAME(Link))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:8703:33: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(ctx, root, PDF_NAME(Outlines)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_xobject_from_page’: BUILDSTDERR: fitz/fitz_wrap.c:8726:60: error: ‘MediaBox’ undeclared (first use in this function); did you mean ‘mediabox’? BUILDSTDERR: pdf_obj *mb = pdf_dict_get(ctx, spageref, PDF_NAME(MediaBox)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: mediabox BUILDSTDERR: fitz/fitz_wrap.c:8726:51: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *mb = pdf_dict_get(ctx, spageref, PDF_NAME(MediaBox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8728:25: error: too few arguments to function ‘pdf_to_rect’ BUILDSTDERR: *mediabox = pdf_to_rect(ctx, mb); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:180:10: note: declared here BUILDSTDERR: fz_rect *pdf_to_rect(fz_context *ctx, pdf_obj *array, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8728:23: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: *mediabox = pdf_to_rect(ctx, mb); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8728:13: warning: statement with no effect [-Wunused-value] BUILDSTDERR: *mediabox = pdf_to_rect(ctx, mb); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8730:25: error: too few arguments to function ‘pdf_bound_page’ BUILDSTDERR: *mediabox = pdf_bound_page(ctx, pdf_load_page(ctx, pdfsrc, pno)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:17, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/page.h:61:10: note: declared here BUILDSTDERR: fz_rect *pdf_bound_page(fz_context *ctx, pdf_page *page, fz_rect *); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8730:23: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: *mediabox = pdf_bound_page(ctx, pdf_load_page(ctx, pdfsrc, pno)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8730:13: warning: statement with no effect [-Wunused-value] BUILDSTDERR: *mediabox = pdf_bound_page(ctx, pdf_load_page(ctx, pdfsrc, pno)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8731:50: error: ‘CropBox’ undeclared (first use in this function); did you mean ‘cropbox’? BUILDSTDERR: o = pdf_dict_get(ctx, spageref, PDF_NAME(CropBox)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: cropbox BUILDSTDERR: fitz/fitz_wrap.c:8731:41: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(ctx, spageref, PDF_NAME(CropBox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8740:24: error: too few arguments to function ‘pdf_to_rect’ BUILDSTDERR: *cropbox = pdf_to_rect(ctx, o); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:180:10: note: declared here BUILDSTDERR: fz_rect *pdf_to_rect(fz_context *ctx, pdf_obj *array, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8740:22: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: *cropbox = pdf_to_rect(ctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8740:13: warning: statement with no effect [-Wunused-value] BUILDSTDERR: *cropbox = pdf_to_rect(ctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8751:54: error: ‘Resources’ undeclared (first use in this function); did you mean ‘resources’? BUILDSTDERR: o = pdf_dict_get(ctx, spageref, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: resources BUILDSTDERR: fitz/fitz_wrap.c:8751:45: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(ctx, spageref, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8758:61: error: ‘Contents’ undeclared (first use in this function); did you mean ‘contents’? BUILDSTDERR: contents = pdf_dict_get(ctx, spageref, PDF_NAME(Contents)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: contents BUILDSTDERR: fitz/fitz_wrap.c:8758:52: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: contents = pdf_dict_get(ctx, spageref, PDF_NAME(Contents)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8777:50: error: incompatible type for argument 3 of ‘pdf_new_xobject’ BUILDSTDERR: xobj1 = pdf_new_xobject(ctx, pdfout, *mediabox, fz_identity, NULL, res); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf/interpret.h:5, BUILDSTDERR: from /usr/include/mupdf/pdf/page.h:4, BUILDSTDERR: from /usr/include/mupdf/pdf.h:17, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/resource.h:82:10: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: pdf_obj *pdf_new_xobject(fz_context *ctx, pdf_document *doc, const fz_rect *bbox, const fz_matrix *mat); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8777:61: error: incompatible type for argument 4 of ‘pdf_new_xobject’ BUILDSTDERR: xobj1 = pdf_new_xobject(ctx, pdfout, *mediabox, fz_identity, NULL, res); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf/interpret.h:5, BUILDSTDERR: from /usr/include/mupdf/pdf/page.h:4, BUILDSTDERR: from /usr/include/mupdf/pdf.h:17, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/resource.h:82:10: note: expected ‘const fz_matrix *’ {aka ‘const struct fz_matrix_s *’} but argument is of type ‘fz_matrix’ {aka ‘const struct fz_matrix_s’} BUILDSTDERR: pdf_obj *pdf_new_xobject(fz_context *ctx, pdf_document *doc, const fz_rect *bbox, const fz_matrix *mat); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8777:21: error: too many arguments to function ‘pdf_new_xobject’ BUILDSTDERR: xobj1 = pdf_new_xobject(ctx, pdfout, *mediabox, fz_identity, NULL, res); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf/interpret.h:5, BUILDSTDERR: from /usr/include/mupdf/pdf/page.h:4, BUILDSTDERR: from /usr/include/mupdf/pdf.h:17, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/resource.h:82:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_xobject(fz_context *ctx, pdf_document *doc, const fz_rect *bbox, const fz_matrix *mat); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8777:19: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: xobj1 = pdf_new_xobject(ctx, pdfout, *mediabox, fz_identity, NULL, res); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:8783:43: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, xobj1, PDF_NAME(Resources), resources); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_insert_contents’: BUILDSTDERR: fitz/fitz_wrap.c:8798:65: error: ‘Contents’ undeclared (first use in this function); did you mean ‘contents’? BUILDSTDERR: pdf_obj *contents = pdf_dict_get(ctx, pageref, PDF_NAME(Contents)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: contents BUILDSTDERR: fitz/fitz_wrap.c:8798:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *contents = pdf_dict_get(ctx, pageref, PDF_NAME(Contents)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8820:45: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(ctx, pageref, PDF_NAME(Contents), carr); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_gather_fonts’: BUILDSTDERR: fitz/fitz_wrap.c:8936:56: error: ‘Subtype’ undeclared (first use in this function); did you mean ‘subtype’? BUILDSTDERR: subtype = pdf_dict_get(ctx, fontdict, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: subtype BUILDSTDERR: fitz/fitz_wrap.c:8936:47: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: subtype = pdf_dict_get(ctx, fontdict, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8937:57: error: ‘BaseFont’ undeclared (first use in this function); did you mean ‘basefont’? BUILDSTDERR: basefont = pdf_dict_get(ctx, fontdict, PDF_NAME(BaseFont)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: basefont BUILDSTDERR: fitz/fitz_wrap.c:8937:48: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: basefont = pdf_dict_get(ctx, fontdict, PDF_NAME(BaseFont)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8939:57: error: ‘Name’ undeclared (first use in this function); did you mean ‘name’? BUILDSTDERR: name = pdf_dict_get(ctx, fontdict, PDF_NAME(Name)); BUILDSTDERR: ^~~~ BUILDSTDERR: name BUILDSTDERR: fitz/fitz_wrap.c:8939:48: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: name = pdf_dict_get(ctx, fontdict, PDF_NAME(Name)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8942:57: error: ‘Encoding’ undeclared (first use in this function); did you mean ‘encoding’? BUILDSTDERR: encoding = pdf_dict_get(ctx, fontdict, PDF_NAME(Encoding)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: encoding BUILDSTDERR: fitz/fitz_wrap.c:8942:48: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: encoding = pdf_dict_get(ctx, fontdict, PDF_NAME(Encoding)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8944:61: error: ‘BaseEncoding’ undeclared (first use in this function); did you mean ‘encoding’? BUILDSTDERR: encoding = pdf_dict_get(ctx, encoding, PDF_NAME(BaseEncoding)); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: encoding BUILDSTDERR: fitz/fitz_wrap.c:8944:52: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: encoding = pdf_dict_get(ctx, encoding, PDF_NAME(BaseEncoding)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_gather_images’: BUILDSTDERR: fitz/fitz_wrap.c:8989:54: error: ‘Subtype’ undeclared (first use in this function); did you mean ‘type’? BUILDSTDERR: type = pdf_dict_get(ctx, imagedict, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: type BUILDSTDERR: fitz/fitz_wrap.c:8989:45: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: type = pdf_dict_get(ctx, imagedict, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8990:46: error: ‘Image’ undeclared (first use in this function) BUILDSTDERR: if (!pdf_name_eq(ctx, type, PDF_NAME(Image))) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8990:37: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (!pdf_name_eq(ctx, type, PDF_NAME(Image))) BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:8995:55: error: ‘SMask’ undeclared (first use in this function); did you mean ‘smask’? BUILDSTDERR: smask = pdf_dict_get(ctx, imagedict, PDF_NAME(SMask)); BUILDSTDERR: ^~~~~ BUILDSTDERR: smask BUILDSTDERR: fitz/fitz_wrap.c:8995:46: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: smask = pdf_dict_get(ctx, imagedict, PDF_NAME(SMask)); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:8998:56: error: ‘Filter’ undeclared (first use in this function); did you mean ‘filter’? BUILDSTDERR: filter = pdf_dict_get(ctx, imagedict, PDF_NAME(Filter)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: filter BUILDSTDERR: fitz/fitz_wrap.c:8998:47: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: filter = pdf_dict_get(ctx, imagedict, PDF_NAME(Filter)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9001:52: error: ‘ColorSpace’ undeclared (first use in this function); did you mean ‘fz_colorspace’? BUILDSTDERR: cs = pdf_dict_get(ctx, imagedict, PDF_NAME(ColorSpace)); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: fz_colorspace BUILDSTDERR: fitz/fitz_wrap.c:9001:43: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: cs = pdf_dict_get(ctx, imagedict, PDF_NAME(ColorSpace)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9006:47: error: ‘DeviceN’ undeclared (first use in this function) BUILDSTDERR: if (pdf_name_eq(ctx, cs, PDF_NAME(DeviceN)) || BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9006:38: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(ctx, cs, PDF_NAME(DeviceN)) || BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:9007:47: error: ‘Separation’ undeclared (first use in this function); did you mean ‘fz_separations’? BUILDSTDERR: pdf_name_eq(ctx, cs, PDF_NAME(Separation))) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: fz_separations BUILDSTDERR: fitz/fitz_wrap.c:9007:38: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_name_eq(ctx, cs, PDF_NAME(Separation))) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:9015:55: error: ‘Width’ undeclared (first use in this function); did you mean ‘width’? BUILDSTDERR: width = pdf_dict_get(ctx, imagedict, PDF_NAME(Width)); BUILDSTDERR: ^~~~~ BUILDSTDERR: width BUILDSTDERR: fitz/fitz_wrap.c:9015:46: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: width = pdf_dict_get(ctx, imagedict, PDF_NAME(Width)); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9016:56: error: ‘Height’ undeclared (first use in this function); did you mean ‘height’? BUILDSTDERR: height = pdf_dict_get(ctx, imagedict, PDF_NAME(Height)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: height BUILDSTDERR: fitz/fitz_wrap.c:9016:47: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: height = pdf_dict_get(ctx, imagedict, PDF_NAME(Height)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9017:53: error: ‘BitsPerComponent’ undeclared (first use in this function); did you mean ‘PDF_NAME_BitsPerComponent’? BUILDSTDERR: bpc = pdf_dict_get(ctx, imagedict, PDF_NAME(BitsPerComponent)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: PDF_NAME_BitsPerComponent BUILDSTDERR: fitz/fitz_wrap.c:9017:44: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: bpc = pdf_dict_get(ctx, imagedict, PDF_NAME(BitsPerComponent)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_gather_forms’: BUILDSTDERR: fitz/fitz_wrap.c:9057:54: error: ‘Subtype’ undeclared (first use in this function); did you mean ‘type’? BUILDSTDERR: type = pdf_dict_get(ctx, imagedict, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: type BUILDSTDERR: fitz/fitz_wrap.c:9057:45: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: type = pdf_dict_get(ctx, imagedict, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9058:46: error: ‘Form’ undeclared (first use in this function); did you mean ‘fork’? BUILDSTDERR: if (!pdf_name_eq(ctx, type, PDF_NAME(Form))) BUILDSTDERR: ^~~~ BUILDSTDERR: fork BUILDSTDERR: fitz/fitz_wrap.c:9058:37: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (!pdf_name_eq(ctx, type, PDF_NAME(Form))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_scan_resources’: BUILDSTDERR: fitz/fitz_wrap.c:9084:53: error: ‘Font’ undeclared (first use in this function); did you mean ‘font’? BUILDSTDERR: font = pdf_dict_get(ctx, rsrc, PDF_NAME(Font)); BUILDSTDERR: ^~~~ BUILDSTDERR: font BUILDSTDERR: fitz/fitz_wrap.c:9084:44: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: font = pdf_dict_get(ctx, rsrc, PDF_NAME(Font)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9090:59: error: ‘Resources’ undeclared (first use in this function) BUILDSTDERR: subrsrc = pdf_dict_get(ctx, obj, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9090:50: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: subrsrc = pdf_dict_get(ctx, obj, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9096:49: error: ‘XObject’ undeclared (first use in this function); did you mean ‘PyObject’? BUILDSTDERR: xobj = pdf_dict_get(ctx, rsrc, PDF_NAME(XObject)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: PyObject BUILDSTDERR: fitz/fitz_wrap.c:9096:40: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: xobj = pdf_dict_get(ctx, rsrc, PDF_NAME(XObject)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9112:46: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: subrsrc = pdf_dict_get(ctx, obj, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_convert_to_pdf’: BUILDSTDERR: fitz/fitz_wrap.c:9151:24: error: too few arguments to function ‘fz_bound_page’ BUILDSTDERR: mediabox = fz_bound_page(ctx, page); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:56, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/document.h:472:10: note: declared here BUILDSTDERR: fz_rect *fz_bound_page(fz_context *ctx, fz_page *page, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9151:22: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: mediabox = fz_bound_page(ctx, page); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:9151:13: warning: statement with no effect [-Wunused-value] BUILDSTDERR: mediabox = fz_bound_page(ctx, page); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9152:47: error: incompatible type for argument 3 of ‘pdf_page_write’ BUILDSTDERR: dev = pdf_page_write(ctx, pdfout, mediabox, &resources, &contents); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:12, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/document.h:795:12: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_device *pdf_page_write(fz_context *ctx, pdf_document *doc, const fz_rect *mediabox, pdf_obj **presources, fz_buffer **pcontents); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9152:17: warning: assignment to ‘fz_device *’ {aka ‘struct fz_device_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: dev = pdf_page_write(ctx, pdfout, mediabox, &resources, &contents); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:9153:41: error: incompatible type for argument 4 of ‘fz_run_page’ BUILDSTDERR: fz_run_page(ctx, page, dev, fz_identity, NULL); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:56, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/document.h:493:83: note: expected ‘const fz_matrix *’ {aka ‘const struct fz_matrix_s *’} but argument is of type ‘fz_matrix’ {aka ‘const struct fz_matrix_s’} BUILDSTDERR: void fz_run_page(fz_context *ctx, fz_page *page, fz_device *dev, const fz_matrix *transform, fz_cookie *cookie); BUILDSTDERR: ~~~~~~~~~~~~~~~~~^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9153:13: warning: statement with no effect [-Wunused-value] BUILDSTDERR: fz_run_page(ctx, page, dev, fz_identity, NULL); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9157:59: error: incompatible type for argument 3 of ‘pdf_add_page’ BUILDSTDERR: pdf_obj *page_obj = pdf_add_page(ctx, pdfout, mediabox, rotate, resources, contents); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:12, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/document.h:821:10: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: pdf_obj *pdf_add_page(fz_context *ctx, pdf_document *doc, const fz_rect *mediabox, int rotate, pdf_obj *resources, fz_buffer *contents); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9157:33: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: pdf_obj *page_obj = pdf_add_page(ctx, pdfout, mediabox, rotate, resources, contents); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘new_fz_document_s’: BUILDSTDERR: fitz/fitz_wrap.c:9457:36: error: incompatible type for argument 1 of ‘fz_is_empty_rect’ BUILDSTDERR: if (!(fz_is_empty_rect(r) && !fz_is_infinite_rect(r))) BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:230:33: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_is_empty_rect(const fz_rect *r) BUILDSTDERR: ~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:9457:63: error: incompatible type for argument 1 of ‘fz_is_infinite_rect’ BUILDSTDERR: if (!(fz_is_empty_rect(r) && !fz_is_infinite_rect(r))) BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:248:36: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_is_infinite_rect(const fz_rect *r) BUILDSTDERR: ~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:9468:49: warning: pointer targets in passing argument 2 of ‘fz_open_memory’ differ in signedness [-Wpointer-sign] BUILDSTDERR: data = fz_open_memory(gctx, streamdata, streamlen); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:8, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/stream.h:59:12: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_stream *fz_open_memory(fz_context *ctx, const unsigned char *data, size_t len); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s_embeddedFileDel’: BUILDSTDERR: fitz/fitz_wrap.c:9668:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: char *test = (char *) pdf_to_text_string(gctx, pdf_array_get(gctx, names, i)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s_embeddedFileInfo’: BUILDSTDERR: fitz/fitz_wrap.c:9696:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: name = (char *) pdf_to_text_string(gctx, pdf_portfolio_entry_name(gctx, pdf, n)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:9701:85: error: ‘F’ undeclared (first use in this function) BUILDSTDERR: name = (char *) pdf_to_text_string(gctx, pdf_dict_get(gctx, o, PDF_NAME(F))); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:9701:76: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: name = (char *) pdf_to_text_string(gctx, pdf_dict_get(gctx, o, PDF_NAME(F))); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9701:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: name = (char *) pdf_to_text_string(gctx, pdf_dict_get(gctx, o, PDF_NAME(F))); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:9704:85: error: ‘UF’ undeclared (first use in this function); did you mean ‘OF’? BUILDSTDERR: name = (char *) pdf_to_text_string(gctx, pdf_dict_get(gctx, o, PDF_NAME(UF))); BUILDSTDERR: ^~ BUILDSTDERR: OF BUILDSTDERR: fitz/fitz_wrap.c:9704:76: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: name = (char *) pdf_to_text_string(gctx, pdf_dict_get(gctx, o, PDF_NAME(UF))); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9704:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: name = (char *) pdf_to_text_string(gctx, pdf_dict_get(gctx, o, PDF_NAME(UF))); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:9707:85: error: ‘Desc’ undeclared (first use in this function); did you mean ‘getc’? BUILDSTDERR: name = (char *) pdf_to_text_string(gctx, pdf_dict_get(gctx, o, PDF_NAME(Desc))); BUILDSTDERR: ^~~~ BUILDSTDERR: getc BUILDSTDERR: fitz/fitz_wrap.c:9707:76: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: name = (char *) pdf_to_text_string(gctx, pdf_dict_get(gctx, o, PDF_NAME(Desc))); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9707:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: name = (char *) pdf_to_text_string(gctx, pdf_dict_get(gctx, o, PDF_NAME(Desc))); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:9711:58: error: ‘EF’ undeclared (first use in this function); did you mean ‘EOF’? BUILDSTDERR: pdf_obj *ef = pdf_dict_get(gctx, o, PDF_NAME(EF)); BUILDSTDERR: ^~ BUILDSTDERR: EOF BUILDSTDERR: fitz/fitz_wrap.c:9711:49: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *ef = pdf_dict_get(gctx, o, PDF_NAME(EF)); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9713:52: error: ‘Length’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(Length), NULL); BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9720:67: error: ‘Params’ undeclared (first use in this function); did you mean ‘_frame’? BUILDSTDERR: o = pdf_dict_getl(gctx, ef, PDF_NAME(F), PDF_NAME(Params), BUILDSTDERR: ^~~~~~ BUILDSTDERR: _frame BUILDSTDERR: fitz/fitz_wrap.c:9721:45: error: ‘Size’ undeclared (first use in this function); did you mean ‘time’? BUILDSTDERR: PDF_NAME(Size), NULL); BUILDSTDERR: ^~~~ BUILDSTDERR: time BUILDSTDERR: fitz/fitz_wrap.c:9685:19: warning: unused variable ‘sname’ [-Wunused-variable] BUILDSTDERR: char *sname = NULL; BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9682:24: warning: unused variable ‘name_len’ [-Wunused-variable] BUILDSTDERR: Py_ssize_t name_len = 0; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s_embeddedFileUpd’: BUILDSTDERR: fitz/fitz_wrap.c:9741:73: error: ‘EF’ undeclared (first use in this function); did you mean ‘EOF’? BUILDSTDERR: pdf_obj *filespec = pdf_dict_getl(gctx, entry, PDF_NAME(EF), BUILDSTDERR: ^~ BUILDSTDERR: EOF BUILDSTDERR: fitz/fitz_wrap.c:9742:60: error: ‘F’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(F), NULL); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:9749:64: warning: pointer targets in passing argument 2 of ‘fz_new_buffer_from_copied_data’ differ in signedness [-Wpointer-sign] BUILDSTDERR: res = fz_new_buffer_from_copied_data(gctx, data, len); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:75:1: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_new_buffer_from_copied_data(fz_context *ctx, const unsigned char *data, size_t size); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9752:52: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *l = pdf_new_int(gctx, (int64_t) len); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘long int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9752:34: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: pdf_obj *l = pdf_new_int(gctx, (int64_t) len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9752:34: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: pdf_obj *l = pdf_new_int(gctx, (int64_t) len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9753:59: error: ‘DL’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(gctx, filespec, PDF_NAME(DL), l); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:9753:50: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(gctx, filespec, PDF_NAME(DL), l); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:9754:63: error: ‘Params’ undeclared (first use in this function); did you mean ‘_frame’? BUILDSTDERR: pdf_dict_putl(gctx, filespec, l, PDF_NAME(Params), PDF_NAME(Size), NULL); BUILDSTDERR: ^~~~~~ BUILDSTDERR: _frame BUILDSTDERR: fitz/fitz_wrap.c:9754:81: error: ‘Size’ undeclared (first use in this function); did you mean ‘time’? BUILDSTDERR: pdf_dict_putl(gctx, filespec, l, PDF_NAME(Params), PDF_NAME(Size), NULL); BUILDSTDERR: ^~~~ BUILDSTDERR: time BUILDSTDERR: fitz/fitz_wrap.c:9757:59: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(gctx, entry, PDF_NAME(F), filename); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:9760:68: error: ‘UF’ undeclared (first use in this function); did you mean ‘OF’? BUILDSTDERR: pdf_dict_put_text_string(gctx, entry, PDF_NAME(UF), ufilename); BUILDSTDERR: ^~ BUILDSTDERR: OF BUILDSTDERR: fitz/fitz_wrap.c:9760:59: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(gctx, entry, PDF_NAME(UF), ufilename); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:9763:68: error: ‘Desc’ undeclared (first use in this function); did you mean ‘desc’? BUILDSTDERR: pdf_dict_put_text_string(gctx, entry, PDF_NAME(Desc), desc); BUILDSTDERR: ^~~~ BUILDSTDERR: desc BUILDSTDERR: fitz/fitz_wrap.c:9763:59: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(gctx, entry, PDF_NAME(Desc), desc); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s_embeddedFileAdd’: BUILDSTDERR: fitz/fitz_wrap.c:9835:60: error: ‘F’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_text_string(gctx, o, PDF_NAME(F), f); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:9835:51: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(gctx, o, PDF_NAME(F), f); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:9836:60: error: ‘UF’ undeclared (first use in this function); did you mean ‘OF’? BUILDSTDERR: pdf_dict_put_text_string(gctx, o, PDF_NAME(UF), uf); BUILDSTDERR: ^~ BUILDSTDERR: OF BUILDSTDERR: fitz/fitz_wrap.c:9836:51: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(gctx, o, PDF_NAME(UF), uf); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:9837:60: error: ‘Desc’ undeclared (first use in this function); did you mean ‘desc’? BUILDSTDERR: pdf_dict_put_text_string(gctx, o, PDF_NAME(Desc), d); BUILDSTDERR: ^~~~ BUILDSTDERR: desc BUILDSTDERR: fitz/fitz_wrap.c:9837:51: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(gctx, o, PDF_NAME(Desc), d); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:9839:69: error: ‘EF’ undeclared (first use in this function); did you mean ‘EOF’? BUILDSTDERR: pdf_obj *filespec = pdf_dict_getl(gctx, o, PDF_NAME(EF), BUILDSTDERR: ^~ BUILDSTDERR: EOF BUILDSTDERR: fitz/fitz_wrap.c:9841:61: warning: pointer targets in passing argument 2 of ‘fz_new_buffer_from_copied_data’ differ in signedness [-Wpointer-sign] BUILDSTDERR: data = fz_new_buffer_from_copied_data(gctx, buffdata, size); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:75:1: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_new_buffer_from_copied_data(fz_context *ctx, const unsigned char *data, size_t size); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9844:48: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *l = pdf_new_int(gctx, (int64_t) size); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘long int’ BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9844:30: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: pdf_obj *l = pdf_new_int(gctx, (int64_t) size); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9844:30: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: pdf_obj *l = pdf_new_int(gctx, (int64_t) size); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:9845:55: error: ‘DL’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(gctx, filespec, PDF_NAME(DL), l); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:9845:46: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(gctx, filespec, PDF_NAME(DL), l); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:9846:59: error: ‘Params’ undeclared (first use in this function); did you mean ‘_frame’? BUILDSTDERR: pdf_dict_putl(gctx, filespec, l, PDF_NAME(Params), PDF_NAME(Size), NULL); BUILDSTDERR: ^~~~~~ BUILDSTDERR: _frame BUILDSTDERR: fitz/fitz_wrap.c:9846:77: error: ‘Size’ undeclared (first use in this function); did you mean ‘size’? BUILDSTDERR: pdf_dict_putl(gctx, filespec, l, PDF_NAME(Params), PDF_NAME(Size), NULL); BUILDSTDERR: ^~~~ BUILDSTDERR: size BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s_layout’: BUILDSTDERR: fitz/fitz_wrap.c:9945:39: error: incompatible type for argument 1 of ‘fz_is_empty_rect’ BUILDSTDERR: if (!fz_is_empty_rect(r) && !fz_is_infinite_rect(r)) BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:230:33: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_is_empty_rect(const fz_rect *r) BUILDSTDERR: ~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:9945:66: error: incompatible type for argument 1 of ‘fz_is_infinite_rect’ BUILDSTDERR: if (!fz_is_empty_rect(r) && !fz_is_infinite_rect(r)) BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:248:36: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_is_infinite_rect(const fz_rect *r) BUILDSTDERR: ~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s__getPDFroot’: BUILDSTDERR: fitz/fitz_wrap.c:10038:55: error: ‘Root’ undeclared (first use in this function); did you mean ‘root’? BUILDSTDERR: PDF_NAME(Root)); BUILDSTDERR: ^~~~ BUILDSTDERR: root BUILDSTDERR: fitz/fitz_wrap.c:10038:46: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(Root)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s__hasXrefOldStyle’: BUILDSTDERR: fitz/fitz_wrap.c:10057:20: error: ‘pdf_document’ {aka ‘struct pdf_document_s’} has no member named ‘has_old_style_xrefs’ BUILDSTDERR: if (pdf->has_old_style_xrefs) Py_RETURN_TRUE; BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s_insertPage’: BUILDSTDERR: fitz/fitz_wrap.c:10187:52: error: incompatible type for argument 3 of ‘pdf_add_page’ BUILDSTDERR: page_obj = pdf_add_page(gctx, pdf, mediabox, 0, resources, contents); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:12, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/document.h:821:10: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: pdf_obj *pdf_add_page(fz_context *ctx, pdf_document *doc, const fz_rect *mediabox, int rotate, pdf_obj *resources, fz_buffer *contents); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10187:26: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: page_obj = pdf_add_page(gctx, pdf, mediabox, 0, resources, contents); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s__getCharWidths’: BUILDSTDERR: fitz/fitz_wrap.c:10254:63: error: ‘BaseFont’ undeclared (first use in this function); did you mean ‘basefont’? BUILDSTDERR: basefont = pdf_dict_get(gctx, o, PDF_NAME(BaseFont)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: basefont BUILDSTDERR: fitz/fitz_wrap.c:10254:54: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: basefont = pdf_dict_get(gctx, o, PDF_NAME(BaseFont)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10258:30: warning: pointer targets in assignment from ‘const unsigned char *’ to ‘const char *’ differ in signedness [-Wpointer-sign] BUILDSTDERR: data = fz_lookup_base14_font(gctx, bfname, &size); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:10261:74: warning: pointer targets in passing argument 3 of ‘fz_new_font_from_memory’ differ in signedness [-Wpointer-sign] BUILDSTDERR: font = fz_new_font_from_memory(gctx, bfname, data, size, 0, 0); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:40, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/font.h:410:10: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’ BUILDSTDERR: fz_font *fz_new_font_from_memory(fz_context *ctx, const char *name, const unsigned char *data, int len, int index, int use_glyph_bbox); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10240:17: warning: unused variable ‘cwlen’ [-Wunused-variable] BUILDSTDERR: int cwlen = 0; BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s__getPageInfo’: BUILDSTDERR: fitz/fitz_wrap.c:10331:61: error: ‘Resources’ undeclared (first use in this function) BUILDSTDERR: rsrc = pdf_dict_get(gctx, pageref, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10331:52: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: rsrc = pdf_dict_get(gctx, pageref, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s_extractFont’: BUILDSTDERR: fitz/fitz_wrap.c:10360:66: error: ‘Type’ undeclared (first use in this function); did you mean ‘type’? BUILDSTDERR: pdf_obj *type = pdf_dict_get(gctx, obj, PDF_NAME(Type)); BUILDSTDERR: ^~~~ BUILDSTDERR: type BUILDSTDERR: fitz/fitz_wrap.c:10360:57: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *type = pdf_dict_get(gctx, obj, PDF_NAME(Type)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10361:69: error: ‘Subtype’ undeclared (first use in this function); did you mean ‘subtype’? BUILDSTDERR: pdf_obj *subtype = pdf_dict_get(gctx, obj, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: subtype BUILDSTDERR: fitz/fitz_wrap.c:10361:60: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *subtype = pdf_dict_get(gctx, obj, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10362:53: error: ‘Font’ undeclared (first use in this function); did you mean ‘uInt’? BUILDSTDERR: if(pdf_name_eq(gctx, type, PDF_NAME(Font)) && BUILDSTDERR: ^~~~ BUILDSTDERR: uInt BUILDSTDERR: fitz/fitz_wrap.c:10362:44: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if(pdf_name_eq(gctx, type, PDF_NAME(Font)) && BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:10365:65: error: ‘BaseFont’ undeclared (first use in this function); did you mean ‘basefont’? BUILDSTDERR: basefont = pdf_dict_get(gctx, obj, PDF_NAME(BaseFont)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: basefont BUILDSTDERR: fitz/fitz_wrap.c:10365:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: basefont = pdf_dict_get(gctx, obj, PDF_NAME(BaseFont)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10367:66: error: ‘Name’ undeclared (first use in this function); did you mean ‘bname’? BUILDSTDERR: bname = pdf_dict_get(gctx, obj, PDF_NAME(Name)); BUILDSTDERR: ^~~~ BUILDSTDERR: bname BUILDSTDERR: fitz/fitz_wrap.c:10367:57: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: bname = pdf_dict_get(gctx, obj, PDF_NAME(Name)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10356:24: warning: unused variable ‘len’ [-Wunused-variable] BUILDSTDERR: Py_ssize_t len = 0; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s_extractImage’: BUILDSTDERR: fitz/fitz_wrap.c:10428:69: error: ‘Subtype’ undeclared (first use in this function); did you mean ‘subtype’? BUILDSTDERR: pdf_obj *subtype = pdf_dict_get(gctx, obj, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: subtype BUILDSTDERR: fitz/fitz_wrap.c:10428:60: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *subtype = pdf_dict_get(gctx, obj, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10429:57: error: ‘Image’ undeclared (first use in this function); did you mean ‘image’? BUILDSTDERR: if (pdf_name_eq(gctx, subtype, PDF_NAME(Image))) BUILDSTDERR: ^~~~~ BUILDSTDERR: image BUILDSTDERR: fitz/fitz_wrap.c:10429:48: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(gctx, subtype, PDF_NAME(Image))) BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:10437:67: error: ‘SMask’ undeclared (first use in this function); did you mean ‘smask’? BUILDSTDERR: pdf_obj *o = pdf_dict_get(gctx, obj, PDF_NAME(SMask)); BUILDSTDERR: ^~~~~ BUILDSTDERR: smask BUILDSTDERR: fitz/fitz_wrap.c:10437:58: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *o = pdf_dict_get(gctx, obj, PDF_NAME(SMask)); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10440:58: error: ‘Width’ undeclared (first use in this function); did you mean ‘width’? BUILDSTDERR: o = pdf_dict_get(gctx, obj, PDF_NAME(Width)); BUILDSTDERR: ^~~~~ BUILDSTDERR: width BUILDSTDERR: fitz/fitz_wrap.c:10440:49: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(gctx, obj, PDF_NAME(Width)); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10443:58: error: ‘Height’ undeclared (first use in this function); did you mean ‘height’? BUILDSTDERR: o = pdf_dict_get(gctx, obj, PDF_NAME(Height)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: height BUILDSTDERR: fitz/fitz_wrap.c:10443:49: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(gctx, obj, PDF_NAME(Height)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10453:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_BMP): strcpy(ext, "bmp"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10454:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_GIF): strcpy(ext, "gif"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10455:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JPEG): strcpy(ext, "jpeg"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10456:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JPX): strcpy(ext, "jpx"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10457:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JXR): strcpy(ext, "jxr"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10458:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_PNM): strcpy(ext, "pnm"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10459:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_TIFF): strcpy(ext, "tiff"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10460:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: default: strcpy(ext, "png"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10483:32: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(ext, "png"); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s__delToC’: BUILDSTDERR: fitz/fitz_wrap.c:10521:72: error: ‘Root’ undeclared (first use in this function); did you mean ‘root’? BUILDSTDERR: root = pdf_dict_get(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root)); BUILDSTDERR: ^~~~ BUILDSTDERR: root BUILDSTDERR: fitz/fitz_wrap.c:10521:63: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: root = pdf_dict_get(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10523:56: error: ‘Outlines’ undeclared (first use in this function); did you mean ‘futimes’? BUILDSTDERR: olroot = pdf_dict_get(gctx, root, PDF_NAME(Outlines)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: futimes BUILDSTDERR: fitz/fitz_wrap.c:10523:47: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: olroot = pdf_dict_get(gctx, root, PDF_NAME(Outlines)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10526:57: error: ‘First’ undeclared (first use in this function); did you mean ‘first’? BUILDSTDERR: first = pdf_dict_get(gctx, olroot, PDF_NAME(First)); // first outline BUILDSTDERR: ^~~~~ BUILDSTDERR: first BUILDSTDERR: fitz/fitz_wrap.c:10526:48: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: first = pdf_dict_get(gctx, olroot, PDF_NAME(First)); // first outline BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10533:38: warning: passing argument 3 of ‘pdf_dict_del’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_del(gctx, root, PDF_NAME(Outlines)); // delete OL root BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:129:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_del(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s_isFormPDF’: BUILDSTDERR: fitz/fitz_wrap.c:10552:77: error: ‘Root’ undeclared (first use in this function) BUILDSTDERR: form = pdf_dict_getl(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root), PDF_NAME(AcroForm), NULL); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:10552:93: error: ‘AcroForm’ undeclared (first use in this function) BUILDSTDERR: form = pdf_dict_getl(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root), PDF_NAME(AcroForm), NULL); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10555:64: error: ‘Fields’ undeclared (first use in this function); did you mean ‘fields’? BUILDSTDERR: fields = pdf_dict_get(gctx, form, PDF_NAME(Fields)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: fields BUILDSTDERR: fitz/fitz_wrap.c:10555:55: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: fields = pdf_dict_get(gctx, form, PDF_NAME(Fields)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s_FormFonts’: BUILDSTDERR: fitz/fitz_wrap.c:10570:78: error: ‘Root’ undeclared (first use in this function) BUILDSTDERR: fonts = pdf_dict_getl(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root), PDF_NAME(AcroForm), PDF_NAME(DR), PDF_NAME(Font), NULL); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:10570:94: error: ‘AcroForm’ undeclared (first use in this function) BUILDSTDERR: fonts = pdf_dict_getl(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root), PDF_NAME(AcroForm), PDF_NAME(DR), PDF_NAME(Font), NULL); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10570:114: error: ‘DR’ undeclared (first use in this function) BUILDSTDERR: fonts = pdf_dict_getl(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root), PDF_NAME(AcroForm), PDF_NAME(DR), PDF_NAME(Font), NULL); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:10570:128: error: ‘Font’ undeclared (first use in this function); did you mean ‘fonts’? BUILDSTDERR: fonts = pdf_dict_getl(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root), PDF_NAME(AcroForm), PDF_NAME(DR), PDF_NAME(Font), NULL); BUILDSTDERR: ^~~~ BUILDSTDERR: fonts BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s__addFormFont’: BUILDSTDERR: fitz/fitz_wrap.c:10590:78: error: ‘Root’ undeclared (first use in this function); did you mean ‘font’? BUILDSTDERR: fonts = pdf_dict_getl(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root), BUILDSTDERR: ^~~~ BUILDSTDERR: font BUILDSTDERR: fitz/fitz_wrap.c:10591:39: error: ‘AcroForm’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(AcroForm), PDF_NAME(DR), PDF_NAME(Font), NULL); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10591:59: error: ‘DR’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(AcroForm), PDF_NAME(DR), PDF_NAME(Font), NULL); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:10591:73: error: ‘Font’ undeclared (first use in this function); did you mean ‘font’? BUILDSTDERR: PDF_NAME(AcroForm), PDF_NAME(DR), PDF_NAME(Font), NULL); BUILDSTDERR: ^~~~ BUILDSTDERR: font BUILDSTDERR: fitz/fitz_wrap.c:10594:49: warning: passing argument 2 of ‘pdf_new_name’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: pdf_obj *k = pdf_new_name(gctx, (const char *) name); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:22:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘const char *’ BUILDSTDERR: pdf_obj *pdf_new_name(fz_context *ctx, pdf_document *doc, const char *str); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10594:30: error: too few arguments to function ‘pdf_new_name’ BUILDSTDERR: pdf_obj *k = pdf_new_name(gctx, (const char *) name); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:22:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_name(fz_context *ctx, pdf_document *doc, const char *str); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10594:30: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: pdf_obj *k = pdf_new_name(gctx, (const char *) name); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s__getOLRootNumber’: BUILDSTDERR: fitz/fitz_wrap.c:10608:72: error: ‘Root’ undeclared (first use in this function); did you mean ‘root’? BUILDSTDERR: root = pdf_dict_get(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root)); BUILDSTDERR: ^~~~ BUILDSTDERR: root BUILDSTDERR: fitz/fitz_wrap.c:10608:63: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: root = pdf_dict_get(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10610:56: error: ‘Outlines’ undeclared (first use in this function); did you mean ‘futimes’? BUILDSTDERR: olroot = pdf_dict_get(gctx, root, PDF_NAME(Outlines)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: futimes BUILDSTDERR: fitz/fitz_wrap.c:10610:47: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: olroot = pdf_dict_get(gctx, root, PDF_NAME(Outlines)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10614:53: error: ‘Type’ undeclared (first use in this function); did you mean ‘Byte’? BUILDSTDERR: pdf_dict_put(gctx, olroot, PDF_NAME(Type), PDF_NAME(Outlines)); BUILDSTDERR: ^~~~ BUILDSTDERR: Byte BUILDSTDERR: fitz/fitz_wrap.c:10614:44: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(gctx, olroot, PDF_NAME(Type), PDF_NAME(Outlines)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:10614:60: warning: passing argument 4 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(gctx, olroot, PDF_NAME(Type), PDF_NAME(Outlines)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:74: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:10616:42: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(gctx, root, PDF_NAME(Outlines), ind_obj); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:10617:51: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: olroot = pdf_dict_get(gctx, root, PDF_NAME(Outlines)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s__getXmlMetadataXref’: BUILDSTDERR: fitz/fitz_wrap.c:10642:85: error: ‘Root’ undeclared (first use in this function); did you mean ‘root’? BUILDSTDERR: pdf_obj *root = pdf_dict_get(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root)); BUILDSTDERR: ^~~~ BUILDSTDERR: root BUILDSTDERR: fitz/fitz_wrap.c:10642:76: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *root = pdf_dict_get(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s__delXmlMetadata’: BUILDSTDERR: fitz/fitz_wrap.c:10655:85: error: ‘Root’ undeclared (first use in this function); did you mean ‘root’? BUILDSTDERR: pdf_obj *root = pdf_dict_get(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root)); BUILDSTDERR: ^~~~ BUILDSTDERR: root BUILDSTDERR: fitz/fitz_wrap.c:10655:76: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *root = pdf_dict_get(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Root)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s__setMetadata’: BUILDSTDERR: fitz/fitz_wrap.c:10784:72: error: ‘Info’ undeclared (first use in this function); did you mean ‘info’? BUILDSTDERR: info = pdf_dict_get(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Info)); BUILDSTDERR: ^~~~ BUILDSTDERR: info BUILDSTDERR: fitz/fitz_wrap.c:10784:63: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: info = pdf_dict_get(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Info)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10795:61: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(gctx, pdf_trailer(gctx, pdf), PDF_NAME(Info), new_info_ind); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_bound’: BUILDSTDERR: fitz/fitz_wrap.c:10804:28: error: too few arguments to function ‘fz_bound_page’ BUILDSTDERR: fz_rect rect = fz_bound_page(gctx, self); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:56, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/document.h:472:10: note: declared here BUILDSTDERR: fz_rect *fz_bound_page(fz_context *ctx, fz_page *page, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10804:28: error: invalid initializer BUILDSTDERR: fz_rect rect = fz_bound_page(gctx, self); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_run’: BUILDSTDERR: fitz/fitz_wrap.c:10808:62: error: incompatible type for argument 4 of ‘fz_run_page’ BUILDSTDERR: fz_try(gctx) fz_run_page(gctx, self, dw->device, JM_matrix_from_py(m), NULL); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:56, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/document.h:493:83: note: expected ‘const fz_matrix *’ {aka ‘const struct fz_matrix_s *’} but argument is of type ‘fz_matrix’ {aka ‘struct fz_matrix_s’} BUILDSTDERR: void fz_run_page(fz_context *ctx, fz_page *page, fz_device *dev, const fz_matrix *transform, fz_cookie *cookie); BUILDSTDERR: ~~~~~~~~~~~~~~~~~^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10808:26: warning: statement with no effect [-Wunused-value] BUILDSTDERR: fz_try(gctx) fz_run_page(gctx, self, dw->device, JM_matrix_from_py(m), NULL); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_getSVGimage’: BUILDSTDERR: fitz/fitz_wrap.c:10813:32: error: too few arguments to function ‘fz_bound_page’ BUILDSTDERR: fz_rect mediabox = fz_bound_page(gctx, self); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:56, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/document.h:472:10: note: declared here BUILDSTDERR: fz_rect *fz_bound_page(fz_context *ctx, fz_page *page, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10813:32: error: invalid initializer BUILDSTDERR: fz_rect mediabox = fz_bound_page(gctx, self); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10825:41: error: incompatible type for argument 1 of ‘fz_transform_rect’ BUILDSTDERR: tbounds = fz_transform_rect(tbounds, ctm); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:629:10: note: expected ‘fz_rect * restrict’ {aka ‘struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_transform_rect(fz_rect *restrict rect, const fz_matrix *restrict transform); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10825:50: error: incompatible type for argument 2 of ‘fz_transform_rect’ BUILDSTDERR: tbounds = fz_transform_rect(tbounds, ctm); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:629:10: note: expected ‘const fz_matrix * restrict’ {aka ‘const struct fz_matrix_s * restrict’} but argument is of type ‘fz_matrix’ {aka ‘struct fz_matrix_s’} BUILDSTDERR: fz_rect *fz_transform_rect(fz_rect *restrict rect, const fz_matrix *restrict transform); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10825:21: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: tbounds = fz_transform_rect(tbounds, ctm); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:10825:13: warning: statement with no effect [-Wunused-value] BUILDSTDERR: tbounds = fz_transform_rect(tbounds, ctm); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10832:46: error: incompatible type for argument 4 of ‘fz_run_page’ BUILDSTDERR: fz_run_page(gctx, self, dev, ctm, cookie); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:56, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/document.h:493:83: note: expected ‘const fz_matrix *’ {aka ‘const struct fz_matrix_s *’} but argument is of type ‘fz_matrix’ {aka ‘struct fz_matrix_s’} BUILDSTDERR: void fz_run_page(fz_context *ctx, fz_page *page, fz_device *dev, const fz_matrix *transform, fz_cookie *cookie); BUILDSTDERR: ~~~~~~~~~~~~~~~~~^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10832:17: warning: statement with no effect [-Wunused-value] BUILDSTDERR: fz_run_page(gctx, self, dev, ctm, cookie); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10820:29: warning: unused variable ‘seps’ [-Wunused-variable] BUILDSTDERR: fz_separations *seps = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_addLineAnnot’: BUILDSTDERR: fitz/fitz_wrap.c:10865:36: error: incompatible type for argument 1 of ‘fz_expand_rect’ BUILDSTDERR: r = fz_expand_rect(r, 3 * width); BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:563:10: note: expected ‘fz_rect *’ {aka ‘struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_expand_rect(fz_rect *b, float expand); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10865:19: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: r = fz_expand_rect(r, 3 * width); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:10865:17: warning: statement with no effect [-Wunused-value] BUILDSTDERR: r = fz_expand_rect(r, 3 * width); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:10866:49: error: incompatible type for argument 3 of ‘pdf_set_annot_rect’ BUILDSTDERR: pdf_set_annot_rect(gctx, annot, r); BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:23, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/annot.h:178:75: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: void pdf_set_annot_rect(fz_context *ctx, pdf_annot *annot, const fz_rect *rect); BUILDSTDERR: ~~~~~~~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:10866:17: warning: statement with no effect [-Wunused-value] BUILDSTDERR: pdf_set_annot_rect(gctx, annot, r); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10860:31: warning: unused variable ‘pdf’ [-Wunused-variable] BUILDSTDERR: pdf_document *pdf = page->doc; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_addInkAnnot’: BUILDSTDERR: fitz/fitz_wrap.c:10903:25: error: too few arguments to function ‘pdf_bound_page’ BUILDSTDERR: prect = pdf_bound_page(gctx, page); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:17, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/page.h:61:10: note: declared here BUILDSTDERR: fz_rect *pdf_bound_page(fz_context *ctx, pdf_page *page, fz_rect *); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10903:23: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: prect = pdf_bound_page(gctx, page); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:10903:17: warning: statement with no effect [-Wunused-value] BUILDSTDERR: prect = pdf_bound_page(gctx, page); BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10932:62: error: ‘InkList’ undeclared (first use in this function); did you mean ‘inklist’? BUILDSTDERR: pdf_dict_put_drop(gctx, annot->obj, PDF_NAME(InkList), inklist); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: inklist BUILDSTDERR: fitz/fitz_wrap.c:10932:53: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(gctx, annot->obj, PDF_NAME(InkList), inklist); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_addStampAnnot’: BUILDSTDERR: fitz/fitz_wrap.c:10950:45: error: ‘Approved’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *stamp_id[] = {PDF_NAME(Approved), PDF_NAME(AsIs), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10950:36: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *stamp_id[] = {PDF_NAME(Approved), PDF_NAME(AsIs), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10950:36: note: (near initialization for ‘stamp_id[0]’) BUILDSTDERR: fitz/fitz_wrap.c:10950:65: error: ‘AsIs’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *stamp_id[] = {PDF_NAME(Approved), PDF_NAME(AsIs), BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:10950:56: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *stamp_id[] = {PDF_NAME(Approved), PDF_NAME(AsIs), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10950:56: note: (near initialization for ‘stamp_id[1]’) BUILDSTDERR: fitz/fitz_wrap.c:10951:45: error: ‘Confidential’ undeclared (first use in this function); did you mean ‘fz_identity’? BUILDSTDERR: PDF_NAME(Confidential), PDF_NAME(Departmental), BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fz_identity BUILDSTDERR: fitz/fitz_wrap.c:10951:36: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(Confidential), PDF_NAME(Departmental), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10951:36: note: (near initialization for ‘stamp_id[2]’) BUILDSTDERR: fitz/fitz_wrap.c:10951:69: error: ‘Departmental’ undeclared (first use in this function); did you mean ‘nearbyintl’? BUILDSTDERR: PDF_NAME(Confidential), PDF_NAME(Departmental), BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: nearbyintl BUILDSTDERR: fitz/fitz_wrap.c:10951:60: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(Confidential), PDF_NAME(Departmental), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10951:60: note: (near initialization for ‘stamp_id[3]’) BUILDSTDERR: fitz/fitz_wrap.c:10952:45: error: ‘Experimental’ undeclared (first use in this function); did you mean ‘isprint_l’? BUILDSTDERR: PDF_NAME(Experimental), PDF_NAME(Expired), BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: isprint_l BUILDSTDERR: fitz/fitz_wrap.c:10952:36: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(Experimental), PDF_NAME(Expired), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10952:36: note: (near initialization for ‘stamp_id[4]’) BUILDSTDERR: fitz/fitz_wrap.c:10952:69: error: ‘Expired’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(Experimental), PDF_NAME(Expired), BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10952:60: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(Experimental), PDF_NAME(Expired), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10952:60: note: (near initialization for ‘stamp_id[5]’) BUILDSTDERR: fitz/fitz_wrap.c:10953:45: error: ‘Final’ undeclared (first use in this function); did you mean ‘rintl’? BUILDSTDERR: PDF_NAME(Final), PDF_NAME(ForComment), BUILDSTDERR: ^~~~~ BUILDSTDERR: rintl BUILDSTDERR: fitz/fitz_wrap.c:10953:36: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(Final), PDF_NAME(ForComment), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10953:36: note: (near initialization for ‘stamp_id[6]’) BUILDSTDERR: fitz/fitz_wrap.c:10953:62: error: ‘ForComment’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(Final), PDF_NAME(ForComment), BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10953:53: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(Final), PDF_NAME(ForComment), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10953:53: note: (near initialization for ‘stamp_id[7]’) BUILDSTDERR: fitz/fitz_wrap.c:10954:45: error: ‘ForPublicRelease’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(ForPublicRelease), PDF_NAME(NotApproved), BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10954:36: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(ForPublicRelease), PDF_NAME(NotApproved), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10954:36: note: (near initialization for ‘stamp_id[8]’) BUILDSTDERR: fitz/fitz_wrap.c:10954:73: error: ‘NotApproved’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(ForPublicRelease), PDF_NAME(NotApproved), BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10954:64: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(ForPublicRelease), PDF_NAME(NotApproved), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10954:64: note: (near initialization for ‘stamp_id[9]’) BUILDSTDERR: fitz/fitz_wrap.c:10955:45: error: ‘NotForPublicRelease’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(NotForPublicRelease), PDF_NAME(Sold), BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10955:36: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(NotForPublicRelease), PDF_NAME(Sold), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10955:36: note: (near initialization for ‘stamp_id[10]’) BUILDSTDERR: fitz/fitz_wrap.c:10955:76: error: ‘Sold’ undeclared (first use in this function); did you mean ‘void’? BUILDSTDERR: PDF_NAME(NotForPublicRelease), PDF_NAME(Sold), BUILDSTDERR: ^~~~ BUILDSTDERR: void BUILDSTDERR: fitz/fitz_wrap.c:10955:67: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(NotForPublicRelease), PDF_NAME(Sold), BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10955:67: note: (near initialization for ‘stamp_id[11]’) BUILDSTDERR: fitz/fitz_wrap.c:10956:45: error: ‘TopSecret’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(TopSecret), PDF_NAME(Draft)}; BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10956:36: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(TopSecret), PDF_NAME(Draft)}; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10956:36: note: (near initialization for ‘stamp_id[12]’) BUILDSTDERR: fitz/fitz_wrap.c:10956:66: error: ‘Draft’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(TopSecret), PDF_NAME(Draft)}; BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10956:57: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(TopSecret), PDF_NAME(Draft)}; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10956:57: note: (near initialization for ‘stamp_id[13]’) BUILDSTDERR: fitz/fitz_wrap.c:10966:49: error: incompatible type for argument 3 of ‘pdf_set_annot_rect’ BUILDSTDERR: pdf_set_annot_rect(gctx, annot, JM_rect_from_py(rect)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:23, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/annot.h:178:75: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: void pdf_set_annot_rect(fz_context *ctx, pdf_annot *annot, const fz_rect *rect); BUILDSTDERR: ~~~~~~~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:10966:17: warning: statement with no effect [-Wunused-value] BUILDSTDERR: pdf_set_annot_rect(gctx, annot, JM_rect_from_py(rect)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10967:57: error: ‘Name’ undeclared (first use in this function); did you mean ‘name’? BUILDSTDERR: pdf_dict_put(gctx, annot->obj, PDF_NAME(Name), name); BUILDSTDERR: ^~~~ BUILDSTDERR: name BUILDSTDERR: fitz/fitz_wrap.c:10967:48: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(gctx, annot->obj, PDF_NAME(Name), name); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:10969:25: warning: implicit declaration of function ‘pdf_dict_get_name’; did you mean ‘pdf_dict_put_name’? [-Wimplicit-function-declaration] BUILDSTDERR: pdf_dict_get_name(gctx, annot->obj, PDF_NAME(Name))); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: pdf_dict_put_name BUILDSTDERR: fitz/fitz_wrap.c:10969:25: warning: passing argument 3 of ‘pdf_set_annot_contents’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_get_name(gctx, annot->obj, PDF_NAME(Name))); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:23, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/annot.h:230:76: note: expected ‘const char *’ but argument is of type ‘int’ BUILDSTDERR: void pdf_set_annot_contents(fz_context *ctx, pdf_annot *annot, const char *text); BUILDSTDERR: ~~~~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_addFileAnnot’: BUILDSTDERR: fitz/fitz_wrap.c:10992:49: error: incompatible type for argument 3 of ‘pdf_set_annot_rect’ BUILDSTDERR: pdf_set_annot_rect(gctx, annot, r); BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:23, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/annot.h:178:75: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: void pdf_set_annot_rect(fz_context *ctx, pdf_annot *annot, const fz_rect *rect); BUILDSTDERR: ~~~~~~~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:10992:17: warning: statement with no effect [-Wunused-value] BUILDSTDERR: pdf_set_annot_rect(gctx, annot, r); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10995:64: warning: pointer targets in passing argument 2 of ‘fz_new_buffer_from_shared_data’ differ in signedness [-Wpointer-sign] BUILDSTDERR: filebuf = fz_new_buffer_from_shared_data(gctx, data, len); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:69:12: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_buffer *fz_new_buffer_from_shared_data(fz_context *ctx, const unsigned char *data, size_t size); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:10998:57: error: ‘FS’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put(gctx, annot->obj, PDF_NAME(FS), val); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:10998:48: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(gctx, annot->obj, PDF_NAME(FS), val); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:10999:69: error: ‘Contents’ undeclared (first use in this function); did you mean ‘PyContext’? BUILDSTDERR: pdf_dict_put_text_string(gctx, annot->obj, PDF_NAME(Contents), filename); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: PyContext BUILDSTDERR: fitz/fitz_wrap.c:10999:60: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(gctx, annot->obj, PDF_NAME(Contents), filename); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_addStrikeoutAnnot’: BUILDSTDERR: fitz/fitz_wrap.c:11010:13: error: unknown type name ‘fz_quad’; did you mean ‘fz_shade’? BUILDSTDERR: fz_quad quad = JM_quad_from_py(rect); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fz_shade BUILDSTDERR: fitz/fitz_wrap.c:11014:25: warning: implicit declaration of function ‘JM_AnnotTextmarker’; did you mean ‘JM_annot_set_border’? [-Wimplicit-function-declaration] BUILDSTDERR: annot = JM_AnnotTextmarker(gctx, page, quad, PDF_ANNOT_STRIKE_OUT); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: JM_annot_set_border BUILDSTDERR: fitz/fitz_wrap.c:11014:23: warning: assignment to ‘fz_annot *’ {aka ‘struct fz_annot_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: annot = JM_AnnotTextmarker(gctx, page, quad, PDF_ANNOT_STRIKE_OUT); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_addUnderlineAnnot’: BUILDSTDERR: fitz/fitz_wrap.c:11023:13: error: unknown type name ‘fz_quad’; did you mean ‘fz_shade’? BUILDSTDERR: fz_quad quad = JM_quad_from_py(rect); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fz_shade BUILDSTDERR: fitz/fitz_wrap.c:11027:23: warning: assignment to ‘fz_annot *’ {aka ‘struct fz_annot_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: annot = JM_AnnotTextmarker(gctx, page, quad, PDF_ANNOT_UNDERLINE); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_addSquigglyAnnot’: BUILDSTDERR: fitz/fitz_wrap.c:11036:13: error: unknown type name ‘fz_quad’; did you mean ‘fz_shade’? BUILDSTDERR: fz_quad quad = JM_quad_from_py(rect); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fz_shade BUILDSTDERR: fitz/fitz_wrap.c:11040:23: warning: assignment to ‘fz_annot *’ {aka ‘struct fz_annot_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: annot = JM_AnnotTextmarker(gctx, page, quad, PDF_ANNOT_SQUIGGLY); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_addHighlightAnnot’: BUILDSTDERR: fitz/fitz_wrap.c:11049:13: error: unknown type name ‘fz_quad’; did you mean ‘fz_shade’? BUILDSTDERR: fz_quad quad = JM_quad_from_py(rect); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fz_shade BUILDSTDERR: fitz/fitz_wrap.c:11053:23: warning: assignment to ‘fz_annot *’ {aka ‘struct fz_annot_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: annot = JM_AnnotTextmarker(gctx, page, quad, PDF_ANNOT_HIGHLIGHT); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_addFreetextAnnot’: BUILDSTDERR: fitz/fitz_wrap.c:11121:61: error: ‘Rotate’ undeclared (first use in this function); did you mean ‘rotate’? BUILDSTDERR: pdf_dict_put_int(gctx, annot->obj, PDF_NAME(Rotate), rotate); BUILDSTDERR: ^~~~~~ BUILDSTDERR: rotate BUILDSTDERR: fitz/fitz_wrap.c:11121:52: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(gctx, annot->obj, PDF_NAME(Rotate), rotate); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:11124:49: error: incompatible type for argument 3 of ‘pdf_set_annot_rect’ BUILDSTDERR: pdf_set_annot_rect(gctx, annot, r); BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:23, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/annot.h:178:75: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: void pdf_set_annot_rect(fz_context *ctx, pdf_annot *annot, const fz_rect *rect); BUILDSTDERR: ~~~~~~~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:11124:17: warning: statement with no effect [-Wunused-value] BUILDSTDERR: pdf_set_annot_rect(gctx, annot, r); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_setCropBox’: BUILDSTDERR: fitz/fitz_wrap.c:11179:36: error: too few arguments to function ‘pdf_bound_page’ BUILDSTDERR: fz_rect mediabox = pdf_bound_page(gctx, page); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:17, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/page.h:61:10: note: declared here BUILDSTDERR: fz_rect *pdf_bound_page(fz_context *ctx, pdf_page *page, fz_rect *); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11179:36: error: invalid initializer BUILDSTDERR: fz_rect mediabox = pdf_bound_page(gctx, page); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11180:69: error: ‘MediaBox’ undeclared (first use in this function); did you mean ‘mediabox’? BUILDSTDERR: pdf_obj *o = pdf_dict_get(gctx, page->obj, PDF_NAME(MediaBox)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: mediabox BUILDSTDERR: fitz/fitz_wrap.c:11180:60: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *o = pdf_dict_get(gctx, page->obj, PDF_NAME(MediaBox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11181:35: error: too few arguments to function ‘pdf_to_rect’ BUILDSTDERR: if (o) mediabox = pdf_to_rect(gctx, o); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:180:10: note: declared here BUILDSTDERR: fz_rect *pdf_to_rect(fz_context *ctx, pdf_obj *array, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11181:33: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: if (o) mediabox = pdf_to_rect(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:11181:24: warning: statement with no effect [-Wunused-value] BUILDSTDERR: if (o) mediabox = pdf_to_rect(gctx, o); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11188:61: error: ‘CropBox’ undeclared (first use in this function); did you mean ‘cropbox’? BUILDSTDERR: pdf_dict_put_drop(gctx, page->obj, PDF_NAME(CropBox), BUILDSTDERR: ^~~~~~~ BUILDSTDERR: cropbox BUILDSTDERR: fitz/fitz_wrap.c:11189:65: error: incompatible type for argument 3 of ‘pdf_new_rect’ BUILDSTDERR: pdf_new_rect(gctx, page->doc, cropbox)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:28:10: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: pdf_obj *pdf_new_rect(fz_context *ctx, pdf_document *doc, const fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11188:52: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(gctx, page->obj, PDF_NAME(CropBox), BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:11189:35: warning: passing argument 4 of ‘pdf_dict_put_drop’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: pdf_new_rect(gctx, page->doc, cropbox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:79: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_deleteLink’: BUILDSTDERR: fitz/fitz_wrap.c:11215:70: error: ‘Annots’ undeclared (first use in this function); did you mean ‘annots’? BUILDSTDERR: pdf_obj *annots = pdf_dict_get(gctx, page->obj, PDF_NAME(Annots)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: annots BUILDSTDERR: fitz/fitz_wrap.c:11215:61: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *annots = pdf_dict_get(gctx, page->obj, PDF_NAME(Annots)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11227:43: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(gctx, page->obj, PDF_NAME(Annots), annots); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_MediaBoxSize’: BUILDSTDERR: fitz/fitz_wrap.c:11252:65: error: ‘MediaBox’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *o = pdf_dict_get(gctx, page->obj, PDF_NAME(MediaBox)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11252:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *o = pdf_dict_get(gctx, page->obj, PDF_NAME(MediaBox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11255:17: error: too few arguments to function ‘pdf_to_rect’ BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:180:10: note: declared here BUILDSTDERR: fz_rect *pdf_to_rect(fz_context *ctx, pdf_obj *array, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11255:15: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:11255:13: warning: statement with no effect [-Wunused-value] BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_CropBoxPosition’: BUILDSTDERR: fitz/fitz_wrap.c:11262:65: error: ‘CropBox’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *o = pdf_dict_get(gctx, page->obj, PDF_NAME(CropBox)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11262:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *o = pdf_dict_get(gctx, page->obj, PDF_NAME(CropBox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11264:28: error: too few arguments to function ‘pdf_to_rect’ BUILDSTDERR: fz_rect cbox = pdf_to_rect(gctx, o); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:180:10: note: declared here BUILDSTDERR: fz_rect *pdf_to_rect(fz_context *ctx, pdf_obj *array, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11264:28: error: invalid initializer BUILDSTDERR: fz_rect cbox = pdf_to_rect(gctx, o); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_rotation’: BUILDSTDERR: fitz/fitz_wrap.c:11270:65: error: ‘Rotate’ undeclared (first use in this function); did you mean ‘statx’? BUILDSTDERR: pdf_obj *o = pdf_dict_get(gctx, page->obj, PDF_NAME(Rotate)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: statx BUILDSTDERR: fitz/fitz_wrap.c:11270:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *o = pdf_dict_get(gctx, page->obj, PDF_NAME(Rotate)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_setRotation’: BUILDSTDERR: fitz/fitz_wrap.c:11280:60: error: ‘Rotate’ undeclared (first use in this function); did you mean ‘statx’? BUILDSTDERR: pdf_dict_put_int(gctx, page->obj, PDF_NAME(Rotate), (int64_t) rot); BUILDSTDERR: ^~~~~~ BUILDSTDERR: statx BUILDSTDERR: fitz/fitz_wrap.c:11280:51: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(gctx, page->obj, PDF_NAME(Rotate), (int64_t) rot); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s__addAnnot_FromString’: BUILDSTDERR: fitz/fitz_wrap.c:11298:65: error: ‘Annots’ undeclared (first use in this function); did you mean ‘annots’? BUILDSTDERR: annots = pdf_dict_get(gctx, page->obj, PDF_NAME(Annots)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: annots BUILDSTDERR: fitz/fitz_wrap.c:11298:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: annots = pdf_dict_get(gctx, page->obj, PDF_NAME(Annots)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11346:52: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(gctx, page->obj, PDF_NAME(Annots), new_array); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s__getLinkXrefs’: BUILDSTDERR: fitz/fitz_wrap.c:11359:61: error: ‘Annots’ undeclared (first use in this function); did you mean ‘annots’? BUILDSTDERR: annots = pdf_dict_get(gctx, page->obj, PDF_NAME(Annots)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: annots BUILDSTDERR: fitz/fitz_wrap.c:11359:52: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: annots = pdf_dict_get(gctx, page->obj, PDF_NAME(Annots)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11369:57: error: ‘Subtype’ undeclared (first use in this function); did you mean ‘isctype’? BUILDSTDERR: obj = pdf_dict_get(gctx, link, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: isctype BUILDSTDERR: fitz/fitz_wrap.c:11369:48: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: obj = pdf_dict_get(gctx, link, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11370:53: error: ‘Link’ undeclared (first use in this function); did you mean ‘link’? BUILDSTDERR: if (pdf_name_eq(gctx, obj, PDF_NAME(Link))) BUILDSTDERR: ^~~~ BUILDSTDERR: link BUILDSTDERR: fitz/fitz_wrap.c:11370:44: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (pdf_name_eq(gctx, obj, PDF_NAME(Link))) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s__showPDFpage’: BUILDSTDERR: fitz/fitz_wrap.c:11403:41: error: incompatible type for argument 1 of ‘fz_is_infinite_rect’ BUILDSTDERR: if (fz_is_infinite_rect(rrect) || fz_is_empty_rect(rrect)) BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:248:36: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_is_infinite_rect(const fz_rect *r) BUILDSTDERR: ~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:11403:68: error: incompatible type for argument 1 of ‘fz_is_empty_rect’ BUILDSTDERR: if (fz_is_infinite_rect(rrect) || fz_is_empty_rect(rrect)) BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:230:33: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_is_empty_rect(const fz_rect *r) BUILDSTDERR: ~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:11421:42: error: incompatible type for argument 1 of ‘fz_is_infinite_rect’ BUILDSTDERR: if (!fz_is_infinite_rect(rclip)) // set cropbox if clip given BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:248:36: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_is_infinite_rect(const fz_rect *r) BUILDSTDERR: ~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:11429:33: error: too few arguments to function ‘fz_bound_page’ BUILDSTDERR: fz_rect prect = fz_bound_page(gctx, self); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:56, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/document.h:472:10: note: declared here BUILDSTDERR: fz_rect *fz_bound_page(fz_context *ctx, fz_page *page, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11429:33: error: invalid initializer BUILDSTDERR: fz_rect prect = fz_bound_page(gctx, self); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11431:59: error: ‘CropBox’ undeclared (first use in this function); did you mean ‘cropbox’? BUILDSTDERR: o = pdf_dict_get(gctx, tpageref, PDF_NAME(CropBox)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: cropbox BUILDSTDERR: fitz/fitz_wrap.c:11431:50: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(gctx, tpageref, PDF_NAME(CropBox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11435:25: error: too few arguments to function ‘pdf_to_rect’ BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:180:10: note: declared here BUILDSTDERR: fz_rect *pdf_to_rect(fz_context *ctx, pdf_obj *array, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11435:23: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:11435:21: warning: statement with no effect [-Wunused-value] BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:11439:59: error: ‘MediaBox’ undeclared (first use in this function); did you mean ‘mediabox’? BUILDSTDERR: o = pdf_dict_get(gctx, tpageref, PDF_NAME(MediaBox)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: mediabox BUILDSTDERR: fitz/fitz_wrap.c:11439:50: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(gctx, tpageref, PDF_NAME(MediaBox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11443:25: error: too few arguments to function ‘pdf_to_rect’ BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:180:10: note: declared here BUILDSTDERR: fz_rect *pdf_to_rect(fz_context *ctx, pdf_obj *array, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11443:23: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:11443:21: warning: statement with no effect [-Wunused-value] BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:11469:58: error: ‘XObject’ undeclared (first use in this function); did you mean ‘PyObject’? BUILDSTDERR: pdf_dict_put_drop(gctx, subres, PDF_NAME(XObject), subres1); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: PyObject BUILDSTDERR: fitz/fitz_wrap.c:11469:49: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(gctx, subres, PDF_NAME(XObject), subres1); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:11474:55: error: incompatible type for argument 3 of ‘pdf_new_xobject’ BUILDSTDERR: xobj2 = pdf_new_xobject(gctx, pdfout, cropbox, mat, subres, res); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf/interpret.h:5, BUILDSTDERR: from /usr/include/mupdf/pdf/page.h:4, BUILDSTDERR: from /usr/include/mupdf/pdf.h:17, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/resource.h:82:10: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: pdf_obj *pdf_new_xobject(fz_context *ctx, pdf_document *doc, const fz_rect *bbox, const fz_matrix *mat); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11474:64: error: incompatible type for argument 4 of ‘pdf_new_xobject’ BUILDSTDERR: xobj2 = pdf_new_xobject(gctx, pdfout, cropbox, mat, subres, res); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf/interpret.h:5, BUILDSTDERR: from /usr/include/mupdf/pdf/page.h:4, BUILDSTDERR: from /usr/include/mupdf/pdf.h:17, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/resource.h:82:10: note: expected ‘const fz_matrix *’ {aka ‘const struct fz_matrix_s *’} but argument is of type ‘fz_matrix’ {aka ‘struct fz_matrix_s’} BUILDSTDERR: pdf_obj *pdf_new_xobject(fz_context *ctx, pdf_document *doc, const fz_rect *bbox, const fz_matrix *mat); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11474:25: error: too many arguments to function ‘pdf_new_xobject’ BUILDSTDERR: xobj2 = pdf_new_xobject(gctx, pdfout, cropbox, mat, subres, res); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf/interpret.h:5, BUILDSTDERR: from /usr/include/mupdf/pdf/page.h:4, BUILDSTDERR: from /usr/include/mupdf/pdf.h:17, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/resource.h:82:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_xobject(fz_context *ctx, pdf_document *doc, const fz_rect *bbox, const fz_matrix *mat); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11474:23: warning: assignment to ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: xobj2 = pdf_new_xobject(gctx, pdfout, cropbox, mat, subres, res); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:11484:67: error: ‘Resources’ undeclared (first use in this function); did you mean ‘resources’? BUILDSTDERR: resources = pdf_dict_get(gctx, tpageref, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: resources BUILDSTDERR: fitz/fitz_wrap.c:11484:58: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: resources = pdf_dict_get(gctx, tpageref, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11485:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: subres = pdf_dict_get(gctx, resources, PDF_NAME(XObject)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11489:51: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(gctx, resources, PDF_NAME(XObject), subres); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_insertImage’: BUILDSTDERR: fitz/fitz_wrap.c:11519:64: warning: passing argument 2 of ‘JM_CharFromBytesOrArray’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: size_t streamlen = JM_CharFromBytesOrArray(stream, &streamdata); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3697:57: note: expected ‘char **’ but argument is of type ‘unsigned char **’ BUILDSTDERR: size_t JM_CharFromBytesOrArray(PyObject *stream, char **data) BUILDSTDERR: ~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:11536:38: error: incompatible type for argument 1 of ‘fz_is_empty_rect’ BUILDSTDERR: if (fz_is_empty_rect(rect_py) || fz_is_infinite_rect(rect_py)) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:230:33: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_is_empty_rect(const fz_rect *r) BUILDSTDERR: ~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:11536:70: error: incompatible type for argument 1 of ‘fz_is_infinite_rect’ BUILDSTDERR: if (fz_is_empty_rect(rect_py) || fz_is_infinite_rect(rect_py)) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:248:36: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_is_infinite_rect(const fz_rect *r) BUILDSTDERR: ~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:11540:33: error: too few arguments to function ‘fz_bound_page’ BUILDSTDERR: fz_rect prect = fz_bound_page(gctx, self); // page rectangle BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:56, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/document.h:472:10: note: declared here BUILDSTDERR: fz_rect *fz_bound_page(fz_context *ctx, fz_page *page, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11540:33: error: invalid initializer BUILDSTDERR: fz_rect prect = fz_bound_page(gctx, self); // page rectangle BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11543:69: error: ‘CropBox’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *o = pdf_dict_get(gctx, page->obj, PDF_NAME(CropBox)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11543:60: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *o = pdf_dict_get(gctx, page->obj, PDF_NAME(CropBox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11546:25: error: too few arguments to function ‘pdf_to_rect’ BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:180:10: note: declared here BUILDSTDERR: fz_rect *pdf_to_rect(fz_context *ctx, pdf_obj *array, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11546:23: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:11546:21: warning: statement with no effect [-Wunused-value] BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:11550:60: error: ‘MediaBox’ undeclared (first use in this function) BUILDSTDERR: o = pdf_dict_get(gctx, page->obj, PDF_NAME(MediaBox)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11550:51: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(gctx, page->obj, PDF_NAME(MediaBox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11553:25: error: too few arguments to function ‘pdf_to_rect’ BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:180:10: note: declared here BUILDSTDERR: fz_rect *pdf_to_rect(fz_context *ctx, pdf_obj *array, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11553:23: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:11553:21: warning: statement with no effect [-Wunused-value] BUILDSTDERR: r = pdf_to_rect(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:11566:68: error: ‘Resources’ undeclared (first use in this function); did you mean ‘resources’? BUILDSTDERR: resources = pdf_dict_get(gctx, page->obj, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: resources BUILDSTDERR: fitz/fitz_wrap.c:11566:59: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: resources = pdf_dict_get(gctx, page->obj, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11567:65: error: ‘XObject’ undeclared (first use in this function); did you mean ‘PyObject’? BUILDSTDERR: subres = pdf_dict_get(gctx, resources, PDF_NAME(XObject)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: PyObject BUILDSTDERR: fitz/fitz_wrap.c:11567:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: subres = pdf_dict_get(gctx, resources, PDF_NAME(XObject)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11571:56: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(gctx, resources, PDF_NAME(XObject), subres); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:11523:24: warning: unused variable ‘name_len’ [-Wunused-variable] BUILDSTDERR: Py_ssize_t name_len = 0; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11522:19: warning: unused variable ‘cont’ [-Wunused-variable] BUILDSTDERR: char *cont = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:11516:24: warning: unused variable ‘res’ [-Wunused-variable] BUILDSTDERR: fz_buffer *res = NULL, *nres = NULL, *imgbuf = NULL; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c:11514:29: warning: unused variable ‘seps’ [-Wunused-variable] BUILDSTDERR: fz_separations *seps = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_insertFont’: BUILDSTDERR: fitz/fitz_wrap.c:11645:68: error: ‘Resources’ undeclared (first use in this function); did you mean ‘resources’? BUILDSTDERR: resources = pdf_dict_get(gctx, page->obj, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: resources BUILDSTDERR: fitz/fitz_wrap.c:11645:59: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: resources = pdf_dict_get(gctx, page->obj, PDF_NAME(Resources)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11646:64: error: ‘Font’ undeclared (first use in this function); did you mean ‘font’? BUILDSTDERR: fonts = pdf_dict_get(gctx, resources, PDF_NAME(Font)); BUILDSTDERR: ^~~~ BUILDSTDERR: font BUILDSTDERR: fitz/fitz_wrap.c:11646:55: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: fonts = pdf_dict_get(gctx, resources, PDF_NAME(Font)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11651:22: warning: pointer targets in assignment from ‘const unsigned char *’ to ‘const char *’ differ in signedness [-Wpointer-sign] BUILDSTDERR: data = fz_lookup_base14_font(gctx, fontname, &size); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:11654:68: warning: pointer targets in passing argument 3 of ‘fz_new_font_from_memory’ differ in signedness [-Wpointer-sign] BUILDSTDERR: font = fz_new_font_from_memory(gctx, fontname, data, size, 0, 0); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:40, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/font.h:410:10: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’ BUILDSTDERR: fz_font *fz_new_font_from_memory(fz_context *ctx, const char *name, const unsigned char *data, int len, int index, int use_glyph_bbox); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11670:68: warning: pointer targets in passing argument 3 of ‘fz_new_font_from_memory’ differ in signedness [-Wpointer-sign] BUILDSTDERR: font = fz_new_font_from_memory(gctx, NULL, data, size, idx, 0); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:40, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/font.h:410:10: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’ BUILDSTDERR: fz_font *fz_new_font_from_memory(fz_context *ctx, const char *name, const unsigned char *data, int len, int index, int use_glyph_bbox); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11699:47: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(gctx, resources, PDF_NAME(Font), fonts); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:11691:27: warning: unused variable ‘idxo’ [-Wunused-variable] BUILDSTDERR: PyObject *idxo = PyInt_FromLong((long) idx); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s__getContents’: BUILDSTDERR: fitz/fitz_wrap.c:11714:67: error: ‘Contents’ undeclared (first use in this function); did you mean ‘contents’? BUILDSTDERR: contents = pdf_dict_get(gctx, page->obj, PDF_NAME(Contents)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: contents BUILDSTDERR: fitz/fitz_wrap.c:11714:58: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: contents = pdf_dict_get(gctx, page->obj, PDF_NAME(Contents)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s__setContents’: BUILDSTDERR: fitz/fitz_wrap.c:11744:61: error: ‘Contents’ undeclared (first use in this function); did you mean ‘contents’? BUILDSTDERR: pdf_dict_put_drop(gctx, page->obj, PDF_NAME(Contents), contents); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: contents BUILDSTDERR: fitz/fitz_wrap.c:11744:52: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(gctx, page->obj, PDF_NAME(Contents), contents); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘new_fz_pixmap_s__SWIG_0’: BUILDSTDERR: fitz/fitz_wrap.c:11759:56: error: incompatible type for argument 3 of ‘fz_new_pixmap_with_bbox’ BUILDSTDERR: pm = fz_new_pixmap_with_bbox(gctx, cs, JM_irect_from_py(bbox), seps, alpha); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:35, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/pixmap.h:86:12: note: expected ‘const fz_irect *’ {aka ‘const struct fz_irect_s *’} but argument is of type ‘fz_irect’ {aka ‘struct fz_irect_s’} BUILDSTDERR: fz_pixmap *fz_new_pixmap_with_bbox(fz_context *ctx, fz_colorspace *colorspace, const fz_irect *bbox, fz_separations *seps, int alpha); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11759:20: warning: assignment to ‘fz_pixmap *’ {aka ‘struct fz_pixmap_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: pm = fz_new_pixmap_with_bbox(gctx, cs, JM_irect_from_py(bbox), seps, alpha); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘new_fz_pixmap_s__SWIG_2’: BUILDSTDERR: fitz/fitz_wrap.c:11779:43: error: incompatible type for argument 1 of ‘fz_is_infinite_irect’ BUILDSTDERR: if (!fz_is_infinite_irect(bbox)) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:261:38: note: expected ‘const fz_irect *’ {aka ‘const struct fz_irect_s *’} but argument is of type ‘fz_irect’ {aka ‘struct fz_irect_s’} BUILDSTDERR: fz_is_infinite_irect(const fz_irect *r) BUILDSTDERR: ~~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘new_fz_pixmap_s__SWIG_4’: BUILDSTDERR: fitz/fitz_wrap.c:11843:83: warning: pointer targets in passing argument 8 of ‘fz_new_pixmap_with_data’ differ in signedness [-Wpointer-sign] BUILDSTDERR: pm = fz_new_pixmap_with_data(gctx, cs, w, h, seps, alpha, stride, data); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:35, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/pixmap.h:111:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_pixmap *fz_new_pixmap_with_data(fz_context *ctx, fz_colorspace *colorspace, int w, int h, fz_separations *seps, int alpha, int stride, unsigned char *samples); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘new_fz_pixmap_s__SWIG_6’: BUILDSTDERR: fitz/fitz_wrap.c:11871:31: warning: pointer targets in passing argument 2 of ‘fz_new_buffer_from_shared_data’ differ in signedness [-Wpointer-sign] BUILDSTDERR: streamdata, size); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:69:12: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_buffer *fz_new_buffer_from_shared_data(fz_context *ctx, const unsigned char *data, size_t size); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘new_fz_pixmap_s__SWIG_7’: BUILDSTDERR: fitz/fitz_wrap.c:11895:57: error: ‘Subtype’ undeclared (first use in this function); did you mean ‘type’? BUILDSTDERR: type = pdf_dict_get(gctx, ref, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: type BUILDSTDERR: fitz/fitz_wrap.c:11895:48: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: type = pdf_dict_get(gctx, ref, PDF_NAME(Subtype)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11896:55: error: ‘Image’ undeclared (first use in this function) BUILDSTDERR: if (!pdf_name_eq(gctx, type, PDF_NAME(Image))) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11896:46: warning: passing argument 3 of ‘pdf_name_eq’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (!pdf_name_eq(gctx, type, PDF_NAME(Image))) BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:56:69: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: static inline int pdf_name_eq(fz_context *ctx, pdf_obj *a, pdf_obj *b) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_pixmap_s_clearWith__SWIG_2’: BUILDSTDERR: fitz/fitz_wrap.c:11939:64: error: incompatible type for argument 4 of ‘fz_clear_pixmap_rect_with_value’ BUILDSTDERR: fz_clear_pixmap_rect_with_value(gctx, self, value, JM_irect_from_py(bbox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:35, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/pixmap.h:247:98: note: expected ‘const fz_irect *’ {aka ‘const struct fz_irect_s *’} but argument is of type ‘fz_irect’ {aka ‘struct fz_irect_s’} BUILDSTDERR: void fz_clear_pixmap_rect_with_value(fz_context *ctx, fz_pixmap *pix, int value, const fz_irect *r); BUILDSTDERR: ~~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:11939:13: warning: statement with no effect [-Wunused-value] BUILDSTDERR: fz_clear_pixmap_rect_with_value(gctx, self, value, JM_irect_from_py(bbox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_pixmap_s_copyPixmap’: BUILDSTDERR: fitz/fitz_wrap.c:11946:54: error: incompatible type for argument 4 of ‘fz_copy_pixmap_rect’ BUILDSTDERR: fz_copy_pixmap_rect(gctx, self, src, JM_irect_from_py(bbox), NULL); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:35, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/pixmap.h:376:92: note: expected ‘const fz_irect *’ {aka ‘const struct fz_irect_s *’} but argument is of type ‘fz_irect’ {aka ‘struct fz_irect_s’} BUILDSTDERR: void fz_copy_pixmap_rect(fz_context *ctx, fz_pixmap *dest, fz_pixmap *src, const fz_irect *r, const fz_default_colorspaces *default_cs); BUILDSTDERR: ~~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:11946:17: warning: statement with no effect [-Wunused-value] BUILDSTDERR: fz_copy_pixmap_rect(gctx, self, src, JM_irect_from_py(bbox), NULL); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_pixmap_s_irect’: BUILDSTDERR: fitz/fitz_wrap.c:11961:37: error: too few arguments to function ‘fz_pixmap_bbox’ BUILDSTDERR: return JM_py_from_irect(fz_pixmap_bbox(gctx, self)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:35, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/pixmap.h:24:11: note: declared here BUILDSTDERR: fz_irect *fz_pixmap_bbox(fz_context *ctx, const fz_pixmap *pix, fz_irect *bbox); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:11961:37: error: incompatible type for argument 1 of ‘JM_py_from_irect’ BUILDSTDERR: return JM_py_from_irect(fz_pixmap_bbox(gctx, self)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3258:37: note: expected ‘fz_irect’ {aka ‘struct fz_irect_s’} but argument is of type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: PyObject *JM_py_from_irect(fz_irect r) BUILDSTDERR: ~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:11961:20: warning: returning ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} from a function with incompatible return type ‘PyObject *’ {aka ‘struct _object *’} [-Wincompatible-pointer-types] BUILDSTDERR: return JM_py_from_irect(fz_pixmap_bbox(gctx, self)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_pixmap_s_setAlpha’: BUILDSTDERR: fitz/fitz_wrap.c:11978:75: warning: passing argument 2 of ‘JM_CharFromBytesOrArray’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: data_len = (int) JM_CharFromBytesOrArray(alphavalues, &data); BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3697:57: note: expected ‘char **’ but argument is of type ‘unsigned char **’ BUILDSTDERR: size_t JM_CharFromBytesOrArray(PyObject *stream, char **data) BUILDSTDERR: ~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_pixmap_s_invertIRect’: BUILDSTDERR: fitz/fitz_wrap.c:12043:39: error: incompatible type for argument 1 of ‘fz_is_infinite_irect’ BUILDSTDERR: if (!fz_is_infinite_irect(r)) BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:261:38: note: expected ‘const fz_irect *’ {aka ‘const struct fz_irect_s *’} but argument is of type ‘fz_irect’ {aka ‘struct fz_irect_s’} BUILDSTDERR: fz_is_infinite_irect(const fz_irect *r) BUILDSTDERR: ~~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:12044:51: error: incompatible type for argument 3 of ‘fz_invert_pixmap_rect’ BUILDSTDERR: fz_invert_pixmap_rect(gctx, self, r); BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:35, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/pixmap.h:277:79: note: expected ‘const fz_irect *’ {aka ‘const struct fz_irect_s *’} but argument is of type ‘fz_irect’ {aka ‘struct fz_irect_s’} BUILDSTDERR: void fz_invert_pixmap_rect(fz_context *ctx, fz_pixmap *image, const fz_irect *rect); BUILDSTDERR: ~~~~~~~~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:12044:17: warning: statement with no effect [-Wunused-value] BUILDSTDERR: fz_invert_pixmap_rect(gctx, self, r); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘new_DeviceWrapper__SWIG_0’: BUILDSTDERR: fitz/fitz_wrap.c:12086:42: error: incompatible type for argument 1 of ‘fz_is_infinite_irect’ BUILDSTDERR: if (fz_is_infinite_irect(bbox)) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:261:38: note: expected ‘const fz_irect *’ {aka ‘const struct fz_irect_s *’} but argument is of type ‘fz_irect’ {aka ‘struct fz_irect_s’} BUILDSTDERR: fz_is_infinite_irect(const fz_irect *r) BUILDSTDERR: ~~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:12087:59: error: incompatible type for argument 2 of ‘fz_new_draw_device’ BUILDSTDERR: dw->device = fz_new_draw_device(gctx, fz_identity, pm); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:46, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/device.h:329:12: note: expected ‘const fz_matrix *’ {aka ‘const struct fz_matrix_s *’} but argument is of type ‘fz_matrix’ {aka ‘const struct fz_matrix_s’} BUILDSTDERR: fz_device *fz_new_draw_device(fz_context *ctx, const fz_matrix *transform, fz_pixmap *dest); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12087:32: warning: assignment to ‘fz_device *’ {aka ‘struct fz_device_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: dw->device = fz_new_draw_device(gctx, fz_identity, pm); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12089:69: error: incompatible type for argument 2 of ‘fz_new_draw_device_with_bbox’ BUILDSTDERR: dw->device = fz_new_draw_device_with_bbox(gctx, fz_identity, pm, &bbox); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:46, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/device.h:345:12: note: expected ‘const fz_matrix *’ {aka ‘const struct fz_matrix_s *’} but argument is of type ‘fz_matrix’ {aka ‘const struct fz_matrix_s’} BUILDSTDERR: fz_device *fz_new_draw_device_with_bbox(fz_context *ctx, const fz_matrix *transform, fz_pixmap *dest, const fz_irect *clip); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12089:32: warning: assignment to ‘fz_device *’ {aka ‘struct fz_device_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: dw->device = fz_new_draw_device_with_bbox(gctx, fz_identity, pm, &bbox); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s_rect’: BUILDSTDERR: fitz/fitz_wrap.c:12142:25: error: too few arguments to function ‘fz_bound_annot’ BUILDSTDERR: fz_rect r = fz_bound_annot(gctx, self); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:57, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/annotation.h:41:10: note: declared here BUILDSTDERR: fz_rect *fz_bound_annot(fz_context *ctx, fz_annot *annot, fz_rect *rect); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12142:25: error: invalid initializer BUILDSTDERR: fz_rect r = fz_bound_annot(gctx, self); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s__getAP’: BUILDSTDERR: fitz/fitz_wrap.c:12157:72: error: ‘AP’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *ap = pdf_dict_getl(gctx, annot->obj, PDF_NAME(AP), BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:12158:56: error: ‘N’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(N), NULL); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s__setAP’: BUILDSTDERR: fitz/fitz_wrap.c:12174:75: error: ‘AP’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *apobj = pdf_dict_getl(gctx, annot->obj, PDF_NAME(AP), BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:12175:56: error: ‘N’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(N), NULL); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12182:60: warning: pointer targets in passing argument 2 of ‘fz_new_buffer_from_copied_data’ differ in signedness [-Wpointer-sign] BUILDSTDERR: res = fz_new_buffer_from_copied_data(gctx, c, strlen(c)); BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:75:1: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_new_buffer_from_copied_data(fz_context *ctx, const unsigned char *data, size_t size); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12186:36: warning: implicit declaration of function ‘pdf_dict_get_rect’; did you mean ‘pdf_dict_put_rect’? [-Wimplicit-function-declaration] BUILDSTDERR: fz_rect bbox = pdf_dict_get_rect(gctx, annot->obj, PDF_NAME(Rect)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: pdf_dict_put_rect BUILDSTDERR: fitz/fitz_wrap.c:12186:81: error: ‘Rect’ undeclared (first use in this function); did you mean ‘rect’? BUILDSTDERR: fz_rect bbox = pdf_dict_get_rect(gctx, annot->obj, PDF_NAME(Rect)); BUILDSTDERR: ^~~~ BUILDSTDERR: rect BUILDSTDERR: fitz/fitz_wrap.c:12186:36: error: invalid initializer BUILDSTDERR: fz_rect bbox = pdf_dict_get_rect(gctx, annot->obj, PDF_NAME(Rect)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12187:61: error: ‘BBox’ undeclared (first use in this function); did you mean ‘bbox’? BUILDSTDERR: pdf_dict_put_rect(gctx, apobj, PDF_NAME(BBox), bbox); BUILDSTDERR: ^~~~ BUILDSTDERR: bbox BUILDSTDERR: fitz/fitz_wrap.c:12187:52: warning: passing argument 3 of ‘pdf_dict_put_rect’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_rect(gctx, apobj, PDF_NAME(BBox), bbox); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:139:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_rect(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const fz_rect *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12187:68: error: incompatible type for argument 4 of ‘pdf_dict_put_rect’ BUILDSTDERR: pdf_dict_put_rect(gctx, apobj, PDF_NAME(BBox), bbox); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:139:85: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: void pdf_dict_put_rect(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const fz_rect *x); BUILDSTDERR: ~~~~~~~~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:12187:21: warning: statement with no effect [-Wunused-value] BUILDSTDERR: pdf_dict_put_rect(gctx, apobj, PDF_NAME(BBox), bbox); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12180:24: warning: unused variable ‘len’ [-Wunused-variable] BUILDSTDERR: size_t len = JM_CharFromBytesOrArray(ap, &c); BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s_setRect’: BUILDSTDERR: fitz/fitz_wrap.c:12201:49: error: incompatible type for argument 3 of ‘pdf_set_annot_rect’ BUILDSTDERR: pdf_set_annot_rect(gctx, annot, JM_rect_from_py(rect)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:23, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/annot.h:178:75: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: void pdf_set_annot_rect(fz_context *ctx, pdf_annot *annot, const fz_rect *rect); BUILDSTDERR: ~~~~~~~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:12201:17: warning: statement with no effect [-Wunused-value] BUILDSTDERR: pdf_set_annot_rect(gctx, annot, JM_rect_from_py(rect)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s_vertices’: BUILDSTDERR: fitz/fitz_wrap.c:12217:66: error: ‘Vertices’ undeclared (first use in this function); did you mean ‘futimes’? BUILDSTDERR: pdf_obj *o = pdf_dict_get(gctx, annot->obj, PDF_NAME(Vertices)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: futimes BUILDSTDERR: fitz/fitz_wrap.c:12217:57: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *o = pdf_dict_get(gctx, annot->obj, PDF_NAME(Vertices)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12218:65: error: ‘L’ undeclared (first use in this function) BUILDSTDERR: if (!o) o = pdf_dict_get(gctx, annot->obj, PDF_NAME(L)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12218:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (!o) o = pdf_dict_get(gctx, annot->obj, PDF_NAME(L)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12219:65: error: ‘QuadPoints’ undeclared (first use in this function) BUILDSTDERR: if (!o) o = pdf_dict_get(gctx, annot->obj, PDF_NAME(QuadPoints)); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12219:56: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: if (!o) o = pdf_dict_get(gctx, annot->obj, PDF_NAME(QuadPoints)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12234:40: error: incompatible type for argument 1 of ‘fz_transform_point’ BUILDSTDERR: fz_transform_point(point, page_ctm); BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:600:11: note: expected ‘fz_point * restrict’ {aka ‘struct fz_point_s * restrict’} but argument is of type ‘fz_point’ {aka ‘struct fz_point_s’} BUILDSTDERR: fz_point *fz_transform_point(fz_point *restrict point, const fz_matrix *restrict transform); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12234:47: error: incompatible type for argument 2 of ‘fz_transform_point’ BUILDSTDERR: fz_transform_point(point, page_ctm); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:600:11: note: expected ‘const fz_matrix * restrict’ {aka ‘const struct fz_matrix_s * restrict’} but argument is of type ‘fz_matrix’ {aka ‘struct fz_matrix_s’} BUILDSTDERR: fz_point *fz_transform_point(fz_point *restrict point, const fz_matrix *restrict transform); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12234:21: warning: statement with no effect [-Wunused-value] BUILDSTDERR: fz_transform_point(point, page_ctm); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12240:69: error: ‘InkList’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *il_o = pdf_dict_get(gctx, annot->obj, PDF_NAME(InkList)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12240:60: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *il_o = pdf_dict_get(gctx, annot->obj, PDF_NAME(InkList)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12243:29: error: too few arguments to function ‘pdf_bound_page’ BUILDSTDERR: fz_rect prect = pdf_bound_page(gctx, annot->page); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:17, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/page.h:61:10: note: declared here BUILDSTDERR: fz_rect *pdf_bound_page(fz_context *ctx, pdf_page *page, fz_rect *); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12243:29: error: invalid initializer BUILDSTDERR: fz_rect prect = pdf_bound_page(gctx, annot->page); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s_update’: BUILDSTDERR: fitz/fitz_wrap.c:12275:65: error: ‘Rotate’ undeclared (first use in this function); did you mean ‘rotate’? BUILDSTDERR: pdf_dict_put_int(gctx, annot->obj, PDF_NAME(Rotate), rotate); BUILDSTDERR: ^~~~~~ BUILDSTDERR: rotate BUILDSTDERR: fitz/fitz_wrap.c:12275:56: warning: passing argument 3 of ‘pdf_dict_put_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_int(gctx, annot->obj, PDF_NAME(Rotate), rotate); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:134:64: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_int(fz_context *ctx, pdf_obj *dict, pdf_obj *key, int64_t x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12285:68: error: ‘AP’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *ap = pdf_dict_getl(gctx, annot->obj, PDF_NAME(AP), BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:12286:50: error: ‘N’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(N), NULL); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12294:67: error: ‘CA’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *ca = pdf_dict_get(gctx, annot->obj, PDF_NAME(CA)); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:12294:58: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *ca = pdf_dict_get(gctx, annot->obj, PDF_NAME(CA)); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12299:38: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(gctx, alp0, PDF_NAME(CA), ca); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12300:38: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(gctx, alp0, PDF_NAME(ca), ca); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12303:57: error: ‘Resources’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_putl_drop(gctx, ap, extg, PDF_NAME(Resources), BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12304:41: error: ‘ExtGState’ undeclared (first use in this function); did you mean ‘setstate’? BUILDSTDERR: PDF_NAME(ExtGState), NULL); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: setstate BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s_opacity’: BUILDSTDERR: fitz/fitz_wrap.c:12402:67: error: ‘CA’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *ca = pdf_dict_get(gctx, annot->obj, PDF_NAME(CA)); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:12402:58: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *ca = pdf_dict_get(gctx, annot->obj, PDF_NAME(CA)); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s_fileInfo’: BUILDSTDERR: fitz/fitz_wrap.c:12507:67: error: ‘FS’ undeclared (first use in this function) BUILDSTDERR: stream = pdf_dict_getl(gctx, annot->obj, PDF_NAME(FS), BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:12508:45: error: ‘EF’ undeclared (first use in this function); did you mean ‘EOF’? BUILDSTDERR: PDF_NAME(EF), PDF_NAME(F), NULL); BUILDSTDERR: ^~ BUILDSTDERR: EOF BUILDSTDERR: fitz/fitz_wrap.c:12508:59: error: ‘F’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(EF), PDF_NAME(F), NULL); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12513:49: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: fs = pdf_dict_get(gctx, annot->obj, PDF_NAME(FS)); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12515:49: error: ‘UF’ undeclared (first use in this function); did you mean ‘OF’? BUILDSTDERR: o = pdf_dict_get(gctx, fs, PDF_NAME(UF)); BUILDSTDERR: ^~ BUILDSTDERR: OF BUILDSTDERR: fitz/fitz_wrap.c:12515:40: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(gctx, fs, PDF_NAME(UF)); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12516:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: if (o) filename = (char *) pdf_to_text_string(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12519:44: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(gctx, fs, PDF_NAME(F)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12520:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: if (o) filename = (char *) pdf_to_text_string(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12523:49: error: ‘Desc’ undeclared (first use in this function); did you mean ‘desc’? BUILDSTDERR: o = pdf_dict_get(gctx, fs, PDF_NAME(Desc)); BUILDSTDERR: ^~~~ BUILDSTDERR: desc BUILDSTDERR: fitz/fitz_wrap.c:12523:40: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(gctx, fs, PDF_NAME(Desc)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12524:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: if (o) desc = (char *) pdf_to_text_string(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12526:53: error: ‘Length’ undeclared (first use in this function); did you mean ‘length’? BUILDSTDERR: o = pdf_dict_get(gctx, stream, PDF_NAME(Length)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: length BUILDSTDERR: fitz/fitz_wrap.c:12526:44: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(gctx, stream, PDF_NAME(Length)); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12529:54: error: ‘Params’ undeclared (first use in this function); did you mean ‘_frame’? BUILDSTDERR: o = pdf_dict_getl(gctx, stream, PDF_NAME(Params), BUILDSTDERR: ^~~~~~ BUILDSTDERR: _frame BUILDSTDERR: fitz/fitz_wrap.c:12530:42: error: ‘Size’ undeclared (first use in this function); did you mean ‘size’? BUILDSTDERR: PDF_NAME(Size), NULL); BUILDSTDERR: ^~~~ BUILDSTDERR: size BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s_fileGet’: BUILDSTDERR: fitz/fitz_wrap.c:12551:67: error: ‘FS’ undeclared (first use in this function) BUILDSTDERR: stream = pdf_dict_getl(gctx, annot->obj, PDF_NAME(FS), BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:12552:45: error: ‘EF’ undeclared (first use in this function); did you mean ‘EOF’? BUILDSTDERR: PDF_NAME(EF), PDF_NAME(F), NULL); BUILDSTDERR: ^~ BUILDSTDERR: EOF BUILDSTDERR: fitz/fitz_wrap.c:12552:59: error: ‘F’ undeclared (first use in this function); did you mean ‘OF’? BUILDSTDERR: PDF_NAME(EF), PDF_NAME(F), NULL); BUILDSTDERR: ^ BUILDSTDERR: OF BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s_fileUpd’: BUILDSTDERR: fitz/fitz_wrap.c:12575:67: error: ‘FS’ undeclared (first use in this function) BUILDSTDERR: stream = pdf_dict_getl(gctx, annot->obj, PDF_NAME(FS), BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:12576:45: error: ‘EF’ undeclared (first use in this function); did you mean ‘EOF’? BUILDSTDERR: PDF_NAME(EF), PDF_NAME(F), NULL); BUILDSTDERR: ^~ BUILDSTDERR: EOF BUILDSTDERR: fitz/fitz_wrap.c:12576:59: error: ‘F’ undeclared (first use in this function); did you mean ‘OF’? BUILDSTDERR: PDF_NAME(EF), PDF_NAME(F), NULL); BUILDSTDERR: ^ BUILDSTDERR: OF BUILDSTDERR: fitz/fitz_wrap.c:12580:53: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: fs = pdf_dict_get(gctx, annot->obj, PDF_NAME(FS)); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12586:52: warning: passing argument 2 of ‘pdf_new_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_obj *s = pdf_new_int(gctx, size); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘int64_t’ {aka ‘long int’} BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12586:34: error: too few arguments to function ‘pdf_new_int’ BUILDSTDERR: pdf_obj *s = pdf_new_int(gctx, size); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:20:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12586:34: warning: initialization of ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: pdf_obj *s = pdf_new_int(gctx, size); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12587:57: error: ‘Filter’ undeclared (first use in this function); did you mean ‘setter’? BUILDSTDERR: pdf_dict_put(gctx, stream, PDF_NAME(Filter), BUILDSTDERR: ^~~~~~ BUILDSTDERR: setter BUILDSTDERR: fitz/fitz_wrap.c:12588:43: error: ‘FlateDecode’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12587:48: warning: passing argument 3 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put(gctx, stream, PDF_NAME(Filter), BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:60: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12588:34: warning: passing argument 4 of ‘pdf_dict_put’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(FlateDecode)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:120:74: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12591:49: error: ‘Params’ undeclared (first use in this function); did you mean ‘_frame’? BUILDSTDERR: PDF_NAME(Params), PDF_NAME(Size), NULL); BUILDSTDERR: ^~~~~~ BUILDSTDERR: _frame BUILDSTDERR: fitz/fitz_wrap.c:12591:67: error: ‘Size’ undeclared (first use in this function); did you mean ‘size’? BUILDSTDERR: PDF_NAME(Params), PDF_NAME(Size), NULL); BUILDSTDERR: ^~~~ BUILDSTDERR: size BUILDSTDERR: fitz/fitz_wrap.c:12592:47: warning: pointer targets in passing argument 2 of ‘JM_deflatebuf’ differ in signedness [-Wpointer-sign] BUILDSTDERR: res = JM_deflatebuf(gctx, data, size); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:3568:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_buffer *JM_deflatebuf(fz_context *ctx, unsigned char *p, size_t n) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12598:60: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(gctx, stream, PDF_NAME(F), filename); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12599:56: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(gctx, fs, PDF_NAME(F), filename); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12604:69: error: ‘UF’ undeclared (first use in this function); did you mean ‘OF’? BUILDSTDERR: pdf_dict_put_text_string(gctx, stream, PDF_NAME(UF), filename); BUILDSTDERR: ^~ BUILDSTDERR: OF BUILDSTDERR: fitz/fitz_wrap.c:12604:60: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(gctx, stream, PDF_NAME(UF), filename); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12605:56: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(gctx, fs, PDF_NAME(UF), filename); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12610:69: error: ‘Desc’ undeclared (first use in this function); did you mean ‘desc’? BUILDSTDERR: pdf_dict_put_text_string(gctx, stream, PDF_NAME(Desc), desc); BUILDSTDERR: ^~~~ BUILDSTDERR: desc BUILDSTDERR: fitz/fitz_wrap.c:12610:60: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(gctx, stream, PDF_NAME(Desc), desc); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12611:56: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_text_string(gctx, fs, PDF_NAME(Desc), desc); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s_info’: BUILDSTDERR: fitz/fitz_wrap.c:12628:26: warning: implicit declaration of function ‘pdf_annot_contents’; did you mean ‘pdf_set_annot_contents’? [-Wimplicit-function-declaration] BUILDSTDERR: c = (char *) pdf_annot_contents(gctx, annot); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: pdf_set_annot_contents BUILDSTDERR: fitz/fitz_wrap.c:12628:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: c = (char *) pdf_annot_contents(gctx, annot); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12631:57: error: ‘Name’ undeclared (first use in this function); did you mean ‘time’? BUILDSTDERR: o = pdf_dict_get(gctx, annot->obj, PDF_NAME(Name)); BUILDSTDERR: ^~~~ BUILDSTDERR: time BUILDSTDERR: fitz/fitz_wrap.c:12631:48: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(gctx, annot->obj, PDF_NAME(Name)); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12636:57: error: ‘T’ undeclared (first use in this function) BUILDSTDERR: o = pdf_dict_get(gctx, annot->obj, PDF_NAME(T)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12636:48: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(gctx, annot->obj, PDF_NAME(T)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12637:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: c = (char *) pdf_to_text_string(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12642:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: c = (char *) pdf_to_text_string(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12646:57: error: ‘M’ undeclared (first use in this function) BUILDSTDERR: o = pdf_dict_get(gctx, annot->obj, PDF_NAME(M)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12646:48: warning: passing argument 3 of ‘pdf_dict_get’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: o = pdf_dict_get(gctx, annot->obj, PDF_NAME(M)); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:114:10: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: pdf_obj *pdf_dict_get(fz_context *ctx, pdf_obj *dict, pdf_obj *key); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12647:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: c = (char *) pdf_to_text_string(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12652:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: c = (char *) pdf_to_text_string(gctx, o); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s_setInfo’: BUILDSTDERR: fitz/fitz_wrap.c:12695:59: error: ‘CreationDate’ undeclared (first use in this function); did you mean ‘retainpage’? BUILDSTDERR: PDF_NAME(CreationDate), uc); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: retainpage BUILDSTDERR: fitz/fitz_wrap.c:12695:50: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(CreationDate), uc); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12704:59: error: ‘M’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(M), uc); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12704:50: warning: passing argument 3 of ‘pdf_dict_put_text_string’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: PDF_NAME(M), uc); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:138:72: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_text_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, const char *x); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12713:70: warning: passing argument 2 of ‘pdf_new_text_string’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: pdf_new_text_string(gctx, uc)); BUILDSTDERR: ^~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:24:10: note: expected ‘pdf_document *’ {aka ‘struct pdf_document_s *’} but argument is of type ‘char *’ BUILDSTDERR: pdf_obj *pdf_new_text_string(fz_context *ctx, pdf_document *doc, const char *s); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12713:44: error: too few arguments to function ‘pdf_new_text_string’ BUILDSTDERR: pdf_new_text_string(gctx, uc)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:24:10: note: declared here BUILDSTDERR: pdf_obj *pdf_new_text_string(fz_context *ctx, pdf_document *doc, const char *s); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12713:44: warning: passing argument 4 of ‘pdf_dict_puts_drop’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: pdf_new_text_string(gctx, uc)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:124:83: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: void pdf_dict_puts_drop(fz_context *ctx, pdf_obj *dict, const char *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s_getPixmap’: BUILDSTDERR: fitz/fitz_wrap.c:12769:60: error: incompatible type for argument 3 of ‘fz_new_pixmap_from_annot’ BUILDSTDERR: pix = fz_new_pixmap_from_annot(gctx, self, ctm, cs, alpha); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:59, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/util.h:36:12: note: expected ‘const fz_matrix *’ {aka ‘const struct fz_matrix_s *’} but argument is of type ‘fz_matrix’ {aka ‘struct fz_matrix_s’} BUILDSTDERR: fz_pixmap *fz_new_pixmap_from_annot(fz_context *ctx, fz_annot *annot, const fz_matrix *ctm, fz_colorspace *cs, int alpha); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12769:21: warning: assignment to ‘fz_pixmap *’ {aka ‘struct fz_pixmap_s *’} from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: pix = fz_new_pixmap_from_annot(gctx, self, ctm, cs, alpha); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s__updateWidget’: BUILDSTDERR: fitz/fitz_wrap.c:12775:27: warning: unused variable ‘pdf’ [-Wunused-variable] BUILDSTDERR: pdf_document *pdf = pdf_get_bound_document(gctx, annot->obj); BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s__getWidget’: BUILDSTDERR: fitz/fitz_wrap.c:12801:48: error: ‘BS’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(BS), PDF_NAME(W), NULL)); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:12801:62: error: ‘W’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(BS), PDF_NAME(W), NULL)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12807:62: error: ‘D’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(BS), PDF_NAME(D), NULL); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12820:104: error: ‘MaxLen’ undeclared (first use in this function) BUILDSTDERR: int text_maxlen = pdf_to_int(gctx, pdf_dict_get_inheritable(gctx, annot->obj, PDF_NAME(MaxLen))); BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12820:52: warning: passing argument 2 of ‘pdf_to_int’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: int text_maxlen = pdf_to_int(gctx, pdf_dict_get_inheritable(gctx, annot->obj, PDF_NAME(MaxLen))); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:90:42: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: int pdf_to_int(fz_context *ctx, pdf_obj *obj); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12830:57: error: ‘MK’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(MK), PDF_NAME(BG), NULL); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:12830:71: error: ‘BG’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(MK), PDF_NAME(BG), NULL); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:12843:89: error: ‘BC’ undeclared (first use in this function) BUILDSTDERR: pdf_obj *bccol = pdf_dict_getl(gctx, annot->obj, PDF_NAME(MK), PDF_NAME(BC), NULL); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:12858:70: error: ‘DA’ undeclared (first use in this function) BUILDSTDERR: annot->obj, PDF_NAME(DA))); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:12857:49: warning: passing argument 2 of ‘pdf_to_str_buf’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: char *da = pdf_to_str_buf(gctx, pdf_dict_get_inheritable(gctx, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: annot->obj, PDF_NAME(DA))); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:94:7: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: char *pdf_to_str_buf(fz_context *ctx, pdf_obj *obj); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12862:68: error: ‘CA’ undeclared (first use in this function) BUILDSTDERR: PDF_NAME(MK), PDF_NAME(CA), NULL); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_link_s__setColors’: BUILDSTDERR: fitz/fitz_wrap.c:12935:60: error: ‘C’ undeclared (first use in this function) BUILDSTDERR: pdf_dict_put_drop(gctx, link_obj, PDF_NAME(C), arr); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:12935:51: warning: passing argument 3 of ‘pdf_dict_put_drop’ makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: pdf_dict_put_drop(gctx, link_obj, PDF_NAME(C), arr); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/pdf.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3079: BUILDSTDERR: /usr/include/mupdf/pdf/object.h:121:65: note: expected ‘pdf_obj *’ {aka ‘struct pdf_obj_s *’} but argument is of type ‘int’ BUILDSTDERR: void pdf_dict_put_drop(fz_context *ctx, pdf_obj *dict, pdf_obj *key, pdf_obj *val); BUILDSTDERR: ~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘new_fz_display_list_s’: BUILDSTDERR: fitz/fitz_wrap.c:12963:48: error: incompatible type for argument 2 of ‘fz_new_display_list’ BUILDSTDERR: dl = fz_new_display_list(gctx, JM_rect_from_py(mediabox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:47, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/display-list.h:35:18: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_display_list *fz_new_display_list(fz_context *ctx, const fz_rect *mediabox); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12963:20: warning: assignment to ‘struct fz_display_list_s *’ from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: dl = fz_new_display_list(gctx, JM_rect_from_py(mediabox)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_display_list_s_run’: BUILDSTDERR: fitz/fitz_wrap.c:12971:21: error: incompatible type for argument 4 of ‘fz_run_display_list’ BUILDSTDERR: JM_matrix_from_py(m), JM_rect_from_py(area), NULL); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:47, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/display-list.h:76:99: note: expected ‘const fz_matrix *’ {aka ‘const struct fz_matrix_s *’} but argument is of type ‘fz_matrix’ {aka ‘struct fz_matrix_s’} BUILDSTDERR: void fz_run_display_list(fz_context *ctx, fz_display_list *list, fz_device *dev, const fz_matrix *ctm, const fz_rect *area, fz_cookie *cookie); BUILDSTDERR: ~~~~~~~~~~~~~~~~~^~~ BUILDSTDERR: fitz/fitz_wrap.c:12971:43: error: incompatible type for argument 5 of ‘fz_run_display_list’ BUILDSTDERR: JM_matrix_from_py(m), JM_rect_from_py(area), NULL); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:47, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/display-list.h:76:119: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: void fz_run_display_list(fz_context *ctx, fz_display_list *list, fz_device *dev, const fz_matrix *ctm, const fz_rect *area, fz_cookie *cookie); BUILDSTDERR: ~~~~~~~~~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:12970:17: warning: statement with no effect [-Wunused-value] BUILDSTDERR: fz_run_display_list(gctx, self, dw->device, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_display_list_s_rect’: BUILDSTDERR: fitz/fitz_wrap.c:12977:36: error: too few arguments to function ‘fz_bound_display_list’ BUILDSTDERR: return JM_py_from_rect(fz_bound_display_list(gctx, self)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:47, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/display-list.h:92:10: note: declared here BUILDSTDERR: fz_rect *fz_bound_display_list(fz_context *ctx, fz_display_list *list, fz_rect *bounds); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:12977:36: error: incompatible type for argument 1 of ‘JM_py_from_rect’ BUILDSTDERR: return JM_py_from_rect(fz_bound_display_list(gctx, self)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3223:35: note: expected ‘fz_rect’ {aka ‘struct fz_rect_s’} but argument is of type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: PyObject *JM_py_from_rect(fz_rect r) BUILDSTDERR: ~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:12977:20: warning: returning ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} from a function with incompatible return type ‘PyObject *’ {aka ‘struct _object *’} [-Wincompatible-pointer-types] BUILDSTDERR: return JM_py_from_rect(fz_bound_display_list(gctx, self)); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘new_fz_stext_page_s’: BUILDSTDERR: fitz/fitz_wrap.c:13007:46: error: incompatible type for argument 2 of ‘fz_new_stext_page’ BUILDSTDERR: tp = fz_new_stext_page(gctx, JM_rect_from_py(mediabox)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:48, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/structured-text.h:117:16: note: expected ‘const fz_rect *’ {aka ‘const struct fz_rect_s *’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_stext_page *fz_new_stext_page(fz_context *ctx, const fz_rect *mediabox); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13007:20: warning: assignment to ‘struct fz_stext_page_s *’ from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: tp = fz_new_stext_page(gctx, JM_rect_from_py(mediabox)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_stext_page_s_search’: BUILDSTDERR: fitz/fitz_wrap.c:13017:13: error: unknown type name ‘fz_quad’; did you mean ‘fz_shade’? BUILDSTDERR: fz_quad *result = NULL; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fz_shade BUILDSTDERR: In file included from /usr/include/python3.7m/Python.h:69, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: fitz/fitz_wrap.c:13021:31: error: ‘fz_quad’ undeclared (first use in this function); did you mean ‘fz_quadto’? BUILDSTDERR: result = JM_Alloc(fz_quad, (mymax+1)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: /usr/include/python3.7m/pymem.h:140:44: note: in definition of macro ‘PyMem_New’ BUILDSTDERR: ( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \ BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:13021:22: note: in expansion of macro ‘JM_Alloc’ BUILDSTDERR: result = JM_Alloc(fz_quad, (mymax+1)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: /usr/include/python3.7m/pymem.h:140:35: error: invalid operands to binary / (have ‘long int’ and ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’}) BUILDSTDERR: ( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \ BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3049:29: note: in expansion of macro ‘PyMem_New’ BUILDSTDERR: #define JM_Alloc(type, len) PyMem_New(type, len) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13021:22: note: in expansion of macro ‘JM_Alloc’ BUILDSTDERR: result = JM_Alloc(fz_quad, (mymax+1)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: /usr/include/python3.7m/pymem.h:140:18: warning: comparison between pointer and integer BUILDSTDERR: ( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \ BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3049:29: note: in expansion of macro ‘PyMem_New’ BUILDSTDERR: #define JM_Alloc(type, len) PyMem_New(type, len) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13021:22: note: in expansion of macro ‘JM_Alloc’ BUILDSTDERR: result = JM_Alloc(fz_quad, (mymax+1)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: /usr/include/python3.7m/pymem.h:141:18: error: expected expression before ‘)’ token BUILDSTDERR: ( (type *) PyMem_Malloc((n) * sizeof(type)) ) ) BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3049:29: note: in expansion of macro ‘PyMem_New’ BUILDSTDERR: #define JM_Alloc(type, len) PyMem_New(type, len) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13021:22: note: in expansion of macro ‘JM_Alloc’ BUILDSTDERR: result = JM_Alloc(fz_quad, (mymax+1)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: /usr/include/python3.7m/pymem.h:141:17: error: invalid operands to binary * (have ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} and ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’}) BUILDSTDERR: ( (type *) PyMem_Malloc((n) * sizeof(type)) ) ) BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3049:29: note: in expansion of macro ‘PyMem_New’ BUILDSTDERR: #define JM_Alloc(type, len) PyMem_New(type, len) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13021:22: note: in expansion of macro ‘JM_Alloc’ BUILDSTDERR: result = JM_Alloc(fz_quad, (mymax+1)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13021:20: warning: assignment to ‘int *’ from incompatible pointer type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} [-Wincompatible-pointer-types] BUILDSTDERR: result = JM_Alloc(fz_quad, (mymax+1)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:13023:66: warning: passing argument 4 of ‘fz_search_stext_page’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: int count = fz_search_stext_page(gctx, self, needle, result, hit_max); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:48, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/structured-text.h:151:93: note: expected ‘fz_rect *’ {aka ‘struct fz_rect_s *’} but argument is of type ‘int *’ BUILDSTDERR: int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, fz_rect *hit_bbox, int hit_max); BUILDSTDERR: ~~~~~~~~~^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13028:49: error: dereferencing pointer to incomplete type ‘struct fz_quad_s’ BUILDSTDERR: quad->ul.x, quad->ul.y, BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:13028:49: error: request for member ‘ul’ in something not a structure or union BUILDSTDERR: fitz/fitz_wrap.c:13028:53: error: request for member ‘x’ in something not a structure or union BUILDSTDERR: quad->ul.x, quad->ul.y, BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:13028:61: error: request for member ‘ul’ in something not a structure or union BUILDSTDERR: quad->ul.x, quad->ul.y, BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:13028:65: error: request for member ‘y’ in something not a structure or union BUILDSTDERR: quad->ul.x, quad->ul.y, BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:13029:49: error: request for member ‘ur’ in something not a structure or union BUILDSTDERR: quad->ur.x, quad->ur.y, BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:13029:53: error: request for member ‘x’ in something not a structure or union BUILDSTDERR: quad->ur.x, quad->ur.y, BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:13029:61: error: request for member ‘ur’ in something not a structure or union BUILDSTDERR: quad->ur.x, quad->ur.y, BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:13029:65: error: request for member ‘y’ in something not a structure or union BUILDSTDERR: quad->ur.x, quad->ur.y, BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:13030:49: error: request for member ‘ll’ in something not a structure or union BUILDSTDERR: quad->ll.x, quad->ll.y, BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:13030:53: error: request for member ‘x’ in something not a structure or union BUILDSTDERR: quad->ll.x, quad->ll.y, BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:13030:61: error: request for member ‘ll’ in something not a structure or union BUILDSTDERR: quad->ll.x, quad->ll.y, BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:13030:65: error: request for member ‘y’ in something not a structure or union BUILDSTDERR: quad->ll.x, quad->ll.y, BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:13031:49: error: request for member ‘lr’ in something not a structure or union BUILDSTDERR: quad->lr.x, quad->lr.y)); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:13031:53: error: request for member ‘x’ in something not a structure or union BUILDSTDERR: quad->lr.x, quad->lr.y)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:13031:61: error: request for member ‘lr’ in something not a structure or union BUILDSTDERR: quad->lr.x, quad->lr.y)); BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c:13031:65: error: request for member ‘y’ in something not a structure or union BUILDSTDERR: quad->lr.x, quad->lr.y)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:13032:22: error: invalid use of undefined type ‘struct fz_quad_s’ BUILDSTDERR: quad += 1; BUILDSTDERR: ^~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_stext_page_s__extractTextBlocks_AsList’: BUILDSTDERR: fitz/fitz_wrap.c:13071:58: error: incompatible type for argument 1 of ‘fz_union_rect’ BUILDSTDERR: linerect = fz_union_rect(linerect, JM_char_bbox(line, ch)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:510:10: note: expected ‘fz_rect * restrict’ {aka ‘struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_union_rect(fz_rect *restrict a, const fz_rect *restrict b); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13071:68: error: incompatible type for argument 2 of ‘fz_union_rect’ BUILDSTDERR: linerect = fz_union_rect(linerect, JM_char_bbox(line, ch)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:510:10: note: expected ‘const fz_rect * restrict’ {aka ‘const struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_union_rect(fz_rect *restrict a, const fz_rect *restrict b); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13071:42: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: linerect = fz_union_rect(linerect, JM_char_bbox(line, ch)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:13071:33: warning: statement with no effect [-Wunused-value] BUILDSTDERR: linerect = fz_union_rect(linerect, JM_char_bbox(line, ch)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13073:55: error: incompatible type for argument 1 of ‘fz_union_rect’ BUILDSTDERR: blockrect = fz_union_rect(blockrect, linerect); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:510:10: note: expected ‘fz_rect * restrict’ {aka ‘struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_union_rect(fz_rect *restrict a, const fz_rect *restrict b); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13073:66: error: incompatible type for argument 2 of ‘fz_union_rect’ BUILDSTDERR: blockrect = fz_union_rect(blockrect, linerect); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:510:10: note: expected ‘const fz_rect * restrict’ {aka ‘const struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_union_rect(fz_rect *restrict a, const fz_rect *restrict b); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13073:39: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: blockrect = fz_union_rect(blockrect, linerect); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:13073:29: warning: statement with no effect [-Wunused-value] BUILDSTDERR: blockrect = fz_union_rect(blockrect, linerect); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13089:47: error: incompatible type for argument 1 of ‘fz_union_rect’ BUILDSTDERR: blockrect = fz_union_rect(blockrect, block->bbox); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:510:10: note: expected ‘fz_rect * restrict’ {aka ‘struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_union_rect(fz_rect *restrict a, const fz_rect *restrict b); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13089:63: error: incompatible type for argument 2 of ‘fz_union_rect’ BUILDSTDERR: blockrect = fz_union_rect(blockrect, block->bbox); BUILDSTDERR: ~~~~~^~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:510:10: note: expected ‘const fz_rect * restrict’ {aka ‘const struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_union_rect(fz_rect *restrict a, const fz_rect *restrict b); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13089:31: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: blockrect = fz_union_rect(blockrect, block->bbox); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:13089:21: warning: statement with no effect [-Wunused-value] BUILDSTDERR: blockrect = fz_union_rect(blockrect, block->bbox); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_stext_page_s__extractTextWords_AsList’: BUILDSTDERR: fitz/fitz_wrap.c:13141:47: error: incompatible type for argument 1 of ‘fz_union_rect’ BUILDSTDERR: wbbox = fz_union_rect(wbbox, JM_char_bbox(line, ch)); BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:510:10: note: expected ‘fz_rect * restrict’ {aka ‘struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_union_rect(fz_rect *restrict a, const fz_rect *restrict b); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13141:54: error: incompatible type for argument 2 of ‘fz_union_rect’ BUILDSTDERR: wbbox = fz_union_rect(wbbox, JM_char_bbox(line, ch)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:510:10: note: expected ‘const fz_rect * restrict’ {aka ‘const struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_union_rect(fz_rect *restrict a, const fz_rect *restrict b); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13141:31: error: incompatible types when assigning to type ‘fz_rect’ {aka ‘struct fz_rect_s’} from type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: wbbox = fz_union_rect(wbbox, JM_char_bbox(line, ch)); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:13141:25: warning: statement with no effect [-Wunused-value] BUILDSTDERR: wbbox = fz_union_rect(wbbox, JM_char_bbox(line, ch)); BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘Tools_transform_rect’: BUILDSTDERR: fitz/fitz_wrap.c:13364:54: error: incompatible type for argument 1 of ‘fz_transform_rect’ BUILDSTDERR: return JM_py_from_rect(fz_transform_rect(JM_rect_from_py(rect), JM_matrix_from_py(matrix))); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:629:10: note: expected ‘fz_rect * restrict’ {aka ‘struct fz_rect_s * restrict’} but argument is of type ‘fz_rect’ {aka ‘struct fz_rect_s’} BUILDSTDERR: fz_rect *fz_transform_rect(fz_rect *restrict rect, const fz_matrix *restrict transform); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13364:77: error: incompatible type for argument 2 of ‘fz_transform_rect’ BUILDSTDERR: return JM_py_from_rect(fz_transform_rect(JM_rect_from_py(rect), JM_matrix_from_py(matrix))); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/context.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:3078: BUILDSTDERR: /usr/include/mupdf/fitz/geometry.h:629:10: note: expected ‘const fz_matrix * restrict’ {aka ‘const struct fz_matrix_s * restrict’} but argument is of type ‘fz_matrix’ {aka ‘struct fz_matrix_s’} BUILDSTDERR: fz_rect *fz_transform_rect(fz_rect *restrict rect, const fz_matrix *restrict transform); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:13364:36: error: incompatible type for argument 1 of ‘JM_py_from_rect’ BUILDSTDERR: return JM_py_from_rect(fz_transform_rect(JM_rect_from_py(rect), JM_matrix_from_py(matrix))); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3223:35: note: expected ‘fz_rect’ {aka ‘struct fz_rect_s’} but argument is of type ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} BUILDSTDERR: PyObject *JM_py_from_rect(fz_rect r) BUILDSTDERR: ~~~~~~~~^ BUILDSTDERR: fitz/fitz_wrap.c:13364:20: warning: returning ‘pdf_obj **’ {aka ‘struct pdf_obj_s **’} from a function with incompatible return type ‘PyObject *’ {aka ‘struct _object *’} [-Wincompatible-pointer-types] BUILDSTDERR: return JM_py_from_rect(fz_transform_rect(JM_rect_from_py(rect), JM_matrix_from_py(matrix))); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: At top level: BUILDSTDERR: fitz/fitz_wrap.c:5368:1: warning: ‘lpr’ defined but not used [-Wunused-function] BUILDSTDERR: lpr(fz_context *ctx, pdf_document *doc, pdf_obj *node, int depth, int page) BUILDSTDERR: ^~~ BUILDSTDERR: error: command 'gcc' failed with exit status 1 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.MCadEA (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.MCadEA (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python-PyMuPDF.spec