[MPlayer-users] Linking problem with mencoder

Scott netmasta10bt at yahoo.com
Wed Dec 26 07:09:02 CET 2001


Hello, I'm trying to build mencoder on RedHat 7.2.  I've upgraded binutils
pacakge to 2.11.92.0.12.  I get the same linking problem as the fellow trying
to compile on Slackware 8.0.  He missed in pasting the command that was run to
generate the error:

gcc3   mencoder.o   -o mencoder
mencoder.o: In function `draw_slice':
mencoder.o(.text+0x135): undefined reference to `SwScale_YV12slice'
mencoder.o(.text+0x17c): undefined reference to `fast_memcpy'
mencoder.o(.text+0x1dd): undefined reference to `fast_memcpy'
mencoder.o(.text+0x24d): undefined reference to `fast_memcpy'
mencoder.o: In function `main':
mencoder.o(.text+0x2b5): undefined reference to `mp_msg_init'
mencoder.o(.text+0x2cd): undefined reference to `mp_msg_c'
mencoder.o(.text+0x2e1): undefined reference to `parse_codec_cfg'
mencoder.o(.text+0x2f4): undefined reference to `gCpuCaps'
mencoder.o(.text+0x2f9): undefined reference to `GetCpuCaps'
mencoder.o(.text+0x300): undefined reference to `gCpuCaps'
mencoder.o(.text+0x306): undefined reference to `gCpuCaps'
mencoder.o(.text+0x30c): undefined reference to `gCpuCaps'
mencoder.o(.text+0x312): undefined reference to `gCpuCaps'
mencoder.o(.text+0x318): undefined reference to `gCpuCaps'
mencoder.o(.text+0x31e): more undefined references to `gCpuCaps' follow
mencoder.o: In function `main':
mencoder.o(.text+0x333): undefined reference to `mp_msg_c'
mencoder.o(.text+0x382): undefined reference to `parse_command_line'
mencoder.o(.text+0x3a8): undefined reference to `mp_msg_init'
mencoder.o(.text+0x3d1): undefined reference to `open_stream'
mencoder.o(.text+0x41d): undefined reference to `stream_enable_cache'
mencoder.o(.text+0x446): undefined reference to `demux_open'
mencoder.o(.text+0x48c): undefined reference to `video_read_properties'
mencoder.o(.text+0x4c8): undefined reference to `mp_msg_c'
mencoder.o(.text+0x502): undefined reference to `mp_msg_c'
mencoder.o(.text+0x52d): undefined reference to `find_codec'
mencoder.o(.text+0x5f7): undefined reference to `mp_msg_c'
mencoder.o(.text+0x6ee): undefined reference to `init_video'
mencoder.o(.text+0x731): undefined reference to `mp_msg_c'
mencoder.o(.text+0x751): undefined reference to `find_codec'
mencoder.o(.text+0x7c7): undefined reference to `mp_msg_c'
mencoder.o(.text+0x7e6): undefined reference to `mp_msg_c'
mencoder.o(.text+0x7f2): undefined reference to `init_audio'
mencoder.o(.text+0x824): undefined reference to `mp_msg_c'
mencoder.o(.text+0x82c): undefined reference to `SwScale_Init'
mencoder.o(.text+0x869): undefined reference to `aviwrite_new_muxer'
mencoder.o(.text+0x87a): undefined reference to `aviwrite_new_stream'
mencoder.o(.text+0x9f0): undefined reference to `aviwrite_new_stream'
mencoder.o(.text+0xa60): undefined reference to `aviwrite_write_header'
mencoder.o(.text+0xae2): undefined reference to `aviwrite_write_index'
mencoder.o(.text+0xb13): undefined reference to `aviwrite_write_header'
mencoder.o(.text+0xc25): undefined reference to `free_stream'
mencoder.o(.text+0xd02): undefined reference to `aviwrite_write_chunk'
mencoder.o(.text+0xd3c): undefined reference to `fast_memcpy'
mencoder.o(.text+0xd9a): undefined reference to `video_read_frame'
mencoder.o(.text+0xd9a): undefined reference to `video_read_frame'
mencoder.o(.text+0xf8a): undefined reference to `pts_from_bps'
mencoder.o(.text+0x11fa): undefined reference to `aviwrite_write_chunk'
mencoder.o(.text+0x1278): undefined reference to `decode_video'
mencoder.o(.text+0x12de): undefined reference to `encore'
mencoder.o(.text+0x132c): undefined reference to
`VbrControl_update_2pass_vbr_analysis'
mencoder.o(.text+0x1340): undefined reference to `VbrControl_get_quant'
mencoder.o(.text+0x134b): undefined reference to `VbrControl_get_intra'
mencoder.o(.text+0x1360): undefined reference to `encore'
mencoder.o(.text+0x1371): undefined reference to
`VbrControl_update_2pass_vbr_encoding'
mencoder.o(.text+0x1398): undefined reference to `decode_video'
mencoder.o(.text+0x13ea): undefined reference to `aviwrite_write_chunk'
mencoder.o(.text+0x15a2): undefined reference to `decode_audio'
mencoder.o(.text+0x15db): undefined reference to `fast_memcpy'
mencoder.o(.text+0x1602): undefined reference to `fast_memcpy'
mencoder.o(.text+0x166e): undefined reference to `demux_read_data'
mencoder.o(.text+0x172c): undefined reference to `encore'
mencoder.o(.text+0x177f): undefined reference to `vo_format_name'
mencoder.o(.text+0x1792): undefined reference to `mp_msg_c'
mencoder.o(.text+0x17d4): undefined reference to
`VbrControl_init_2pass_vbr_encoding'
mencoder.o(.text+0x17f0): undefined reference to
`VbrControl_init_2pass_vbr_analysis'
mencoder.o(.text+0x1e02): undefined reference to `mp_msg_c'
mencoder.o(.text+0x1e7f): undefined reference to `mp_msg_c'
mencoder.o(.text+0x1eac): undefined reference to `mp_msg_c'
mencoder.o(.text+0x1ecb): undefined reference to `mp_msg_c'
mencoder.o(.text+0x203a): undefined reference to `mp_msg_c'
mencoder.o(.text+0x2086): undefined reference to `dvd_title'
mencoder.o(.text+0x2094): undefined reference to `tv_param_on'
mencoder.o(.text+0x20ab): undefined reference to `parse_codec_cfg'
mencoder.o(.text+0x20c8): undefined reference to `mp_msg_c'
mencoder.o(.text+0x2177): undefined reference to `mp_msg_c'
mencoder.o(.text+0x2196): undefined reference to `mp_msg_c'
mencoder.o(.text+0x21b4): undefined reference to `mp_msg_c'
mencoder.o(.text+0x21d2): undefined reference to `mp_msg_c'
mencoder.o: In function `dec_audio':
mencoder.o(.text+0x22d0): undefined reference to `decode_audio'
mencoder.o(.text+0x22f4): undefined reference to `fast_memcpy'
mencoder.o(.text+0x2316): undefined reference to `fast_memcpy'
mencoder.o: In function `cfg_include':
mencoder.o(.text+0x2228): undefined reference to `parse_config_file'
mencoder.o(.data+0xc4): undefined reference to `tv_param_on'
mencoder.o(.data+0xdc): undefined reference to `tv_param_driver'
mencoder.o(.data+0xf4): undefined reference to `tv_param_device'
mencoder.o(.data+0x10c): undefined reference to `tv_param_freq'
mencoder.o(.data+0x124): undefined reference to `tv_param_channel'
mencoder.o(.data+0x13c): undefined reference to `tv_param_chanlist'
mencoder.o(.data+0x154): undefined reference to `tv_param_norm'
mencoder.o(.data+0x16c): undefined reference to `tv_param_width'
mencoder.o(.data+0x184): undefined reference to `tv_param_height'
mencoder.o(.data+0x19c): undefined reference to `tv_param_input'
mencoder.o(.data+0x1b4): undefined reference to `tv_param_outfmt'
mencoder.o(.data+0x1cc): undefined reference to `tv_param_fps'
mencoder.o(.data+0x204): undefined reference to `vivo_param_version'
mencoder.o(.data+0x21c): undefined reference to `vivo_param_acodec'
mencoder.o(.data+0x234): undefined reference to `vivo_param_abitrate'
mencoder.o(.data+0x24c): undefined reference to `vivo_param_samplerate'
mencoder.o(.data+0x264): undefined reference to `vivo_param_bytesperblock'
mencoder.o(.data+0x27c): undefined reference to `vivo_param_width'
mencoder.o(.data+0x294): undefined reference to `vivo_param_height'
mencoder.o(.data+0x2ac): undefined reference to `vivo_param_vformat'
mencoder.o(.data+0x72c): undefined reference to `pts_from_bps'
mencoder.o(.data+0x744): undefined reference to `pts_from_bps'
mencoder.o(.data+0x75c): undefined reference to `force_ni'
mencoder.o(.data+0x774): undefined reference to `force_ni'
mencoder.o(.data+0x78c): undefined reference to `index_mode'
mencoder.o(.data+0x7a4): undefined reference to `index_mode'
mencoder.o(.data+0x7bc): undefined reference to `index_mode'
mencoder.o(.data+0x87c): undefined reference to `fakemono'
mencoder.o(.data+0x90c): undefined reference to `divx_quality'
mencoder.o(.data+0x924): undefined reference to `use_old_pp'
mencoder.o(.data+0x93c): undefined reference to `sws_flags'
collect2: ld returned 1 exit status
make: *** [mencoder] Error 1


