[MacPorts] #40581: gpac build error
MacPorts
noreply at macports.org
Tue Sep 24 13:47:20 PDT 2013
#40581: gpac build error
-------------------------------+--------------------------------
Reporter: macsforever2000@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.0
Keywords: | Port: gpac
-------------------------------+--------------------------------
I'm seeing an error trying to build gpac. I'm not sure if it's due to
ffmpeg or my recent update of Xcode to version 5.0. I'm Cc'ing the
maintainers of ffmpeg for possible comment.
Error is:
{{{
:info:build cc -I/opt/local/include -O3 -arch x86_64 -Wall -fno-strict-
aliasing -Wno-pointer-sign -fPIC -DPIC -fvisibility="hidden"
-DGPAC_HAVE_CONFIG_H
-I"/opt/local/var/macports/build/_opt_mports_trunk_dports_multimedia_gpac/gpac/work/gpac"
-Wno-deprecated-declarations
-I"/opt/local/var/macports/build/_opt_mports_trunk_dports_multimedia_gpac/gpac/work/gpac/include"
-I/opt/local/include -c -o ffmpeg_decode.o ffmpeg_decode.c
:info:build In file included from ffmpeg_decode.c:25:
:info:build ./ffmpeg_in.h:120:17: error: use of undeclared identifier
'AVCODEC_MAX_AUDIO_FRAME_SIZE'
:info:build char audio_buf[AVCODEC_MAX_AUDIO_FRAME_SIZE];
:info:build ^
:info:build ffmpeg_decode.c:172:11: warning: implicit declaration of
function 'avcodec_alloc_context' is invalid in C99 [-Wimplicit-function-
declaration]
:info:build *ctx = avcodec_alloc_context();
:info:build ^
:info:build ffmpeg_decode.c:172:9: warning: incompatible integer to
pointer conversion assigning to 'AVCodecContext *' (aka 'struct
AVCodecContext *') from 'int' [-Wint-conversion]
:info:build *ctx = avcodec_alloc_context();
:info:build ^ ~~~~~~~~~~~~~~~~~~~~~~~
:info:build ffmpeg_decode.c:278:14: warning: equality comparison with
extraneous parentheses [-Wparentheses-equality]
:info:build if ((ffd->st==GF_STREAM_VISUAL)) {
:info:build ~~~~~~~^~~~~~~~~~~~~~~~~~
:info:build ffmpeg_decode.c:278:14: note: remove extraneous parentheses
around the comparison to silence this warning
:info:build if ((ffd->st==GF_STREAM_VISUAL)) {
:info:build ~ ^ ~
:info:build ffmpeg_decode.c:278:14: note: use '=' to turn this equality
comparison into an assignment
:info:build if ((ffd->st==GF_STREAM_VISUAL)) {
:info:build ^~
:info:build =
:info:build ffmpeg_decode.c:320:7: warning: implicit declaration of
function 'avcodec_open' is invalid in C99 [-Wimplicit-function-
declaration]
:info:build if (avcodec_open((*ctx), (*codec) )<0) return
GF_NON_COMPLIANT_BITSTREAM;
:info:build ^
:info:build ffmpeg_decode.c:614:12: error: use of undeclared identifier
'AVCODEC_MAX_AUDIO_FRAME_SIZE'
:info:build gotpic = AVCODEC_MAX_AUDIO_FRAME_SIZE;
:info:build ^
:info:build 4 warnings and 2 errors generated.
:info:build make[2]: *** [ffmpeg_decode.o] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/40581>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list