Bug 695442 - MuPDF fails to build against OpenJPEG 2.1
Summary: MuPDF fails to build against OpenJPEG 2.1
Status: RESOLVED WONTFIX
Alias: None
Product: MuPDF
Classification: Unclassified
Component: fitz (show other bugs)
Version: 1.5
Hardware: PC Linux
: P4 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-24 19:54 UTC by Anthony Ryan
Modified: 2015-03-31 10:56 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Ryan 2014-08-24 19:54:53 UTC
After updating openjpeg to 2.1, I am receiving the following error from gcc 4.9. It looks like this has happened before with the 2.0 update, so it seems reasonable to assume the API has changed again for 2.1.


In file included from /usr/include/openjpeg-2.1/opj_stdint.h:34:0,
                 from /usr/include/openjpeg-2.1/openjpeg.h:115,
                 from source/fitz/load-jpx.c:11:
/usr/include/openjpeg-2.1/opj_config.h:2:0: warning: "OPJ_HAVE_STDINT_H" redefined
 #define OPJ_HAVE_STDINT_H   1
 ^
source/fitz/load-jpx.c:8:0: note: this is the location of the previous definition
 #define OPJ_HAVE_STDINT_H
 ^
source/fitz/load-jpx.c: In function ‘fz_load_jpx’:
source/fitz/load-jpx.c:119:2: error: too few arguments to function ‘opj_stream_set_user_data’
  opj_stream_set_user_data(stream, &sb);
  ^
In file included from source/fitz/load-jpx.c:11:0:
/usr/include/openjpeg-2.1/openjpeg.h:1154:27: note: declared here
 OPJ_API void OPJ_CALLCONV opj_stream_set_user_data (opj_stream_t* p_stream, void * p_data, opj_stream_free_user_data_fn p_function);
                           ^
Makefile:151: recipe for target 'build/debug/fitz/load-jpx.o' failed
make: *** [build/debug/fitz/load-jpx.o] Error 1
make: *** Waiting for unfinished jobs....
Comment 1 Robin Watts 2015-03-31 10:56:59 UTC
We supply a bug fixed version of OpenJPEG. Until all our bugfixes make it into the released version of OpenJPEG we will not be updating our code to use the released version.

Use our version.

I have just checked the openjpeg svn, and as of revision 2997, our fixes are not there.