mupdf.c will not build as written. It contains two function calls with the wrong number of variables: fz_new_pixmap_with_data has six but expects four, and fz_execute_display_list has three but expects four. SPECULATIVE CAUSES fz_new_pixmap_with_data's third and fourth parameters seem to be a width and a height, and the bad call seems to be passing x and y position and then width and height. fz_execute_display_list expects a bounding box as its fourth parameter, and an object called bbox is present by the bad call. It may be enough to insert this as the fourth parameter.
Fixed now. Thanks.