Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#13984 closed defect (fixed)

ffmpeg fails to compile [ld: Undefined symbols: _av_crc_get_table]

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

Description

--->  Building ffmpeg with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk" && make all " returned error 2
Command output: make -C libavutil   all
make[1]: Nothing to be done for `all'.
make -C libavcodec  all
gcc -dynamiclib -Wl,-single_module -Wl,-install_name,/opt/local/lib/libavcodec.dylib,-current_version,51.1.0,-compatibility_version,51.1.0 -Wl,-read_only_relocs,suppress -Wl,-dynamic,-search_paths_first -L/opt/local/lib -o libavcodec.51.dylib allcodecs.o audioconvert.o bitstream.o bitstream_filter.o dsputil.o error_resilience.o eval.o faandct.o imgconvert.o jrevdct.o jfdctfst.o jfdctint.o mpeg12.o mpeg12data.o mpegvideo.o opt.o parser.o raw.o resample.o resample2.o simple_idct.o utils.o imgresample.o aasc.o ac3enc.o ac3tab.o ac3.o alac.o sp5xdec.o mjpegdec.o mjpeg.o apedec.o asv1.o atrac3.o mdct.o fft.o avs.o bethsoftvideo.o bmp.o bmpenc.o c93.o cavs.o cavsdec.o cavsdsp.o golomb.o cinepak.o cljr.o cook.o cscd.o cyuv.o dca.o dnxhddec.o dnxhddata.o dnxhdenc.o mpegvideo_enc.o motion_est.o ratecontrol.o dsicinav.o dvbsubdec.o dvbsub.o dvdsubdec.o dvdsubenc.o dv.o dxa.o 8bps.o ffv1.o rangecoder.o huffyuv.o flac.o flacenc.o flashsv.o flashsvenc.o flicvideo.o h263dec.o h263.o 4xm.o fraps.o huffman.o gifdec.o lzw.o gif.o h261dec.o h261.o h261enc.o h264.o h264idct.o h264pred.o cabac.o idcinvideo.o imc.o indeo2.o indeo3.o dpcm.o interplayvideo.o jpeglsdec.o jpegls.o jpeglsenc.o kmvc.o ljpegenc.o mjpegenc.o loco.o mace.o mjpegbdec.o mmvideo.o mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o mpegaudioenc.o mpc7.o mpc.o mpc8.o mpeg12enc.o msmpeg4.o msmpeg4data.o msrle.o msvideo1.o lcldec.o nellymoserdec.o nuv.o rtjpeg.o pnmenc.o pnm.o pcx.o png.o pngdec.o pngenc.o ptx.o qdm2.o qdrw.o qpeg.o qtrle.o qtrleenc.o ra144.o ra288.o rawdec.o rawenc.o roqvideodec.o roqvideo.o roqvideoenc.o elbg.o roqaudioenc.o rpza.o rv10.o sgidec.o sgienc.o rle.o shorten.o smacker.o smc.o snow.o sonic.o sunrast.o svq1dec.o svq1.o svq1enc.o targa.o targaenc.o vp3.o xiph.o vp3dsp.o tiertexseqv.o tiff.o tiffenc.o lzwenc.o truemotion1.o truemotion2.o truespeech.o tscc.o tta.o txd.o s3tc.o ulti.o vb.o vc1.o vc1data.o vc1dsp.o intrax8.o intrax8dsp.o vcr1.o vmdav.o vmnc.o vorbis_dec.o vorbis.o vorbis_data.o vorbis_enc.o vp5.o vp56.o vp56data.o vp6.o vqavideo.o wavpack.o wmadec.o wma.o wmaenc.o wmv2dec.o wmv2.o wmv2enc.o wnv1.o ws-snd1.o xan.o xl.o xsubdec.o lclenc.o zmbv.o zmbvenc.o pcm.o adpcm.o adxdec.o adxenc.o g726.o aac_parser.o aac_ac3_parser.o ac3_parser.o cavs_parser.o dca_parser.o dvbsub_parser.o dvdsub_parser.o h261_parser.o h263_parser.o h264_parser.o mjpeg_parser.o mlp_parser.o mpeg4video_parser.o mpegaudio_parser.o mpegvideo_parser.o pnm_parser.o vc1_parser.o dump_extradata_bsf.o h264_mp4toannexb_bsf.o imx_dump_header_bsf.o mjpega_dump_header_bsf.o mp3_header_compress_bsf.o mp3_header_decompress_bsf.o noise_bsf.o remove_extradata_bsf.o pthread.o ppc/dsputil_ppc.o ppc/dsputil_altivec.o ppc/fdct_altivec.o ppc/fft_altivec.o ppc/float_altivec.o ppc/gmc_altivec.o ppc/idct_altivec.o ppc/int_altivec.o ppc/mpegvideo_altivec.o ppc/h264_altivec.o ppc/snow_altivec.o ppc/vc1dsp_altivec.o ppc/check_altivec.o -L"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavutil -lavutil -lz -lm    
ld: Undefined symbols:
_av_crc_get_table
/usr/bin/libtool: internal link edit command failed
make[1]: *** [libavcodec.51.dylib] Error 1
make: *** [lib] Error 2 }}}

Change History (7)

comment:1 Changed 16 years ago by jmpp@…

Milestone: Port Bugs

comment:2 Changed 16 years ago by acho@…

Owner: changed from macports-tickets@… to acho@…

Hi, can you try uninstalling or deactivating any previous version of ffmpeg and installing the new one?

comment:3 Changed 16 years ago by paulbeard@…

That works: it was pointed out on the list, and I tried it. Can that be part of the upgrade, as a pre-flight step or something?

comment:4 Changed 16 years ago by klaus.buchholzer@…

If you don't want to uninstall your working copy of ffmpeg until your new one compiles try to remove in the command that fails the following link path -L/opt/local/lib I had to do this two times until the compile finished.

Steps:

  1. go and find the offending directory where the ld (link) happens
  2. run the command 'make' and pipe stdout into a file
  3. edit this file properly and run it in your shell as sh-code
  4. recap from 'da capo' for all other places until done
  5. perform the 'port -vuc upgrade ffmpeg' or the like

Good luck

comment:5 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #14457.

This problem was also reported on macports-users.

comment:6 Changed 16 years ago by reiffert@…

Resolution: fixed
Status: newclosed

Fixed in r35073 and r35074.

comment:7 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.