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

MacPorts noreply at macports.org
Tue Aug 28 05:31:10 UTC 2018


#55746: ffmpeg-devel at 20180118: fails to build on 10.9
---------------------------+---------------------
  Reporter:  Ionic         |      Owner:  dbevans
      Type:  defect        |     Status:  closed
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.4.99
Resolution:  fixed         |   Keywords:
      Port:  ffmpeg-devel  |
---------------------------+---------------------

Comment (by pineapplemachine):

 I am currently encountering an identical error on OSX 10.9 with Xcode 6.2
 while attempting to compile ffmpeg 4.0.2.

 {{{
 CC      libavcodec/videotoolbox.o
 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]
 2 warnings generated.
 CC      libavcodec/videotoolboxenc.o
 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:1284: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.
 make: *** [libavcodec/videotoolboxenc.o] Error 1
 }}}

 Information about my clang installation:

 {{{
 sophie:ffmpeg-4.0.2 pineapple$ clang --version
 Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
 Target: x86_64-apple-darwin13.4.0
 Thread model: posix
 }}}

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


More information about the macports-tickets mailing list