graphics/ImageMagick: coders/jp2.c fails to compile
Schuendehuette, Matthias
matthias.schuendehuette at siemens.com
Wed Jul 16 11:24:37 UTC 2014
Hello,
I' m trying to upgrade ImageMagick to ImageMagick-6.8.9.4_1,1 but coders/jp2.c fails to compile.
I did already a reinstall of 'openjpeg-2.1.0' and 'openjpeg15-1.5.2' but that didn't change nothing.
Sure, I could deactivate the JPEG2000-support, but that's one of the default options AFAIK.
The error messages are as follows (output of STDERR of the 'make' command):
******************************************************************
coders/jp2.c:197: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JP2ReadHandler'
coders/jp2.c:212: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JP2SeekHandler'
coders/jp2.c:221: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JP2SkipHandler'
coders/jp2.c:240: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JP2WriteHandler'
coders/jp2.c: In function 'ReadJP2Image':
coders/jp2.c:267: error: 'opj_codec_t' undeclared (first use in this function)
coders/jp2.c:267: error: (Each undeclared identifier is reported only once
coders/jp2.c:267: error: for each function it appears in.)
coders/jp2.c:268: error: 'jp2_codec' undeclared (first use in this function)
coders/jp2.c:270: error: 'opj_codestream_index_t' undeclared (first use in this function)
coders/jp2.c:271: error: 'codestream_index' undeclared (first use in this function)
coders/jp2.c:271: error: expected expression before ')' token
coders/jp2.c:279: error: 'opj_stream_t' undeclared (first use in this function)
coders/jp2.c:280: error: 'jp2_stream' undeclared (first use in this function)
coders/jp2.c:318: error: 'OPJ_CODEC_JPT' undeclared (first use in this function)
coders/jp2.c:321: error: 'OPJ_CODEC_J2K' undeclared (first use in this function)
coders/jp2.c:323: error: 'OPJ_CODEC_JP2' undeclared (first use in this function)
coders/jp2.c:324: warning: implicit declaration of function 'opj_set_warning_handler'
coders/jp2.c:325: warning: implicit declaration of function 'opj_set_error_handler'
coders/jp2.c:333: error: void value not ignored as it ought to be
coders/jp2.c:335: warning: implicit declaration of function 'opj_destroy_codec'
coders/jp2.c:338: warning: implicit declaration of function 'opj_stream_create'
coders/jp2.c:338: error: 'OPJ_J2K_STREAM_CHUNK_SIZE' undeclared (first use in this function)
coders/jp2.c:339: warning: implicit declaration of function 'opj_stream_set_read_function'
coders/jp2.c:339: error: 'JP2ReadHandler' undeclared (first use in this function)
coders/jp2.c:340: warning: implicit declaration of function 'opj_stream_set_write_function'
coders/jp2.c:340: error: 'JP2WriteHandler' undeclared (first use in this function)
coders/jp2.c:341: warning: implicit declaration of function 'opj_stream_set_seek_function'
coders/jp2.c:341: error: 'JP2SeekHandler' undeclared (first use in this function)
coders/jp2.c:342: warning: implicit declaration of function 'opj_stream_set_skip_function'
coders/jp2.c:342: error: 'JP2SkipHandler' undeclared (first use in this function)
coders/jp2.c:343: warning: implicit declaration of function 'opj_stream_set_user_data'
coders/jp2.c:344: warning: implicit declaration of function 'opj_stream_set_user_data_length'
coders/jp2.c:345: warning: implicit declaration of function 'opj_read_header'
coders/jp2.c:347: warning: implicit declaration of function 'opj_stream_destroy'
coders/jp2.c:356: warning: implicit declaration of function 'opj_set_decode_area'
coders/jp2.c:368: warning: implicit declaration of function 'opj_get_decoded_tile'
coders/jp2.c:372: error: too many arguments to function 'opj_decode'
coders/jp2.c:372: warning: assignment makes integer from pointer without a cast
coders/jp2.c:374: warning: implicit declaration of function 'opj_end_decompress'
coders/jp2.c:493: warning: implicit declaration of function 'opj_destroy_cstr_index'
coders/jp2.c: In function 'CinemaProfileCompliance':
coders/jp2.c:683: error: 'OPJ_CPRL' undeclared (first use in this function)
coders/jp2.c:693: error: 'OPJ_CINEMA2K_24' undeclared (first use in this function)
coders/jp2.c:694: error: 'OPJ_CINEMA2K' undeclared (first use in this function)
coders/jp2.c:705: error: 'OPJ_CINEMA4K_24' undeclared (first use in this function)
coders/jp2.c:706: error: 'OPJ_CINEMA4K' undeclared (first use in this function)
coders/jp2.c: In function 'WriteJP2Image':
coders/jp2.c:747: error: 'opj_codec_t' undeclared (first use in this function)
coders/jp2.c:748: error: 'jp2_codec' undeclared (first use in this function)
coders/jp2.c:762: error: 'opj_stream_t' undeclared (first use in this function)
coders/jp2.c:763: error: 'jp2_stream' undeclared (first use in this function)
coders/jp2.c:854: error: 'OPJ_LRCP' undeclared (first use in this function)
coders/jp2.c:856: error: 'OPJ_RLCP' undeclared (first use in this function)
coders/jp2.c:858: error: 'OPJ_RPCL' undeclared (first use in this function)
coders/jp2.c:860: error: 'OPJ_PCRL' undeclared (first use in this function)
coders/jp2.c:862: error: 'OPJ_CPRL' undeclared (first use in this function)
coders/jp2.c:894: error: 'OPJ_CLRSPC_SRGB' undeclared (first use in this function)
coders/jp2.c:897: error: 'OPJ_CLRSPC_SYCC' undeclared (first use in this function)
coders/jp2.c:906: error: 'OPJ_CLRSPC_GRAY' undeclared (first use in this function)
coders/jp2.c:1012: error: 'OPJ_CODEC_JPT' undeclared (first use in this function)
coders/jp2.c:1015: error: 'OPJ_CODEC_J2K' undeclared (first use in this function)
coders/jp2.c:1017: error: 'OPJ_CODEC_JP2' undeclared (first use in this function)
coders/jp2.c:1021: error: 'OPJ_J2K_STREAM_CHUNK_SIZE' undeclared (first use in this function)
coders/jp2.c:1022: error: 'JP2ReadHandler' undeclared (first use in this function)
coders/jp2.c:1023: error: 'JP2WriteHandler' undeclared (first use in this function)
coders/jp2.c:1024: error: 'JP2SeekHandler' undeclared (first use in this function)
coders/jp2.c:1025: error: 'JP2SkipHandler' undeclared (first use in this function)
coders/jp2.c:1027: error: expected expression before ')' token
coders/jp2.c:1028: error: too few arguments to function 'ThrowMagickException'
coders/jp2.c:1029: warning: implicit declaration of function 'opj_start_compress'
coders/jp2.c:1032: error: too few arguments to function 'opj_encode'
coders/jp2.c:1033: warning: implicit declaration of function 'opj_end_compress'
gmake[1]: *** [coders/magick_libMagickCore_6_Q16_la-jp2.lo] Fehler 1
gmake[1]: *** Warte auf noch nicht beendete Prozesse...
gmake: *** [all] Fehler 2
******************************************************************
Is there any recommendation what to do next?
with best regards
Matthias Schündehütte
More information about the freebsd-ports-bugs
mailing list