[MacPorts] #59100: ffmpeg @4.2.1+gpl2: error: unknown type name 'OPJ_SIZE_T' (was: ffmpeg 4.2.1_0+gpl2 & ffmpeg-4.2.1_1+gpl2 & 4.2.1_2+gpl2 Failed to build)

MacPorts noreply at macports.org
Sat Jan 11 02:07:42 UTC 2020


#59100: ffmpeg @4.2.1+gpl2: error: unknown type name 'OPJ_SIZE_T'
---------------------+----------------------
  Reporter:  Niarff  |      Owner:  dbevans
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.6.2
Resolution:          |   Keywords:
      Port:  ffmpeg  |
---------------------+----------------------

Comment (by ryandesign):

 The relevant part of the log appears to be:

 {{{
 :info:build libavcodec/libopenjpegdec.c:105:8: error: unknown type name
 'OPJ_SIZE_T'
 :info:build static OPJ_SIZE_T stream_read(void *out_buffer, OPJ_SIZE_T
 nb_bytes, void *user_data)
 :info:build        ^
 :info:build libavcodec/libopenjpegdec.c:105:49: error: unknown type name
 'OPJ_SIZE_T'
 :info:build static OPJ_SIZE_T stream_read(void *out_buffer, OPJ_SIZE_T
 nb_bytes, void *user_data)
 :info:build                                                 ^
 :info:build libavcodec/libopenjpegdec.c:111:17: error: use of undeclared
 identifier 'OPJ_SIZE_T'
 :info:build         return (OPJ_SIZE_T)-1;
 :info:build                 ^
 :info:build libavcodec/libopenjpegdec.c:122:8: error: unknown type name
 'OPJ_OFF_T'
 :info:build static OPJ_OFF_T stream_skip(OPJ_OFF_T nb_bytes, void
 *user_data)
 :info:build        ^
 :info:build libavcodec/libopenjpegdec.c:122:30: error: unknown type name
 'OPJ_OFF_T'
 :info:build static OPJ_OFF_T stream_skip(OPJ_OFF_T nb_bytes, void
 *user_data)
 :info:build                              ^
 :info:build libavcodec/libopenjpegdec.c:127:21: error: use of undeclared
 identifier 'OPJ_SIZE_T'
 :info:build             return (OPJ_SIZE_T)-1;
 :info:build                     ^
 :info:build libavcodec/libopenjpegdec.c:136:21: error: use of undeclared
 identifier 'OPJ_SIZE_T'
 :info:build             return (OPJ_SIZE_T)-1;
 :info:build                     ^
 :info:build libavcodec/libopenjpegdec.c:147:8: error: unknown type name
 'OPJ_BOOL'
 :info:build static OPJ_BOOL stream_seek(OPJ_OFF_T nb_bytes, void
 *user_data)
 :info:build        ^
 :info:build libavcodec/libopenjpegdec.c:147:29: error: unknown type name
 'OPJ_OFF_T'
 :info:build static OPJ_BOOL stream_seek(OPJ_OFF_T nb_bytes, void
 *user_data)
 :info:build                             ^
 :info:build libavcodec/libopenjpegdec.c:200:10: error: use of undeclared
 identifier 'OPJ_CLRSPC_SRGB'; did you mean 'CLRSPC_SRGB'?
 :info:build     case OPJ_CLRSPC_SRGB:
 :info:build          ^~~~~~~~~~~~~~~
 :info:build          CLRSPC_SRGB
 :info:build /opt/local/include/openjpeg.h:133:2: note: 'CLRSPC_SRGB'
 declared here
 :info:build         CLRSPC_SRGB = 1,                /**< sRGB */
 :info:build         ^
 :info:build libavcodec/libopenjpegdec.c:204:10: error: use of undeclared
 identifier 'OPJ_CLRSPC_GRAY'; did you mean 'CLRSPC_GRAY'?
 :info:build     case OPJ_CLRSPC_GRAY:
 :info:build          ^~~~~~~~~~~~~~~
 :info:build          CLRSPC_GRAY
 :info:build /opt/local/include/openjpeg.h:134:2: note: 'CLRSPC_GRAY'
 declared here
 :info:build         CLRSPC_GRAY = 2,                /**< grayscale */
 :info:build         ^
 :info:build libavcodec/libopenjpegdec.c:208:10: error: use of undeclared
 identifier 'OPJ_CLRSPC_SYCC'; did you mean 'CLRSPC_SYCC'?
 :info:build     case OPJ_CLRSPC_SYCC:
 :info:build          ^~~~~~~~~~~~~~~
 :info:build          CLRSPC_SYCC
 :info:build /opt/local/include/openjpeg.h:135:2: note: 'CLRSPC_SYCC'
 declared here
 :info:build         CLRSPC_SYCC = 3                 /**< YUV */
 :info:build         ^
 :info:build libavcodec/libopenjpegdec.c:336:5: error: unknown type name
 'opj_codec_t'; did you mean 'opj_poc_t'?
 :info:build     opj_codec_t *dec = NULL;
 :info:build     ^~~~~~~~~~~
 :info:build     opj_poc_t
 :info:build /opt/local/include/openjpeg.h:225:3: note: 'opj_poc_t'
 declared here
 :info:build } opj_poc_t;
 :info:build   ^
 :info:build libavcodec/libopenjpegdec.c:337:5: error: use of undeclared
 identifier 'opj_stream_t'
 :info:build     opj_stream_t *stream = NULL;
 :info:build     ^
 :info:build libavcodec/libopenjpegdec.c:337:19: error: use of undeclared
 identifier 'stream'
 :info:build     opj_stream_t *stream = NULL;
 :info:build                   ^
 :info:build libavcodec/libopenjpegdec.c:345:37: error: use of undeclared
 identifier 'OPJ_CODEC_JP2'; did you mean 'CODEC_JP2'?
 :info:build         dec = opj_create_decompress(OPJ_CODEC_JP2);
 :info:build                                     ^~~~~~~~~~~~~
 :info:build                                     CODEC_JP2
 :info:build /opt/local/include/openjpeg.h:149:2: note: 'CODEC_JP2'
 declared here
 :info:build         CODEC_JP2  = 2          /**< JPEG-2000 file format :
 read/write */
 :info:build         ^
 :info:build libavcodec/libopenjpegdec.c:345:13: warning: incompatible
 pointer types assigning to 'opj_poc_t *' (aka 'struct opj_poc *') from
 'opj_dinfo_t *' (aka 'struct opj_dinfo *') [-Wincompatible-pointer-types]
 :info:build         dec = opj_create_decompress(OPJ_CODEC_JP2);
 :info:build             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build libavcodec/libopenjpegdec.c:351:37: error: use of undeclared
 identifier 'OPJ_CODEC_J2K'; did you mean 'CODEC_J2K'?
 :info:build         dec = opj_create_decompress(OPJ_CODEC_J2K);
 :info:build                                     ^~~~~~~~~~~~~
 :info:build                                     CODEC_J2K
 :info:build /opt/local/include/openjpeg.h:147:2: note: 'CODEC_J2K'
 declared here
 :info:build         CODEC_J2K  = 0,         /**< JPEG-2000 codestream :
 read/write */
 :info:build         ^
 :info:build libavcodec/libopenjpegdec.c:351:13: warning: incompatible
 pointer types assigning to 'opj_poc_t *' (aka 'struct opj_poc *') from
 'opj_dinfo_t *' (aka 'struct opj_dinfo *') [-Wincompatible-pointer-types]
 :info:build         dec = opj_create_decompress(OPJ_CODEC_J2K);
 :info:build             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build libavcodec/libopenjpegdec.c:360:10: error: implicit
 declaration of function 'opj_set_error_handler' is invalid in C99 [-Werror
 ,-Wimplicit-function-declaration]
 :info:build     if (!opj_set_error_handler(dec, error_callback, avctx) ||
 :info:build          ^
 :info:build libavcodec/libopenjpegdec.c:360:10: warning: this function
 declaration is not a prototype [-Wstrict-prototypes]
 :info:build libavcodec/libopenjpegdec.c:361:10: error: implicit
 declaration of function 'opj_set_warning_handler' is invalid in C99
 [-Werror,-Wimplicit-function-declaration]
 :info:build         !opj_set_warning_handler(dec, warning_callback, avctx)
 ||
 :info:build          ^
 :info:build libavcodec/libopenjpegdec.c:361:10: note: did you mean
 'opj_set_error_handler'?
 :info:build libavcodec/libopenjpegdec.c:360:10: note:
 'opj_set_error_handler' declared here
 :info:build     if (!opj_set_error_handler(dec, error_callback, avctx) ||
 :info:build          ^
 :info:build libavcodec/libopenjpegdec.c:361:10: warning: this function
 declaration is not a prototype [-Wstrict-prototypes]
 :info:build         !opj_set_warning_handler(dec, warning_callback, avctx)
 ||
 :info:build          ^
 :info:build fatal error: too many errors emitted, stopping now [-ferror-
 limit=]
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/59100#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list