-----

Now if I do a make 'divx4_vbr' and mod the compile line from the mplayer link
as so:

gcc3 -march=athlon -mcpu=athlon -O6 -D_REENTRANT -Ilibmpdemux -Iloader -Ilibvo
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include  -o mencoder mencoder.o ima4.o xacodec.o cpudetect.o
mp_msg.o ac3-iec958.o dec_audio.o dec_video.o msvidc.o cinepak.o fli.o qtrle.o
codec-cfg.o cfgparser.o my_profile.o find_sub.o subreader.o lirc_mp.o mixer.o
spudec.o dll_init.o -Lg72x -lg72x -Lmp3lib -lMP3 -Llibac3 -lac3 -Lliba52 -la52
-Lxa -lxa -Llibmpeg2 -lmpeg2  -Llibmpdemux -lmpdemux -Llibvo -lvo -Llibao2
-lao2 -Lloader -lloader -Lloader/dshow -lDS_Filter -LGui -lgui -Llinux -losdep
-Lpostproc -lpostproc     -lvorbis -logg  -L/usr/X11R6/lib -lX11 -lXext  -lnsl
-lGL -lXxf86dga -lXv -lXxf86vm -lXinerama   -lnsl -Llibmp1e -lmp1e   -lpng -lz
-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm -L/usr/lib -ldl -lartsc
-DPIC -fPIC -lpthread -L/usr/lib -lesd -laudiofile -lm -L/usr/X11R6/lib -lX11
-lXext -lXxf86vm -lXxf86dga -lXv -ldl  -laa    -lpthread -ldl   -ldivxdecore
opendivx/postprocess.o -ltermcap  -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk
-rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -L/usr/lib -lglib -lpng
-lz -lz -lm -Lencore -lencore divx4_vbr.o

