Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#17582 closed defect (invalid)

ffmpeg fails to build

Reported by: jwhowse4 Owned by: acho@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: ffmpeg

Description (last modified by jmroot (Joshua Root))

On an intel mac running Leopard 10.5.5 and Xcode 3.1.2 ffmpeg fails to build with the following error. Note this occurs on an upgrade from the previous version and I have the following flags set.

+a52 +avfilter +darwin_i386 +extvorbis +faac +faad +gpl +lame +postproc +theora +x264 +xvid

gcc-4.0 -dynamiclib -Wl,-single_module -Wl,-install_name,
/opt/macports/lib/libavcodec.dylib -Wl,-read_only_relocs,
suppress -L"/opt/macports/var/macports/build
/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg
/work/trunk"/libavutil -Wl,-dynamic,-search_paths_first 
-L/opt/macports/lib -rdynamic -o libavcodec/libavcodec.51.dylib 
libavcodec/allcodecs.o libavcodec/audioconvert.o 
libavcodec/bitstream.o libavcodec/bitstream_filter.o 
libavcodec/dsputil.o libavcodec/eval.o libavcodec/faanidct.o 
libavcodec/imgconvert.o libavcodec/jrevdct.o libavcodec/opt.o 
libavcodec/parser.o libavcodec/raw.o libavcodec/resample.o 
libavcodec/resample2.o libavcodec/simple_idct.o libavcodec/utils.o 
libavcodec/faandct.o libavcodec/jfdctfst.o libavcodec/jfdctint.o 
libavcodec/aac.o libavcodec/aactab.o libavcodec/mdct.o 
libavcodec/fft.o libavcodec/aasc.o libavcodec/ac3enc.o 
libavcodec/ac3tab.o libavcodec/ac3.o libavcodec/alac.o 
libavcodec/alacenc.o libavcodec/lpc.o libavcodec/sp5xdec.o 
libavcodec/mjpegdec.o libavcodec/mjpeg.o libavcodec/apedec.o 
libavcodec/asv1.o libavcodec/mpeg12data.o libavcodec/atrac3.o 
libavcodec/avs.o libavcodec/bethsoftvideo.o libavcodec/bfi.o 
libavcodec/bmp.o libavcodec/bmpenc.o libavcodec/c93.o 
libavcodec/cavs.o libavcodec/cavsdec.o libavcodec/cavsdsp.o 
libavcodec/golomb.o libavcodec/mpegvideo.o libavcodec/cinepak.o 
libavcodec/cljr.o libavcodec/cook.o libavcodec/cscd.o 
libavcodec/cyuv.o libavcodec/dca.o libavcodec/dnxhddec.o 
libavcodec/dnxhddata.o libavcodec/dnxhdenc.o 
libavcodec/mpegvideo_enc.o libavcodec/motion_est.o 
libavcodec/ratecontrol.o libavcodec/dsicinav.o 
libavcodec/dvbsubdec.o libavcodec/dvbsub.o libavcodec/dvdsubdec.o 
libavcodec/dvdsubenc.o libavcodec/dv.o libavcodec/dxa.o 
libavcodec/eac3dec.o libavcodec/ac3dec.o libavcodec/ac3dec_data.o 
libavcodec/eacmv.o libavcodec/eatgv.o libavcodec/8bps.o 
libavcodec/8svx.o libavcodec/escape124.o libavcodec/ffv1.o 
libavcodec/rangecoder.o libavcodec/huffyuv.o libavcodec/flac.o 
libavcodec/flacenc.o libavcodec/flashsv.o libavcodec/flashsvenc.o 
libavcodec/flicvideo.o libavcodec/h263dec.o libavcodec/h263.o 
libavcodec/error_resilience.o libavcodec/4xm.o libavcodec/fraps.o 
libavcodec/huffman.o libavcodec/gifdec.o libavcodec/lzw.o 
libavcodec/gif.o libavcodec/h261dec.o libavcodec/h261.o 
libavcodec/h261enc.o libavcodec/h263_parser.o libavcodec/h264.o 
libavcodec/h264idct.o libavcodec/h264pred.o 
libavcodec/h264_parser.o libavcodec/cabac.o libavcodec/idcinvideo.o 
libavcodec/imc.o libavcodec/indeo2.o libavcodec/indeo3.o 
libavcodec/dpcm.o libavcodec/interplayvideo.o 
libavcodec/jpeglsdec.o libavcodec/jpegls.o libavcodec/jpeglsenc.o 
libavcodec/kmvc.o libavcodec/ljpegenc.o libavcodec/mjpegenc.o 
libavcodec/loco.o libavcodec/mace.o libavcodec/mimic.o 
libavcodec/mjpegbdec.o libavcodec/mlp.o libavcodec/mlpdec.o 
libavcodec/mmvideo.o libavcodec/motionpixels.o 
libavcodec/mpegaudiodec.o libavcodec/mpegaudiodecheader.o 
libavcodec/mpegaudio.o libavcodec/mpegaudiodata.o 
libavcodec/mpegaudioenc.o libavcodec/mpeg4audio.o libavcodec/mpc7.o 
libavcodec/mpc.o libavcodec/mpc8.o libavcodec/mdec.o 
libavcodec/mpeg12.o libavcodec/mpeg12enc.o 
libavcodec/mpeg4video_parser.o libavcodec/msmpeg4.o 
libavcodec/msmpeg4data.o libavcodec/msrle.o libavcodec/msvideo1.o 
libavcodec/lcldec.o libavcodec/nellymoserdec.o 
libavcodec/nellymoser.o libavcodec/nellymoserenc.o libavcodec/nuv.o 
libavcodec/rtjpeg.o libavcodec/pnmenc.o libavcodec/pnm.o 
libavcodec/pcx.o libavcodec/png.o libavcodec/pngdec.o 
libavcodec/pngenc.o libavcodec/ptx.o libavcodec/qdm2.o 
libavcodec/qdrw.o libavcodec/qpeg.o libavcodec/qtrle.o 
libavcodec/qtrleenc.o libavcodec/ra144.o libavcodec/acelp_filters.o 
libavcodec/ra288.o libavcodec/rawdec.o libavcodec/rawenc.o 
libavcodec/rl2.o libavcodec/roqvideodec.o libavcodec/roqvideo.o 
libavcodec/roqvideoenc.o libavcodec/elbg.o libavcodec/roqaudioenc.o 
libavcodec/rpza.o libavcodec/rv10.o libavcodec/sgidec.o 
libavcodec/sgienc.o libavcodec/rle.o libavcodec/shorten.o 
libavcodec/smacker.o libavcodec/smc.o libavcodec/snow.o 
libavcodec/sonic.o libavcodec/sunrast.o libavcodec/svq1dec.o 
libavcodec/svq1.o libavcodec/svq1enc.o libavcodec/targa.o 
libavcodec/targaenc.o libavcodec/vp3.o libavcodec/xiph.o 
libavcodec/vp3dsp.o libavcodec/tiertexseqv.o libavcodec/tiff.o 
libavcodec/tiffenc.o libavcodec/lzwenc.o libavcodec/truemotion1.o 
libavcodec/truemotion2.o libavcodec/truespeech.o libavcodec/tscc.o 
libavcodec/tta.o libavcodec/txd.o libavcodec/s3tc.o 
libavcodec/ulti.o libavcodec/vb.o libavcodec/vc1.o 
libavcodec/vc1data.o libavcodec/vc1dsp.o libavcodec/intrax8.o 
libavcodec/intrax8dsp.o libavcodec/vcr1.o libavcodec/vmdav.o 
libavcodec/vmnc.o libavcodec/vorbis_dec.o libavcodec/vorbis.o 
libavcodec/vorbis_data.o libavcodec/vorbis_enc.o libavcodec/vp5.o 
libavcodec/vp56.o libavcodec/vp56data.o libavcodec/vp6.o 
libavcodec/vqavideo.o libavcodec/wavpack.o libavcodec/wmadec.o 
libavcodec/wma.o libavcodec/wmaenc.o libavcodec/wmv2dec.o 
libavcodec/wmv2.o libavcodec/wmv2enc.o libavcodec/wnv1.o 
libavcodec/ws-snd1.o libavcodec/xan.o libavcodec/xl.o 
libavcodec/xsubdec.o libavcodec/lclenc.o libavcodec/zmbv.o 
libavcodec/zmbvenc.o libavcodec/pcm.o libavcodec/adpcm.o 
libavcodec/adxdec.o libavcodec/adxenc.o libavcodec/g726.o 
libavcodec/liba52.o libavcodec/libfaac.o libavcodec/libfaad.o 
libavcodec/libmp3lame.o libavcodec/libtheoraenc.o 
libavcodec/libvorbis.o libavcodec/libx264.o libavcodec/libxvidff.o 
libavcodec/libxvid_rc.o libavcodec/aac_parser.o 
libavcodec/aac_ac3_parser.o libavcodec/ac3_parser.o 
libavcodec/cavs_parser.o libavcodec/dca_parser.o 
libavcodec/dirac_parser.o libavcodec/dvbsub_parser.o 
libavcodec/dvdsub_parser.o libavcodec/h261_parser.o 
libavcodec/mjpeg_parser.o libavcodec/mlp_parser.o 
libavcodec/mpegaudio_parser.o libavcodec/mpegvideo_parser.o 
libavcodec/pnm_parser.o libavcodec/vc1_parser.o 
libavcodec/vp3_parser.o libavcodec/dump_extradata_bsf.o 
libavcodec/h264_mp4toannexb_bsf.o libavcodec/imx_dump_header_bsf.o 
libavcodec/mjpega_dump_header_bsf.o libavcodec/movsub_bsf.o 
libavcodec/mp3_header_compress_bsf.o 
libavcodec/mp3_header_decompress_bsf.o libavcodec/noise_bsf.o 
libavcodec/remove_extradata_bsf.o libavcodec/pthread.o 
libavutil/libavutil.dylib -lavutil -lz -lbz2 -lm -la52 -lfaac 
-lfaad -lmp3lame -lm -ltheora -logg -lvorbisenc -lvorbis -logg 
-lx264 -lm -lxvidcore     

Undefined symbols:
  "_h261_parser", referenced from:
      _h261_parser$non_lazy_ptr in allcodecs.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
gmake: *** [libavcodec/libavcodec.51.dylib] Error 1

Change History (5)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: changed from macports-tickets@… to acho@…
Port: ffmpeg added

Please remember to use WikiFormatting in future.

comment:2 Changed 16 years ago by jwhowse4

I finally got a chance to look into this error. It turns out that my download from the SVN repository was incomplete in the sense that there were several zero length files, among them h261_parser.c, which lead to the reported error. Downloading the package again resolved the problem, so this ticket can be closed.

comment:3 Changed 16 years ago by dbevans (David B. Evans)

Resolution: invalid
Status: newclosed

comment:4 Changed 16 years ago by dbevans (David B. Evans)

Committed changes to pre-fetch and fetch in r45991 that make a rudimentary check to see if a previous fetch completed successfully and if not force a new one.

See #18067 for further discussion.

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.