Bug 697184

Summary: pdf_drop_js is missing in pdf-js-none.c
Product: MuPDF Reporter: fedir3
Component: mupdfAssignee: MuPDF bugs <mupdf-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: robin.watts
Priority: P4    
Version: unspecified   
Hardware: Other   
OS: All   
Customer: Word Size: ---
Attachments: fixed version of pdf-js-none.c

Description fedir3 2016-10-02 09:38:38 UTC
Created attachment 12984 [details]
fixed version of pdf-js-none.c

pdf-js-none.c implements dummy functions from javascript.h but misses the pdf_drop_js function.

When compiling mupdf with HAVE_MUJS := no, the compilation fails because of pdf-xref.c using an undefined reference to `pdf_drop_js'

adding the missing dummy function solves the issue.
see attached fix
Comment 1 Robin Watts 2016-10-05 10:33:54 UTC
In the latest version, pdf-js.c has both js and no-js versions, controlled by the FZ_ENABLE_JS define.