I get a little bit further:

libvo/libvo.a(x11_common.o): In function `vo_x11_putkey':
x11_common.o(.text+0x4b0): multiple definition of `vo_x11_putkey'
mencoder.o(.text+0x2240): first defined here
/usr/bin/ld: Warning: size of symbol `vo_x11_putkey' changed from 5 to 629 in
libvo/libvo.a(x11_common.o)
libvo/libvo.a(x11_common.o)(.data+0x20): multiple definition of `vo_resize'
mencoder.o(.data+0x9d4): first defined here
libvo/libvo.a(x11_common.o)(.data+0x24): multiple definition of `vo_expose'
mencoder.o(.data+0x9d8): first defined here
libvo/libvo.a(x11_common.o): In function `vo_setwindow':
x11_common.o(.text+0x9f0): multiple definition of `vo_setwindow'
mencoder.o(.text+0x2250): first defined here
/usr/bin/ld: Warning: size of symbol `vo_setwindow' changed from 5 to 31 in
libvo/libvo.a(x11_common.o)
libvo/libvo.a(x11_common.o): In function `vo_setwindowsize':
x11_common.o(.text+0xa10): multiple definition of `vo_setwindowsize'
mencoder.o(.text+0x2260): first defined here
/usr/bin/ld: Warning: size of symbol `vo_setwindowsize' changed from 5 to 21 in
libvo/libvo.a(x11_common.o)
libvo/libvo.a(vo_aa.o): In function `init':
vo_aa.o(.text+0x55f): undefined reference to `quiet'
libvo/libvo.a(vo_aa.o): In function `check_events':
vo_aa.o(.text+0xb84): undefined reference to `mplayer_put_key'
vo_aa.o(.text+0x1245): undefined reference to `mplayer_put_key'
libvo/libvo.a(vo_aa.o): In function `uninit':
vo_aa.o(.text+0x170f): undefined reference to `quiet'
libvo/libvo.a(vo_sdl.o): In function `check_events':
vo_sdl.o(.text+0x1797): undefined reference to `mplayer_put_key'
libvo/libvo.a(x11_common.o): In function `vo_x11_putkey':
x11_common.o(.text+0x512): undefined reference to `mplayer_put_key'
x11_common.o(.text+0x521): undefined reference to `mplayer_put_key'
x11_common.o(.text+0x52e): undefined reference to `mplayer_put_key'
x11_common.o(.text+0x54a): undefined reference to `mplayer_put_key'
libvo/libvo.a(x11_common.o)(.text+0x55e): more undefined references to
`mplayer_put_key' follow
collect2: ld returned 1 exit status

-----

What do you think?  When/if replying to this, please also send to my email
address as I'm not subscribed to this list.

Thanks for your time,

-- Scott




More information about the MPlayer-users mailing list