Opened 18 months ago

Last modified 14 months ago

#59100 assigned defect

ffmpeg @4.2.1+gpl2: error: unknown type name 'OPJ_SIZE_T'

Reported by: Niarff Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: ffmpeg

Description (last modified by Niarff)

Some errors when compile ffmpeg under MacOSX 10.14, MacPorts 2.6.0. Same problems with MacPorts 2.5.4 Errors seems to be related to : libavcodec/libopenjpegdec.c.

main.log attached.

Attachments (2)

main.log (2.8 MB) - added by Niarff 18 months ago.
main.log
main.2.log (2.8 MB) - added by Niarff 17 months ago.

Change History (9)

Changed 18 months ago by Niarff

Attachment: main.log added

main.log

comment:1 Changed 18 months ago by Niarff

Description: modified (diff)

comment:2 Changed 18 months ago by Niarff

Owner: set to jeremyhu
Status: newassigned

comment:3 Changed 18 months ago by mf2k (Frank Schima)

Cc: dbevans removed
Owner: changed from jeremyhu to dbevans

comment:4 Changed 17 months ago by Niarff

Summary: ffmpeg 4.2.1_0+gpl2 Failed to buildffmpeg 4.2.1_0+gpl2 & ffmpeg-4.2.1_1+gpl2 Failed to build
Version: 2.6.02.6.1

Same errors with MacPorts 2.6.1 and ffmpeg-4.2.1_1+gpl2 :(

new main.log attached. Any ideas ?

Changed 17 months ago by Niarff

Attachment: main.2.log added

comment:5 Changed 17 months ago by Niarff

Summary: ffmpeg 4.2.1_0+gpl2 & ffmpeg-4.2.1_1+gpl2 Failed to buildffmpeg 4.2.1_0+gpl2 & ffmpeg-4.2.1_1+gpl2 & 4.2.1_2+gpl2 Failed to build
Version: 2.6.12.6.2

comment:6 Changed 17 months ago by Niarff

Same errors with MacPorts 2.6.2 and 4.2.1_2+gpl2 ....

comment:7 Changed 14 months ago by ryandesign (Ryan Schmidt)

Summary: ffmpeg 4.2.1_0+gpl2 & ffmpeg-4.2.1_1+gpl2 & 4.2.1_2+gpl2 Failed to buildffmpeg @4.2.1+gpl2: error: unknown type name 'OPJ_SIZE_T'

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=]
Note: See TracTickets for help on using tickets.