Opened 15 years ago
Closed 13 years ago
#24629 closed defect (fixed)
gst-ffmpeg-0.10.10 problem building on Leopard and Snow Leopard
Reported by: | nzaidenberg@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | Cc: | jeremyhu (Jeremy Huddleston Sequoia), de5ton56@…, geoffl@…, bgrupe27 | |
Port: | gst-ffmpeg |
Description (last modified by jmroot (Joshua Root))
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>
Change History (7)
comment:1 Changed 15 years ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Port: | gst-ffmpeg added |
comment:2 follow-up: 3 Changed 14 years ago by brane@…
Confirmed with ports 1.9.0, xcode 3.1.2 on Snow Leopard x86_64.
comment:3 Changed 14 years ago by mf2k (Frank Schima)
Replying to brane@…:
Confirmed with ports 1.9.0, xcode 3.1.2 on Snow Leopard x86_64.
Are you sure about this? You should have Xcode 3.2.2 on Snow Leopard. Please update to that, clean the port and try again.
comment:4 Changed 14 years ago by jeremyhu (Jeremy Huddleston Sequoia)
I am seeing this with trunk base and Xcode 3.2.3 on SL when buiding gst-ffmpeg for x86_64 on SL
comment:5 Changed 14 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Cc: | jeremyhu@… openmaintainer@… de5ton56@… geoffl@… added |
---|
comment:7 Changed 13 years ago by jmroot (Joshua Root)
Cc: | openmaintainer@… removed |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Seems to have been fixed by r70838.
Please remember to preview and use WikiFormatting (or better, use an attachment for lengthy output), and fill in the Port field.