Re: problem building libavcodec59-5.0-shlibs on MacOS 10.11 (El Cap) / Xcode 8.2.1

Hanspeter Niederstrasser <[email protected]>
Newsgroups gmane.os.apple.fink.general
Organization Snaggled Works
Message-ID <[email protected]>
On 4/26/22 5:20 PM, Scott Hannahs via Fink-users wrote:
> Got this error trying to build ffmpeg.  Looks like it is trying to use “metal” under an old OS that doesn’t have that?  Just a wild guess from my looking at the errors.
> 
> -Scott
> 
> 
> gcc -I. -Isrc/ -I/sw/include -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/sw/src/fink.build/libavcodec59-5.0-shlibs-5.0-1/ffmpeg-5.0/compat/dispatch_semaphore -DPIC -DZLIB_CONST -DHAVE_AV_CONFIG_H -DBUILDING_avfilter -fno-stack-check -I/sw/lib/libspeex1/include -I/sw/include -I/opt/X11/include -std=c11 -Werror=partial-availability -fomit-frame-pointer -fPIC -I/opt/X11/include -I/opt/X11/include -I/opt/X11/include -pthread -I/sw/include -I/sw/include -I/sw/include/libxml2 -I/sw/include -I/sw/include/freetype2 -I/sw/include -I/sw/include/bs2b -I/sw/include -I/sw/include -I/sw/include/freetype2 -I/sw/include/fribidi -I/sw/include -I/sw/include -I/sw/include -I/sw/include/openjpeg-2.4 -I/sw/include -I/sw/include/opus -I/sw/include/opus -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/include -I/sw/lib/libcdio-2.1/include -I/opt/X11/include -I/opt/X11/include -I/opt/X11/include -I/opt/X11/include -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -Wno-char-subscripts -O3 -fno-math-errno -fno-signed-zeros -mstack-alignment=16 -Qunused-arguments -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -I/sw/include/SDL2 -D_THREAD_SAFE   -MMD -MF libavfilter/lswsutils.d -MT libavfilter/lswsutils.o -c -o libavfilter/lswsutils.o src/libavfilter/lswsutils.c
> gcc -I. -Isrc/ -I/sw/include -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/sw/src/fink.build/libavcodec59-5.0-shlibs-5.0-1/ffmpeg-5.0/compat/dispatch_semaphore -DPIC -DZLIB_CONST -DHAVE_AV_CONFIG_H -DBUILDING_avfilter -fno-stack-check -I/sw/lib/libspeex1/include -I/sw/include -I/opt/X11/include -std=c11 -Werror=partial-availability -fomit-frame-pointer -fPIC -I/opt/X11/include -I/opt/X11/include -I/opt/X11/include -pthread -I/sw/include -I/sw/include -I/sw/in                                       ^
> src/libavfilter/metal/utils.h:57:48: error: expected function body after function declarator
>                                                 API_AVAILABLE(macos(10.11), ios(8.0));
>                                                 ^
> src/libavfilter/metal/utils.m:22:6: error: no previous prototype for function 'ff_metal_compute_encoder_dispatch' [-Werror,-Wmissing-prototypes]
> void ff_metal_compute_encoder_dispatch(id<MTLDevice> device,
>       ^
> src/libavfilter/metal/utils.m:50:19: error: no previous prototype for function 'ff_metal_texture_from_pixbuf' [-Werror,-Wmissing-prototypes]
> CVMetalTextureRef ff_metal_texture_from_pixbuf(void *ctx,
>                    ^
> 4 errors generated.
> make: *** [/sw/src/fink.build/libavcodec59-5.0-shlibs-5.0-1/ffmpeg-5.0/ffbuild/common.mak:84: libavfilter/metal/utils.o] Error 1
> make: Leaving directory '/sw/src/fink.build/libavcodec59-5.0-shlibs-5.0-1/ffmpeg-5.0/finkbuild'
> ### execution of /tmp/fink.0NYUC failed, exit code 2
> ### execution of /tmp/fink.uyzHF failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-libavcodec59-5.0-shlibs-5.0-1
> (Reading database ... 309978 files and directories currently installed.)
> Removing fink-buildlock-libavcodec59-5.0-shlibs-5.0-1 ...
> Failed: phase compiling: libavcodec59-5.0-shlibs-5.0-1 failed

Can you selfupdate and try libavcodec59-5.0-shlibs-5.0.1-1 ? I don't 
know if that was fixed there but might as well try.

Hanspeter

-- 
Más ágil que una tortuga... más fuerte que un ratón... más noble que una 
lechuga


_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.