#67903 closed defect (fixed)

mpv @0.36.0: Undefined symbols for architecture x86_64:

Reported by: cave-canem Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Mavericks Cc: cave-canem, Ionic (Mihai Moldovan), i0ntempest
Port: mpv

Description

sudo port -vd install mpv +audiocd+bluray+bundle+dvd+libarchive+libmpv+network+opengl+osd+python311+rubberband+screenshot+uchardet+x11
...
Undefined symbols for architecture x86_64:
  "_cfstr_from_cstr", referenced from:
      _ca_select_device in ao_coreaudio_utils.c.21.o
  "_cfstr_get_cstr", referenced from:
      _ca_get_str in ao_coreaudio_properties.c.21.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
...
File "/opt/MacPorts/var/macports/build/_opt_macports-ports_multimedia_mpv/mpv/work/mpv-0.36.0/./waf", line 168, in <module>
    Scripting.waf_entry_point(cwd, VERSION, wafdir)
  File "/opt/MacPorts/var/macports/build/_opt_macports-ports_multimedia_mpv/mpv/work/mpv-0.36.0/.waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5/waflib/Scripting.py", line 119, in waf_entry_point
    run_commands()
  File "/opt/MacPorts/var/macports/build/_opt_macports-ports_multimedia_mpv/mpv/work/mpv-0.36.0/.waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5/waflib/Scripting.py", line 182, in run_commands
    ctx=run_command(cmd_name)
  File "/opt/MacPorts/var/macports/build/_opt_macports-ports_multimedia_mpv/mpv/work/mpv-0.36.0/.waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5/waflib/Scripting.py", line 173, in run_command
    ctx.execute()
  File "/opt/MacPorts/var/macports/build/_opt_macports-ports_multimedia_mpv/mpv/work/mpv-0.36.0/.waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5/waflib/Scripting.py", line 375, in execute
    return execute_method(self)
  File "/opt/MacPorts/var/macports/build/_opt_macports-ports_multimedia_mpv/mpv/work/mpv-0.36.0/.waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5/waflib/Build.py", line 93, in execute
    self.execute_build()
  File "/opt/MacPorts/var/macports/build/_opt_macports-ports_multimedia_mpv/mpv/work/mpv-0.36.0/.waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5/waflib/Build.py", line 100, in execute_build
    self.compile()
  File "/opt/MacPorts/var/macports/build/_opt_macports-ports_multimedia_mpv/mpv/work/mpv-0.36.0/.waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5/waflib/Tools/errcheck.py", line 140, in check_compile
    ret=self.orig_compile()
  File "/opt/MacPorts/var/macports/build/_opt_macports-ports_multimedia_mpv/mpv/work/mpv-0.36.0/.waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5/waflib/Build.py", line 176, in compile
    raise Errors.BuildError(self.producer.error)
  File "/opt/MacPorts/var/macports/build/_opt_macports-ports_multimedia_mpv/mpv/work/mpv-0.36.0/.waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5/waflib/Errors.py", line 26, in __init__
    WafError.__init__(self,self.format_error())

Build failed
...
Command failed:  cd "/opt/MacPorts/var/macports/build/_opt_macports-ports_multimedia_mpv/mpv/work/mpv-0.36.0" && /opt/MacPorts/bin/python3.11 ./waf build -v --verbose
Exit code: 1
Error: Failed to build mpv: command execution failed
DEBUG: Error code: CHILDSTATUS 48239 1
DEBUG: Backtrace: command execution failed
    while executing
"system {*}$notty {*}$callback {*}$nice $fullcmdstring"
    invoked from within
"command_exec -callback portprogress::target_progress_callback build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"

See full debug log in attachment

Attachments (1)

main.log.tar.xz (26.1 KB) - added by cave-canem 16 months ago.
main.log

Download all attachments as: .zip

Change History (8)

Changed 16 months ago by cave-canem

Attachment: main.log.tar.xz added

main.log

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

Port: @0.36.0 removed

The buildbot doesn't even get this far because the port blacklists all macports-* compilers but also requires C11. But that's #67166.

Last edited 16 months ago by jmroot (Joshua Root) (previous) (diff)

comment:2 Changed 15 months ago by cave-canem

Forgive me please Joshua Root, but it seems to me that you should at least see the log ...

comment:3 Changed 11 months ago by barracuda156

Got the same error on 10.6 on PowerPC:

