[MacPorts] #61298: ffmpeg @4.3.1 +gpl2 +nonfree Build fails Undefined symbols for architecture x86_64: :info:build "_ff_butterflies_fixed_sse2" and more

MacPorts noreply at macports.org
Sat Oct 17 20:46:04 UTC 2020


#61298: ffmpeg @4.3.1 +gpl2 +nonfree Build fails Undefined symbols for architecture
x86_64: :info:build   "_ff_butterflies_fixed_sse2" and more
-----------------------+----------------------
  Reporter:  MeNdMont  |      Owner:  dbevans
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.6.3
Resolution:            |   Keywords:
      Port:  ffmpeg    |
-----------------------+----------------------

Comment (by kencu):

 It installed without trouble for me, on 10.14, with the {{{+nonfree}}}
 variant.
 {{{
 $ port -v installed ffmpeg
 The following ports are currently installed:
   ffmpeg @4.3.1_0+gpl2 platform='darwin 18' archs='x86_64'
 date='2020-08-24T17:16:15-0700'
   ffmpeg @4.3.1_0+gpl2+nonfree (active) platform='darwin 18'
 archs='x86_64' date='2020-10-17T13:38:45-0700'
 }}}

 The specific link line that failed for you did not fail for me:
 {{{
 /usr/bin/clang -dynamiclib -Wl,-single_module
 -Wl,-install_name,/opt/local/lib/libavutil.56.dylib,-current_version,56.51.100,-compatibility_version,56
 -Wl,-exported_symbols_list,libavutil/libavutil.ver -Llibavcodec
 -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil
 -Llibpostproc -Llibswscale -Llibswresample -L/opt/local/lib
 -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
 -arch x86_64  -Wl,-dynamic,-search_paths_first -Qunused-arguments  -o
 libavutil/libavutil.56.dylib libavutil/adler32.o libavutil/aes.o
 libavutil/aes_ctr.o libavutil/audio_fifo.o libavutil/avsscanf.o
 libavutil/avstring.o libavutil/base64.o libavutil/blowfish.o
 libavutil/bprint.o libavutil/buffer.o libavutil/camellia.o
 libavutil/cast5.o libavutil/channel_layout.o libavutil/color_utils.o
 libavutil/cpu.o libavutil/crc.o libavutil/des.o libavutil/dict.o
 libavutil/display.o libavutil/dovi_meta.o libavutil/downmix_info.o
 libavutil/encryption_info.o libavutil/error.o libavutil/eval.o
 libavutil/fifo.o libavutil/file.o libavutil/file_open.o
 libavutil/fixed_dsp.o libavutil/float_dsp.o libavutil/frame.o
 libavutil/hash.o libavutil/hdr_dynamic_metadata.o libavutil/hmac.o
 libavutil/hwcontext.o libavutil/hwcontext_opencl.o
 libavutil/hwcontext_videotoolbox.o libavutil/imgutils.o
 libavutil/integer.o libavutil/intmath.o libavutil/lfg.o libavutil/lls.o
 libavutil/log.o libavutil/log2_tab.o libavutil/lzo.o
 libavutil/mastering_display_metadata.o libavutil/mathematics.o
 libavutil/md5.o libavutil/mem.o libavutil/murmur3.o libavutil/opt.o
 libavutil/parseutils.o libavutil/pixdesc.o libavutil/pixelutils.o
 libavutil/random_seed.o libavutil/rational.o libavutil/rc4.o
 libavutil/reverse.o libavutil/ripemd.o libavutil/samplefmt.o
 libavutil/sha.o libavutil/sha512.o libavutil/slicethread.o
 libavutil/spherical.o libavutil/stereo3d.o libavutil/tea.o
 libavutil/threadmessage.o libavutil/time.o libavutil/timecode.o
 libavutil/tree.o libavutil/twofish.o libavutil/tx.o libavutil/tx_double.o
 libavutil/tx_float.o libavutil/tx_int32.o libavutil/utils.o
 libavutil/video_enc_params.o libavutil/x86/cpu.o libavutil/x86/cpuid.o
 libavutil/x86/fixed_dsp.o libavutil/x86/fixed_dsp_init.o
 libavutil/x86/float_dsp.o libavutil/x86/float_dsp_init.o
 libavutil/x86/imgutils.o libavutil/x86/imgutils_init.o libavutil/x86/lls.o
 libavutil/x86/lls_init.o libavutil/x86/pixelutils.o
 libavutil/x86/pixelutils_init.o libavutil/xga_font_data.o libavutil/xtea.o
 -pthread -lm -Wl,-framework,OpenCL -framework VideoToolbox -framework
 CoreFoundation -framework CoreMedia -framework CoreVideo -framework
 CoreServices
 }}}

 So -- it does build, at least some places.

 IF you can live with the default variant, that will get you started, at
 least. Something like this should work for you:

 {{{
 sudo port clean ffmpeg
 sudo port -f uninstall ffmpeg
 sudo port -v selfupdate
 sudo port -v install ffmpeg
 sudo port -v upgrade outdated
 }}}

 Then after you are back in business, try building ffmpeg again with your
 desired variant:
 {{{
 sudo port -v build ffmpeg +nonfree
 }}}
 and if it does build through, then deactive the existing one and install
 the one you want:
 {{{
 sudo port -f deactivate ffmpeg
 sudo port -v install ffmpeg +nonfree
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61298#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list