MPlayer 1.1을 크로스컴파일 하는데
가장 마지막 단계에서 배째는지라 죽어라 검색.. -_-

/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -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 libao2/ao_alsa.o input/appleir.o libvo/vo_png.o udp_sync.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_dk3adpcm.o libmpcodecs/ad_dvdpcm.o libmpcodecs/ad_hwac3.o libmpcodecs/ad_hwmpa.o libmpcodecs/ad_imaadpcm.o libmpcodecs/ad_msadpcm.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/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-linux.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/dvb_tune.o stream/stream_dvb.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_mcdeint.o libmpcodecs/vf_qp.o libmpcodecs/vf_spp.o libmpcodecs/vf_uspp.o sub/font_load_ft.o libmpcodecs/vf_bmovl.o libaf/af_export.o osdep/mmap_anon.o libmpcodecs/vf_ass.o sub/ass_mp.o sub/subassconvert.o libass/ass.o libass/ass_bitmap.o libass/ass_cache.o libass/ass_drawing.o libass/ass_font.o libass/ass_fontconfig.o libass/ass_library.o libass/ass_parse.o libass/ass_render.o libass/ass_render_api.o libass/ass_shaper.o libass/ass_strtod.o libass/ass_utils.o libmpcodecs/ad_libmad.o libmpcodecs/vd_libmpeg2.o libmpeg2/alloc.o libmpeg2/cpu_accel.o libmpeg2/cpu_state.o libmpeg2/decode.o libmpeg2/header.o libmpeg2/idct.o libmpeg2/motion_comp.o libmpeg2/slice.o libmpeg2/motion_comp_arm.o libmpeg2/motion_comp_arm_s.o libmpdemux/demux_rtp.o libmpdemux/demux_rtp_codec.o stream/stream_live555.o libmpcodecs/ad_mpg123.o libmpcodecs/ad_mp3lib.o mp3lib/sr1.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/vf_pp.o libmpcodecs/ad_realaud.o libmpcodecs/vd_realvid.o stream/cache2.o tremor/bitwise.o tremor/block.o tremor/codebook.o tremor/floor0.o tremor/floor1.o tremor/framing.o tremor/info.o tremor/mapping0.o tremor/mdct.o tremor/registry.o tremor/res012.o tremor/sharedbook.o tremor/synthesis.o tremor/window.o sub/unrar_exec.o libmpcodecs/ad_libvorbis.o libmpdemux/demux_ogg.o libmpcodecs/vd_xanim.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 -Wl,-z,noexecstack -lm -L/home/minimonk/work/live/liveMedia -L/home/minimonk/work/live/UsageEnvironment -L/home/minimonk/work/live/groupsock -L/home/minimonk/work/live/BasicUsageEnvironment -L/home/paseries/trunk/build/ltib/rootfs//usr/lib -ffast-math   -lncurses -lasound -ldl -lpthread -lfreetype -lz -lz -lbz2 -lmad -lmpg123 -lpthread -ldl -rdynamic  -lliveMedia -lUsageEnvironment -lgroupsock -lBasicUsageEnvironment

