[MPlayer-users] mplayer compilation failure with recent ffmpeg
Christian Ebert
blacktrash at gmx.net
Sun Jul 29 17:52:37 EEST 2018
* sylvain.bertrand at gmail.com on Monday, July 23, 2018 at 12:10:25 +0000
> mplayer export of 2018/07/22, fails to compile with ffmpeg commit
> 3237f018fd0e0c0fe8ffb2b1cece23ee58a220a8 (fetched on the 22nd)
>
> I get the following final link error:
>
> ffmpeg/libavcodec/h263dec.o: In function `ff_h263_decode_frame':
> h263dec.c:(.text+0xd73): undefined reference to `ff_h263_find_frame_end'
> h263dec.c:(.text+0xf20): undefined reference to `ff_mpeg4_find_frame_end'
> ffmpeg/libavcodec/mlpdec.o: In function `read_access_unit':
> mlpdec.c:(.text+0x79d): undefined reference to `ff_mlp_read_major_sync'
> mlpdec.c:(.text+0xa37): undefined reference to `ff_mlp_calculate_parity'
> mlpdec.c:(.text+0xa4c): undefined reference to `ff_mlp_calculate_parity'
> mlpdec.c:(.text+0x146c): undefined reference to `ff_mlp_calculate_parity'
> mlpdec.c:(.text+0x1479): undefined reference to `ff_mlp_checksum8'
> mlpdec.c:(.text+0x1e68): undefined reference to `ff_mlp_restart_checksum'
> ffmpeg/libavcodec/mlpdec.o: In function `mlp_decode_init':
> mlpdec.c:(.text.unlikely+0x35): undefined reference to `ff_mlp_huffman_tables'
> mlpdec.c:(.text.unlikely+0x85): undefined reference to `ff_mlp_huffman_tables'
> mlpdec.c:(.text.unlikely+0xdb): undefined reference to `ff_mlp_huffman_tables'
> mlpdec.c:(.text.unlikely+0x121): undefined reference to `ff_mlp_init_crc'
> ffmpeg/libavcodec/ac3dec_fixed.o: In function `ac3_decode_frame':
> ac3dec_fixed.c:(.text+0x3eb7): undefined reference to `ff_ac3_parse_header'
> ac3dec_fixed.c:(.text+0x4265): undefined reference to `ff_ac3_parse_header'
> ffmpeg/libavcodec/ac3dec_float.o: In function `ac3_decode_frame':
> ac3dec_float.c:(.text+0x39bb): undefined reference to `ff_ac3_parse_header'
> ac3dec_float.c:(.text+0x3d7d): undefined reference to `ff_ac3_parse_header'
> ffmpeg/libavcodec/eac3_core_bsf.o: In function `eac3_core_filter':
> eac3_core_bsf.c:(.text+0x62): undefined reference to `ff_ac3_parse_header'
> ffmpeg/libavcodec/eac3_core_bsf.o:eac3_core_bsf.c:(.text+0x154): more undefined references to `ff_ac3_parse_header' follow
> collect2: error: ld returned 1 exit status
> make: *** [Makefile;747: mplayer] Error 1
On Mac OS I get the same when I use GNU gcc shlibs. This is how
looks with clang:
[...]
cc -o mplayer command.o m_property.o mixer.o mp_fifo.o mplayer.o parser-mpcmd.o pnm_loader.o input/input.o libao2/ao_mpegpes.o libao2/ao_null.o libao2/ao_pcm.o libao2/audio_out.o libvo/aspect.o libvo/geometry.o libvo/video_out.o libvo/vo_mpegpes.o libvo/vo_null.o sub/spuenc.o input/ar.o libao2/ao_coreaudio.o libvo/vo_corevideo.o libvo/osx_common.o libvo/osx_objc_common.o libvo/vo_png.o libvo/vo_gif89a.o libvo/gl_common.o libvo/vo_gl.o libvo/csputils.o libvo/vo_gl_tiled.o libvo/x11_common.o libvo/vo_jpeg.o libvo/vo_matrixview.o libvo/matrixview.o libvo/vo_md5sum.o libvo/vo_mng.o udp_sync.o libao2/ao_openal.o libvo/vo_pnm.o libvo/vo_tga.o libvo/vo_x11.o libvo/vo_xover.o libvo/vo_xv.o libvo/vo_yuv4mpeg.o asxparser.o bstr.o codec-cfg.o cpudetect.o edl.o fmt-conversion.o m_config.o m_option.o m_struct.o mp_msg.o mp_strings.o mpcommon.o parser-cfg.o path.o playtree.o playtreeparser.o subopt-helper.o libaf/af.o libaf/af_center.o libaf/af_channels.o libaf/af_comp.o libaf/af_delay.o libaf/af_dummy.o libaf/af_equalizer.o libaf/af_extrastereo.o libaf/af_format.o libaf/af_gate.o libaf/af_hrtf.o libaf/af_karaoke.o libaf/af_pan.o libaf/af_resample.o libaf/af_scaletempo.o libaf/af_sinesuppress.o libaf/af_stats.o libaf/af_sub.o libaf/af_surround.o libaf/af_sweep.o libaf/af_tools.o libaf/af_volnorm.o libaf/af_volume.o libaf/filter.o libaf/format.o libaf/reorder_ch.o libaf/window.o libmpcodecs/ad.o libmpcodecs/ad_alaw.o libmpcodecs/ad_dvdpcm.o libmpcodecs/ad_hwac3.o libmpcodecs/ad_hwmpa.o libmpcodecs/ad_pcm.o libmpcodecs/dec_audio.o libmpcodecs/dec_teletext.o libmpcodecs/dec_video.o libmpcodecs/img_format.o libmpcodecs/mp_image.o libmpcodecs/pullup.o libmpcodecs/vd.o libmpcodecs/vd_hmblck.o libmpcodecs/vd_lzo.o libmpcodecs/vd_mpegpes.o libmpcodecs/vd_mtga.o libmpcodecs/vd_null.o libmpcodecs/vd_raw.o libmpcodecs/vd_sgi.o libmpcodecs/vd_black.o libmpcodecs/vf.o libmpcodecs/vf_1bpp.o libmpcodecs/vf_2xsai.o libmpcodecs/vf_blackframe.o libmpcodecs/vf_boxblur.o libmpcodecs/vf_crop.o libmpcodecs/vf_cropdetect.o libmpcodecs/vf_decimate.o libmpcodecs/vf_delogo.o libmpcodecs/vf_denoise3d.o libmpcodecs/vf_detc.o libmpcodecs/vf_dint.o libmpcodecs/vf_divtc.o libmpcodecs/vf_down3dright.o libmpcodecs/vf_dsize.o libmpcodecs/vf_dvbscale.o libmpcodecs/vf_eq.o libmpcodecs/vf_eq2.o libmpcodecs/vf_expand.o libmpcodecs/vf_field.o libmpcodecs/vf_fil.o libmpcodecs/vf_filmdint.o libmpcodecs/vf_fixpts.o libmpcodecs/vf_flip.o libmpcodecs/vf_format.o libmpcodecs/vf_framestep.o libmpcodecs/vf_gradfun.o libmpcodecs/vf_halfpack.o libmpcodecs/vf_harddup.o libmpcodecs/vf_hqdn3d.o libmpcodecs/vf_hue.o libmpcodecs/vf_il.o libmpcodecs/vf_ilpack.o libmpcodecs/vf_ivtc.o libmpcodecs/vf_kerndeint.o libmpcodecs/vf_mirror.o libmpcodecs/vf_noformat.o libmpcodecs/vf_noise.o libmpcodecs/vf_ow.o libmpcodecs/vf_palette.o libmpcodecs/vf_perspective.o libmpcodecs/vf_phase.o libmpcodecs/vf_pp7.o libmpcodecs/vf_pullup.o libmpcodecs/vf_rectangle.o libmpcodecs/vf_remove_logo.o libmpcodecs/vf_rgbtest.o libmpcodecs/vf_rotate.o libmpcodecs/vf_sab.o libmpcodecs/vf_scale.o libmpcodecs/vf_smartblur.o libmpcodecs/vf_softpulldown.o libmpcodecs/vf_stereo3d.o libmpcodecs/vf_softskip.o libmpcodecs/vf_swapuv.o libmpcodecs/vf_telecine.o libmpcodecs/vf_test.o libmpcodecs/vf_tfields.o libmpcodecs/vf_tile.o libmpcodecs/vf_tinterlace.o libmpcodecs/vf_unsharp.o libmpcodecs/vf_vo.o libmpcodecs/vf_yadif.o libmpcodecs/vf_yuvcsp.o libmpcodecs/vf_yvu9.o libmpdemux/aac_hdr.o libmpdemux/asfheader.o libmpdemux/aviheader.o libmpdemux/aviprint.o libmpdemux/demuxer.o libmpdemux/demux_aac.o libmpdemux/demux_asf.o libmpdemux/demux_audio.o libmpdemux/demux_avi.o libmpdemux/demux_demuxers.o libmpdemux/demux_film.o libmpdemux/demux_fli.o libmpdemux/demux_lmlm4.o libmpdemux/demux_mf.o libmpdemux/demux_mkv.o libmpdemux/demux_mov.o libmpdemux/demux_mpg.o libmpdemux/demux_nsv.o libmpdemux/demux_pva.o libmpdemux/demux_rawaudio.o libmpdemux/demux_rawvideo.o libmpdemux/demux_realaud.o libmpdemux/demux_real.o libmpdemux/demux_roq.o libmpdemux/demux_smjpeg.o libmpdemux/demux_ts.o libmpdemux/demux_ty.o libmpdemux/demux_ty_osd.o libmpdemux/demux_viv.o libmpdemux/demux_vqf.o libmpdemux/demux_y4m.o libmpdemux/ebml.o libmpdemux/extension.o libmpdemux/mf.o libmpdemux/mp3_hdr.o libmpdemux/mp_taglists.o libmpdemux/mpeg_hdr.o libmpdemux/mpeg_packetizer.o libmpdemux/parse_es.o libmpdemux/parse_mp4.o libmpdemux/video.o libmpdemux/yuv4mpeg.o libmpdemux/yuv4mpeg_ratio.o osdep/getch2.o osdep/timer-darwin.o stream/open.o stream/stream.o stream/stream_bd.o stream/stream_cue.o stream/stream_file.o stream/stream_mf.o stream/stream_null.o stream/url.o sub/eosd.o sub/find_sub.o sub/osd.o sub/spudec.o sub/sub.o sub/sub_cc.o sub/subreader.o sub/vobsub.o sub/font_load.o stream/stream_dvdnav.o stream/stream_dvd.o stream/stream_dvd_common.o libvo/aclib.o av_helpers.o av_opts.o libaf/af_lavcac3enc.o libaf/af_lavcresample.o libmpcodecs/ad_ffmpeg.o libmpcodecs/ad_spdif.o libmpcodecs/vd_ffmpeg.o libmpcodecs/vf_geq.o libmpcodecs/vf_lavc.o libmpcodecs/vf_lavcdeint.o libmpcodecs/vf_screenshot.o libmpdemux/demux_lavf.o stream/stream_ffmpeg.o sub/av_sub.o libmpcodecs/vf_fspp.o libmpcodecs/vf_qp.o libmpcodecs/vf_spp.o libmpcodecs/vf_uspp.o sub/font_load_ft.o stream/stream_ftp.o libmpdemux/demux_gif.o libmpcodecs/vf_bmovl.o libaf/af_export.o osdep/mmap_anon.o libmpcodecs/vd_ijpg.o libmpcodecs/vf_ass.o sub/ass_mp.o sub/subassconvert.o libmpcodecs/vd_theora.o libmpdemux/demux_mng.o stream/stream_rtsp.o stream/freesdp/common.o stream/freesdp/errorlist.o stream/freesdp/parser.o stream/librtsp/rtsp.o stream/librtsp/rtsp_rtp.o stream/librtsp/rtsp_session.o stream/stream_netstream.o stream/asf_mmst_streaming.o stream/asf_streaming.o stream/cookies.o stream/http.o stream/network.o stream/pnm.o stream/rtp.o stream/udp.o stream/tcp.o stream/stream_rtp.o stream/stream_udp.o stream/realrtsp/asmrp.o stream/realrtsp/real.o stream/realrtsp/rmff.o stream/realrtsp/sdpplin.o stream/realrtsp/xbuffer.o libmpcodecs/vd_mpng.o libmpcodecs/vf_pp.o libmpcodecs/ad_realaud.o libmpcodecs/vd_realvid.o libmpcodecs/ad_speex.o stream/cache2.o stream/frequencies.o stream/stream_tv.o stream/tv.o stream/tvi_dummy.o sub/unrar_exec.o stream/stream_vcd.o libmpcodecs/ad_libvorbis.o libmpdemux/demux_ogg.o libmpcodecs/vd_xanim.o libmpcodecs/vd_xvid4.o osdep/shmem.o ffmpeg/libpostproc/libpostproc.a ffmpeg/libavfilter/libavfilter.a ffmpeg/libavformat/libavformat.a ffmpeg/libavcodec/libavcodec.a ffmpeg/libswscale/libswscale.a ffmpeg/libswresample/libswresample.a ffmpeg/libavutil/libavutil.a -L/usr/local/lib -L/sw/lib -fpie -pie -liconv -lncurses -L/sw/lib/gnutls28 -lgnutls -framework CoreFoundation -framework VideoDecodeAcceleration -framework QuartzCore -lpng -lz -lmng -lz -ljpeg -L/sw/lib -lopenjp2 -lgif -L/usr/local/lib -ldvdread -L/sw/lib -lfreetype -lfontconfig -lfribidi -lass -lenca -lz -lbz2 -llzo2 -lvorbisenc -lvorbis -logg -lspeex -ltheoradec -logg -L/usr/local/lib -lopus -lrtmp -lxvidcore -lvpx -L/usr/X11/lib -L/usr/local/lib -ldvdnav -ldvdread -lpthread -lm -ldvdcss -framework IOKit -framework Cocoa -lXext -lX11 -lXss -lXv -lXinerama -lXxf86vm -framework Carbon -framework Cocoa -framework QuartzCore -framework OpenGL -lGL -framework OpenAL -framework CoreAudio -framework AudioUnit -framework AudioToolbox -lx264 -lmp3lame
clang: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
Undefined symbols for architecture x86_64:
"_ff_ac3_parse_header", referenced from:
_ac3_decode_frame in libavcodec.a(ac3dec_float.o)
_ac3_decode_frame in libavcodec.a(ac3dec_fixed.o)
_eac3_core_filter in libavcodec.a(eac3_core_bsf.o)
"_ff_h263_find_frame_end", referenced from:
_ff_h263_decode_frame in libavcodec.a(h263dec.o)
"_ff_mlp_read_major_sync", referenced from:
_read_access_unit in libavcodec.a(mlpdec.o)
"_ff_mpeg4_find_frame_end", referenced from:
_ff_h263_decode_frame in libavcodec.a(h263dec.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:747: mplayer] Error 1
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.6
BuildVersion: 17G65
ffmpeg builds OK:
$ ffmpeg -version
ffmpeg version N-91536-geb94ec3257 Copyright (c) 2000-2018 the FFmpeg developers
built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
configuration: --enable-gpl --enable-nonfree --enable-shared --enable-openssl --enable-pic --enable-libspeex --enable-libopus --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --enable-libfreetype --enable-libzimg --enable-libass --extra-cflags=-I/sw/include --extra-libs='-L/sw/lib -L/sw/lib/freetype219/lib -L/sw/lib/gcc6/lib'
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 22.100 / 58. 22.100
libavformat 58. 17.101 / 58. 17.101
libavdevice 58. 4.101 / 58. 4.101
libavfilter 7. 26.100 / 7. 26.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Ideas anyone?
TIA
--
LAST SHIP HOME
Die Weltumsegelung der Peter von Danzig
Ein Film von Michael Weber und Christian Ebert
--->> https://lastshiphome.de
More information about the MPlayer-users
mailing list