[MacPorts] #55746: ffmpeg-devel at 20180118: fails to build on 10.9

MacPorts noreply at macports.org
Wed Jan 24 17:25:30 UTC 2018


#55746: ffmpeg-devel at 20180118: fails to build on 10.9
--------------------+--------------------------
 Reporter:  Ionic   |      Owner:  dbevans
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.4.99
 Keywords:          |       Port:  ffmpeg-devel
--------------------+--------------------------
 {{{
 warning: unknown warning option '-Werror=partial-availability'; did you
 mean '-Werror=availability'? [-Wunknown-warning-option]
 warning: unknown warning option '-Wno-bool-operation'; did you mean '-Wno-
 bool-conversion'? [-Wunknown-warning-option]
 warning: unknown warning option '-Werror=partial-availability'; did you
 mean '-Werror=availability'? [-Wunknown-warning-option]
 warning: unknown warning option '-Wno-bool-operation'; did you mean '-Wno-
 bool-conversion'? [-Wunknown-warning-option]
 libavcodec/videotoolboxenc.c:44:70: error: expected ')'
                                            const uint8_t * _Nullable
 *parameterSetPointerOut,
                                                                      ^
 libavcodec/videotoolboxenc.c:42:43: note: to match this '('
 typedef OSStatus (*getParameterSetAtIndex)(CMFormatDescriptionRef
 videoDesc,
                                           ^
 libavcodec/videotoolboxenc.c:412:40: error: too many arguments to function
 call, expected 3, have 6
                                        NULL,
                                        ^~~~~
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/include/stddef.h:77:16:
 note: expanded from macro 'NULL'
 #  define NULL ((void*)0)
                ^
 libavcodec/videotoolboxenc.c:427:44: error: too many arguments to function
 call, expected 3, have 6
                                            &ps_size,
                                            ^~~~~~~~~
 libavcodec/videotoolboxenc.c:468:40: error: too many arguments to function
 call, expected 3, have 6
                                        NULL,
                                        ^~~~~
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/include/stddef.h:77:16:
 note: expanded from macro 'NULL'
 #  define NULL ((void*)0)
                ^
 libavcodec/videotoolboxenc.c:486:44: error: too many arguments to function
 call, expected 3, have 6
                                            &ps_size,
                                            ^~~~~~~~~
 libavcodec/videotoolboxenc.c:602:40: error: too many arguments to function
 call, expected 3, have 6
                                        NULL,
                                        ^~~~~
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/include/stddef.h:77:16:
 note: expanded from macro 'NULL'
 #  define NULL ((void*)0)
                ^
 libavcodec/videotoolboxenc.c:1287:35: warning: incompatible pointer types
 assigning to 'getParameterSetAtIndex' (aka 'OSStatus
 (*)(CMFormatDescriptionRef, size_t, const uint8_t *)') from 'OSStatus
 (CMFormatDescriptionRef, size_t, const uint8_t **, size_t *, size_t *, int
 *)' [-Wincompatible-pointer-types]
         vtctx->get_param_set_func =
 CMVideoFormatDescriptionGetH264ParameterSetAtIndex;
                                   ^
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 3 warnings and 6 errors generated.
 gmake: *** [ffbuild/common.mak:60: libavcodec/videotoolboxenc.o] Error 1
 gmake: *** Waiting for unfinished jobs....
 2 warnings generated.
 }}}


 The issue is theoretically easy to fix by leaving out the `_Nullable`
 attribute, which is only supported by newer `clang` versions. I'll figure
 out what the earliest OS X version to support that is by compiling test
 code with different `clang` versions and checking against the Xcode
 versions table.

--
Ticket URL: <https://trac.macports.org/ticket/55746>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list