libmpdemux/demux_rtp.o: In function `demux_close_rtp':
demux_rtp.cpp:(.text+0x300): undefined reference to `operator delete[](void*)'
demux_rtp.cpp:(.text+0x308): undefined reference to `operator delete(void*)'
libmpdemux/demux_rtp.o: In function `demux_open_rtp':
demux_rtp.cpp:(.text+0x7ac): undefined reference to `operator new(unsigned int)'
demux_rtp.cpp:(.text+0xaac): undefined reference to `operator new(unsigned int)'
demux_rtp.cpp:(.text+0xb20): undefined reference to `operator new(unsigned int)'
demux_rtp.cpp:(.text+0xdf4): undefined reference to `__cxa_end_cleanup'
libmpdemux/demux_rtp.o: In function `ReadBufferQueue::~ReadBufferQueue()':
demux_rtp.cpp:(.text+0x1170): undefined reference to `operator delete(void*)'
libmpdemux/demux_rtp.o:(.ARM.extab+0x0): undefined reference to `__gxx_personality_v0'
libmpdemux/demux_rtp.o:(.rodata+0x24): undefined reference to `vtable for __cxxabiv1::__class_type_info'
libmpdemux/demux_rtp_codec.o: In function `rtpCodecInitialize_video(demuxer*, MediaSubsession*, unsigned int&)':
demux_rtp_codec.cpp:(.text+0xd00): undefined reference to `operator new[](unsigned int)'
demux_rtp_codec.cpp:(.text+0xe1c): undefined reference to `operator delete[](void*)'
/home/minimonk/work/live/liveMedia/libliveMedia.a(Media.o): In function `MediaLookupTable::~MediaLookupTable()':
Media.cpp:(.text+0x25c): undefined reference to `operator delete(void*)'
/home/minimonk/work/live/liveMedia/libliveMedia.a(Media.o): In function `_Tables::~_Tables()':
Media.cpp:(.text+0x280): undefined reference to `operator delete(void*)'
/home/minimonk/work/live/liveMedia/libliveMedia.a(Media.o): In function `Medium::~Medium()':
Media.cpp:(.text+0x2c8): undefined reference to `operator delete(void*)'
/home/minimonk/work/live/liveMedia/libliveMedia.a(Media.o): In function `_Tables::getOurTables(UsageEnvironment&, unsigned int)':
Media.cpp:(.text+0x3b4): undefined reference to `operator new(unsigned int)'
/home/minimonk/work/live/liveMedia/libliveMedia.a(Media.o): In function `MediaLookupTable::ourMedia(UsageEnvironment&)':
Media.cpp:(.text+0x4ac): undefined reference to `operator new(unsigned int)'
Media.cpp:(.text+0x4d0): undefined reference to `operator delete(void*)'
Media.cpp:(.text+0x4d8): undefined reference to `__cxa_end_cleanup'
/home/minimonk/work/live/liveMedia/libliveMedia.a(Media.o):(.ARM.extab+0x0): undefined reference to `__gxx_personality_v0'
/home/minimonk/work/live/liveMedia/libliveMedia.a(Media.o):(.rodata+0x64): undefined reference to `vtable for __cxxabiv1::__class_type_info'
/home/minimonk/work/live/liveMedia/libliveMedia.a(Media.o):(.rodata+0x78): undefined reference to `vtable for __cxxabiv1::__class_type_info'
/home/minimonk/work/live/liveMedia/libliveMedia.a(Media.o):(.rodata+0x88): undefined reference to `vtable for __cxxabiv1::__class_type_info'
/home/minimonk/work/live/liveMedia/libliveMedia.a(FramedSource.o): In function `FramedSource::~FramedSource()':
FramedSource.cpp:(.text+0x284): undefined reference to `operator delete(void*)'
/home/minimonk/work/live/liveMedia/libliveMedia.a(FramedSource.o):(.rodata+0x5c): undefined reference to `__cxa_pure_virtual'
/home/minimonk/work/live/liveMedia/libliveMedia.a(FramedSource.o):(.rodata+0x74): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/home/minimonk/work/live/liveMedia/libliveMedia.a(MPEG4LATMAudioRTPSource.o): In function `parseGeneralConfigStr(char const*, unsigned int&)': 

Take a look here: Linux C++: Linker is outputting strange errors.
In Android's Application.mk this would be:
APP_CPPFLAGS := -frtti
[링크 : http://stackoverflow.com/.../linker-errors-in-android-ndk-undefined-reference-to-cxa-end-cleanup]

It looks like you are not linking the proper C++ runtime libraries (which can be different then libstdc++). You should try using the C++ compiler to drive the linker rather then invoking the linker directly.
If you need to pass linker specific options via the compiler, you can use -Wl: 
[링크 : http://stackoverflow.com/questions/2665255/linux-c-linker-is-outputting-strange-errors]

아무튼.. g++로 컴파일 해야 하는데 gcc로 하는 바람에
c++ 그게 모에요? 우걱우걱 하는 현상으로 저런 말도 안되는 이상한 에러를 뿜뿜하는 상황
CC를 CXX로 바꾸면 된다. 
$ vi Makefile
 793 mencoder$(EXESUF) mplayer$(EXESUF):
 794     $(CXX) -o $@ $^ $(EXTRALIBS) 

물론  CXX로 쓰려면 config.mak 에서 CXX 변수도 gcc에서 g++로 변경해 주어야 한다.
$ vi config.mak
27 CC      = /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linu     x-gnueabi-gcc
28 CXX     = /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linu     x-gnueabi-g++ 

Posted by 구차니