[227/227] Linking build/mpv
18:27:57 runner ['/opt/local/bin/gcc-mp-13', '-rdynamic', '-Wl,-framework,CoreFoundation', '-Wl,-framework,IOKit', '-Wl,-framework,DiskArbitration', '-rdynamic', '-exported_symbols_list', 'mpv.def', 'osdep/main-fn-unix.c.22.o', 'audio/aframe.c.21.o', 'audio/chmap.c.21.o', 'audio/chmap_sel.c.21.o', 'audio/decode/ad_lavc.c.21.o', 'audio/decode/ad_spdif.c.21.o', 'audio/filter/af_drop.c.21.o', 'audio/filter/af_format.c.21.o', 'audio/filter/af_lavcac3enc.c.21.o', 'audio/filter/af_scaletempo.c.21.o', 'audio/filter/af_scaletempo2.c.21.o', 'audio/filter/af_scaletempo2_internals.c.21.o', 'audio/fmt-conversion.c.21.o', 'audio/format.c.21.o', 'audio/out/ao.c.21.o', 'audio/out/ao_coreaudio.c.21.o', 'audio/out/ao_coreaudio_chmap.c.21.o', 'audio/out/ao_coreaudio_exclusive.c.21.o', 'audio/out/ao_coreaudio_properties.c.21.o', 'audio/out/ao_coreaudio_utils.c.21.o', 'audio/out/ao_lavc.c.21.o', 'audio/out/ao_null.c.21.o', 'audio/out/ao_pcm.c.21.o', 'audio/out/buffer.c.21.o', 'common/av_common.c.21.o', 'common/av_log.c.21.o', 'common/codecs.c.21.o', 'common/common.c.21.o', 'common/encode_lavc.c.21.o', 'common/msg.c.21.o', 'common/playlist.c.21.o', 'common/recorder.c.21.o', 'common/stats.c.21.o', 'common/tags.c.21.o', 'common/version.c.21.o', 'demux/codec_tags.c.21.o', 'demux/cue.c.21.o', 'demux/cache.c.21.o', 'demux/demux.c.21.o', 'demux/demux_cue.c.21.o', 'demux/demux_disc.c.21.o', 'demux/demux_edl.c.21.o', 'demux/demux_lavf.c.21.o', 'demux/demux_libarchive.c.21.o', 'demux/demux_mf.c.21.o', 'demux/demux_mkv.c.21.o', 'demux/demux_mkv_timeline.c.21.o', 'demux/demux_null.c.21.o', 'demux/demux_playlist.c.21.o', 'demux/demux_raw.c.21.o', 'demux/demux_timeline.c.21.o', 'demux/ebml.c.21.o', 'demux/packet.c.21.o', 'demux/timeline.c.21.o', 'filters/f_async_queue.c.21.o', 'filters/f_autoconvert.c.21.o', 'filters/f_auto_filters.c.21.o', 'filters/f_decoder_wrapper.c.21.o', 'filters/f_demux_in.c.21.o', 'filters/f_hwtransfer.c.21.o', 'filters/f_lavfi.c.21.o', 'filters/f_output_chain.c.21.o', 'filters/f_swresample.c.21.o', 'filters/f_swscale.c.21.o', 'filters/f_utils.c.21.o', 'filters/filter.c.21.o', 'filters/frame.c.21.o', 'filters/user_filters.c.21.o', 'input/cmd.c.21.o', 'input/event.c.21.o', 'input/input.c.21.o', 'input/ipc.c.21.o', 'input/ipc-unix.c.21.o', 'input/keycodes.c.21.o', 'misc/bstr.c.21.o', 'misc/charset_conv.c.21.o', 'misc/dispatch.c.21.o', 'misc/json.c.21.o', 'misc/language.c.21.o', 'misc/natural_sort.c.21.o', 'misc/node.c.21.o', 'misc/rendezvous.c.21.o', 'misc/random.c.21.o', 'misc/thread_pool.c.21.o', 'misc/thread_tools.c.21.o', 'options/m_config_core.c.21.o', 'options/m_config_frontend.c.21.o', 'options/m_option.c.21.o', 'options/m_property.c.21.o', 'options/options.c.21.o', 'options/parse_commandline.c.21.o', 'options/parse_configfile.c.21.o', 'options/path.c.21.o', 'player/audio.c.21.o', 'player/client.c.21.o', 'player/command.c.21.o', 'player/configfiles.c.21.o', 'player/external_files.c.21.o', 'player/loadfile.c.21.o', 'player/lua.c.21.o', 'player/main.c.21.o', 'player/misc.c.21.o', 'player/osd.c.21.o', 'player/playloop.c.21.o', 'player/screenshot.c.21.o', 'player/scripting.c.21.o', 'player/sub.c.21.o', 'player/video.c.21.o', 'stream/cookies.c.21.o', 'stream/stream.c.21.o', 'stream/stream_avdevice.c.21.o', 'stream/stream_bluray.c.21.o', 'stream/stream_cb.c.21.o', 'stream/stream_cdda.c.21.o', 'stream/stream_concat.c.21.o', 'stream/stream_slice.c.21.o', 'stream/stream_dvdnav.c.21.o', 'stream/stream_edl.c.21.o', 'stream/stream_file.c.21.o', 'stream/stream_lavf.c.21.o', 'stream/stream_libarchive.c.21.o', 'stream/stream_memory.c.21.o', 'stream/stream_mf.c.21.o', 'stream/stream_null.c.21.o', 'sub/ass_mp.c.21.o', 'sub/dec_sub.c.21.o', 'sub/draw_bmp.c.21.o', 'sub/filter_regex.c.21.o', 'sub/filter_sdh.c.21.o', 'sub/img_convert.c.21.o', 'sub/lavc_conv.c.21.o', 'sub/osd.c.21.o', 'sub/osd_libass.c.21.o', 'sub/sd_ass.c.21.o', 'sub/sd_lavc.c.21.o', 'video/csputils.c.21.o', 'video/decode/vd_lavc.c.21.o', 'video/filter/refqueue.c.21.o', 'video/filter/vf_fingerprint.c.21.o', 'video/filter/vf_format.c.21.o', 'video/filter/vf_sub.c.21.o', 'video/fmt-conversion.c.21.o', 'video/hwdec.c.21.o', 'video/image_loader.c.21.o', 'video/image_writer.c.21.o', 'video/img_format.c.21.o', 'video/mp_image.c.21.o', 'video/mp_image_pool.c.21.o', 'video/out/aspect.c.21.o', 'video/out/bitmap_packer.c.21.o', 'video/out/dither.c.21.o', 'video/out/dr_helper.c.21.o', 'video/out/filter_kernels.c.21.o', 'video/out/gpu/context.c.21.o', 'video/out/gpu/error_diffusion.c.21.o', 'video/out/gpu/hwdec.c.21.o', 'video/out/gpu/lcms.c.21.o', 'video/out/gpu/libmpv_gpu.c.21.o', 'video/out/gpu/osd.c.21.o', 'video/out/gpu/ra.c.21.o', 'video/out/gpu/shader_cache.c.21.o', 'video/out/gpu/spirv.c.21.o', 'video/out/gpu/user_shaders.c.21.o', 'video/out/gpu/utils.c.21.o', 'video/out/gpu/video.c.21.o', 'video/out/gpu/video_shaders.c.21.o', 'video/out/libmpv_sw.c.21.o', 'video/out/opengl/common.c.21.o', 'video/out/opengl/context.c.21.o', 'video/out/opengl/context_glx.c.21.o', 'video/out/opengl/formats.c.21.o', 'video/out/opengl/libmpv_gl.c.21.o', 'video/out/opengl/ra_gl.c.21.o', 'video/out/opengl/utils.c.21.o', 'video/out/present_sync.c.21.o', 'video/out/vo.c.21.o', 'video/out/vo_gpu.c.21.o', 'video/out/vo_image.c.21.o', 'video/out/vo_lavc.c.21.o', 'video/out/vo_libmpv.c.21.o', 'video/out/vo_null.c.21.o', 'video/out/vo_kitty.c.21.o', 'video/out/vo_tct.c.21.o', 'video/out/vo_x11.c.21.o', 'video/out/vo_xv.c.21.o', 'video/out/win_state.c.21.o', 'video/out/x11_common.c.21.o', 'video/repack.c.21.o', 'video/sws_utils.c.21.o', 'video/zimg.c.21.o', 'osdep/terminal-unix.c.21.o', 'osdep/io.c.21.o', 'osdep/threads.c.21.o', 'osdep/timer.c.21.o', 'osdep/timer-darwin.c.21.o', 'osdep/polldev.c.21.o', 'osdep/language-posix.c.21.o', 'osdep/path-darwin.c.21.o', 'osdep/semaphore_osx.c.21.o', 'osdep/subprocess.c.21.o', 'osdep/subprocess-posix.c.21.o', 'ta/ta.c.21.o', 'ta/ta_talloc.c.21.o', 'ta/ta_utils.c.21.o', '-o/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_multimedia_mpv/mpv/work/mpv-0.36.0/build/mpv', '-Wl,-rpath,/opt/local/lib', '-framework', 'CoreFoundation', '-framework', 'CoreAudio', '-framework', 'AudioUnit', '-framework', 'AudioToolbox', '-framework', 'Accelerate', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-llua5.2', '-lm', '-lcdio_paranoia', '-lcdio_cdda', '-lcdio', '-lm', '-liconv', '-ldvdnav', '-lpthread', '-ldvdread', '-lavutil', '-lavcodec', '-lavformat', '-lswscale', '-lavfilter', '-lswresample', '-lGL', '-liconv', '-llcms2', '-larchive', '-lass', '-lavdevice', '-lbluray', '-lm', '-lrubberband', '-lsamplerate', '-latomic', '-lX11', '-lXss', '-lXext', '-lXinerama', '-lXpresent', '-lXrandr', '-lXv', '-lzimg', '-lzimg', '-lz', '-Wl,-headerpad_max_install_names', '-L/opt/local/lib', '-lMacportsLegacySupport', '-Wl,-syslibroot,/Developer/SDKs/MacOSX10.6.sdk', '-arch', 'ppc']
gcc-mp-13: note: rdynamic is not supported
Undefined symbols:
  "_cfstr_from_cstr", referenced from:
      _ca_select_device in ao_coreaudio_utils.c.21.o
  "_cfstr_get_cstr", referenced from:
      _ca_get_str in ao_coreaudio_properties.c.21.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status

comment:4 Changed 11 months ago by barracuda156

comment:6 Changed 11 months ago by barracuda156

UPD. So 0.36.0 builds now, but for me does not work:

36-29% mpv /Users/svacchanda/Dev/jennie_solo_test.mp4 
[osc] 
[osc] stack traceback:
[osc] 	[C]: in ?
[osc] 	[C]: in function 'require'
[osc] 	[string "require '@osc.lua'"]:1: in main chunk
[osc] 	[C]: in ?
[osc] 	[C]: in ?
[osc] Lua error: @osc.lua:1750: malformed number near '0xe2'
[console] 
[console] stack traceback:
[console] 	[C]: in ?
[console] 	[C]: in function 'require'
[console] 	[string "require '@console.lua'"]:1: in main chunk
[console] 	[C]: in ?
[console] 	[C]: in ?
[console] Lua error: @console.lua:251: malformed number near '0x80'
[stats] 
[stats] stack traceback:
[stats] 	[C]: in ?
[stats] 	[C]: in function 'require'
[stats] 	[string "require '@stats.lua'"]:1: in main chunk
[stats] 	[C]: in ?
[stats] 	[C]: in ?
[stats] Lua error: @stats.lua:136: malformed number near '0xE2'
 (+) Video --vid=1 (*) (h264 854x480 23.980fps)
 (+) Audio --aid=1 (*) (aac 2ch 48000Hz)
File tags:
 Title: [Master ProRes] JENNIE - Solo - https://archive.org/details/9ee1fdfc-d8e7-4b35-8957-15eb80824e22
[vo/gpu/opengl] GLX does not support GLX_ARB_create_context_profile
[vo/gpu/opengl] GLX does not support GLX_ARB_create_context_profile
[vo/xv] No Xvideo support found.
[vo/x11] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the x11 VO.
AO: [coreaudio] 48000Hz stereo 2ch float
VO: [x11] 854x480 => 854x480 yuv420p
X connection to /tmp/launch-EykiHE/org.macports:0 broken (explicit kill or server shutdown).

This may be a problem with my X11 setup (there is Macports one and XQuartz one) though.

Meson backend is broken, and I do not want to waste time fixing it, to be honest. We can remain on waf for 0.36.0, and use it for pre-Catalina OSs.

comment:7 Changed 11 months ago by barracuda156

Owner: set to barracuda156
Resolution: fixed
Status: newclosed

In 6f197481ab77acb1ecd89a233bcea737c7266665/macports-ports (master):

mpv-legacy: version of mpv for pre-Catalina systems

Fixes: #67903

Note: See TracTickets for help on using tickets.