[MacPorts] #24629: gst-ffmpeg-0.10.10 problem building on Leopard and Snow Leopard

MacPorts noreply at macports.org
Sat Apr 24 11:06:42 PDT 2010


#24629: gst-ffmpeg-0.10.10 problem building on Leopard and Snow Leopard
---------------------------------+------------------------------------------
 Reporter:  nzaidenberg@…        |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:                                       
Component:  ports                |     Version:  1.8.2                                
 Keywords:                       |        Port:                                       
---------------------------------+------------------------------------------
 We see problems building gst-ffmpeg on Leopard and Snow Leopard.

 Solution was to edit the source code (ext/ffmpeg/gstffmpegprotocol.c in
 the following example) and #include <avcodec> right before #include
 <avformat.h>)

 This happen also in gstffmpegdemux.c and gstffmpegmux.c with similar fix

 (example from leopard)

 --->  Building gst-ffmpeg
 DEBUG: Executing org.macports.build (gst-ffmpeg)
 DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
 DEBUG: Assembled command: 'cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_gnome_gst-ffmpeg/work/gst-ffmpeg-0.10.10" && gmake -j1
 all'
 Making all in gst-libs
 Making all in ext
 Making all in ext
 Making all in ffmpeg
   CC    gstffmpegprotocol.o
 In file included from gstffmpegprotocol.c:27:
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:183: error: syntax error
 before 'AVPacket'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:263: error: syntax error
 before 'AVPacket'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:269: error: syntax error
 before 'AVPacket'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:314: error: syntax error
 before 'AVPacket'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:493: error: syntax error
 before 'AVPacket'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:493: warning: no
 semicolon at end of struct or union
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:522: error: syntax error
 before '}' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:522: warning: type
 defaults to 'int' in declaration of 'AVStream'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:522: warning: data
 definition has no type or storage class
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:579: error: syntax error
 before 'AVStream'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:579: warning: no
 semicolon at end of struct or union
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:617: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:617: warning: type
 defaults to 'int' in declaration of 'cur_st'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:617: warning: data
 definition has no type or storage class
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:621: error: syntax error
 before 'cur_pkt_deprecated'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:621: warning: type
 defaults to 'int' in declaration of 'cur_pkt_deprecated'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:621: warning: data
 definition has no type or storage class
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:722: error: syntax error
 before '}' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:722: warning: type
 defaults to 'int' in declaration of 'AVFormatContext'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:722: warning: data
 definition has no type or storage class
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:725: error: syntax error
 before 'AVPacket'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:725: warning: no
 semicolon at end of struct or union
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:727: error: syntax error
 before '}' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:727: warning: type
 defaults to 'int' in declaration of 'AVPacketList'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:727: warning: data
 definition has no type or storage class
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:824: error: syntax error
 before 'AVPacket'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:836: error: syntax error
 before 'AVPacket'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:872: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:888: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:897: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:897: warning: type
 defaults to 'int' in declaration of 'av_alloc_format_context'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:897: warning: data
 definition has no type or storage class
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:905: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:905: warning: type
 defaults to 'int' in declaration of 'avformat_alloc_context'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:905: warning: data
 definition has no type or storage class
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:920: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:932: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:953: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:966: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:995: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1001: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1008: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1014: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1021: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1033: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1033: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1033: warning: type
 defaults to 'int' in declaration of 'av_new_stream'
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1033: warning: data
 definition has no type or storage class
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1034: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1049: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1061: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1069: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1079: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1088: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1096: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1107: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1118: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1127: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1132: error: syntax error
 before ')' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1135: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1144: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1158: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1175: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1192: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1204: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1206: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1262: error: syntax error
 before '*' token
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:1309: error: syntax error
 before '*' token
 In file included from /opt/local/include/libxml2/libxml/globals.h:20,
                  from /opt/local/include/libxml2/libxml/xmlIO.h:117,
                  from /opt/local/include/libxml2/libxml/parser.h:808,
                  from
 /opt/local/include/gstreamer-0.10/gst/gstconfig.h:197,
                  from
 /opt/local/include/gstreamer-0.10/gst/gstelement.h:55,
                  from /opt/local/include/gstreamer-0.10/gst/gstbin.h:27,
                  from /opt/local/include/gstreamer-0.10/gst/gst.h:34,
                  from gstffmpegprotocol.c:32:
 /opt/local/include/libxml2/libxml/SAX.h:147: error: 'comment' redeclared
 as different kind of symbol
 ../../gst-libs/ext/ffmpeg/libavformat/avformat.h:587: error: previous
 declaration of 'comment' was here
 In file included from gstffmpegprotocol.c:34:
 gstffmpeg.h:59: error: syntax error before '*' token
 gmake[3]: *** [libgstffmpeg_la-gstffmpegprotocol.lo] Error 1
 gmake[2]: *** [all-recursive] Error 1
 gmake[1]: *** [all-recursive] Error 1
 gmake: *** [all] Error 2
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_gnome_gst-ffmpeg/work/gst-ffmpeg-0.10.10" && gmake -j1
 all " returned error 2
 DEBUG: Backtrace: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_gnome_gst-ffmpeg/work/gst-ffmpeg-0.10.10" && gmake -j1
 all " returned error 2
     while executing
 "command_exec build"
     (procedure "portbuild::build_main" line 9)
     invoked from within
 "$procedure $targetname"
 Warning: the following items did not execute (for gst-ffmpeg):
 org.macports.activate org.macports.build org.macports.destroot
 org.macports.archive org.macports.install
 Error: Status 1 encountered during processing.
 To report a bug, see <http://guide.macports.org/#project.tickets>

-- 
Ticket URL: <http://trac.macports.org/ticket/24629>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list