Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to compile xine lib 1.1.16.3 on Fedora 11 - I get the following error:
Code:
libtool: link: gcc -shared .libs/xineplug_decode_ff_la-ffmpeg_decoder.o .libs/xineplug_decode_ff_la-ff_audio_decoder.o .libs/xineplug_decode_ff_la-ff_video_decoder.o .libs/xineplug_decode_ff_la-ffmpeg_encoder.o .libs/xineplug_decode_ff_la-ff_mpeg_parser.o -Wl,-rpath -Wl,/home/rylan/xine-lib-1.1.16.3/src/xine-engine/.libs ../../../src/xine-engine/.libs/libxine.so -ldl -lrt -lresolv -lnsl -lm -lz -L/usr/local/lib -lavcodec -lavutil -lpostproc -mtune=pentiumpro -march=i686 -mmmx -msse2 -Wl,--no-undefined -pthread -pthread -Wl,-soname -Wl,xineplug_decode_ff.so -o .libs/xineplug_decode_ff.so
/usr/bin/ld: Dwarf Error: Offset (5588) greater than or equal to .debug_str size (588).
/usr/local/lib/libavcodec.a(libfaad.o): In function `faac_decode_init':
/home/rylan/ffmpeg/libavcodec/libfaad.c:252: undefined reference to `NeAACDecOpen'
/home/rylan/ffmpeg/libavcodec/libfaad.c:253: undefined reference to `NeAACDecClose'
/home/rylan/ffmpeg/libavcodec/libfaad.c:254: undefined reference to `NeAACDecGetCurrentConfiguration'
/home/rylan/ffmpeg/libavcodec/libfaad.c:255: undefined reference to `NeAACDecSetConfiguration'
/home/rylan/ffmpeg/libavcodec/libfaad.c:256: undefined reference to `NeAACDecInit'
/home/rylan/ffmpeg/libavcodec/libfaad.c:257: undefined reference to `NeAACDecInit2'
/home/rylan/ffmpeg/libavcodec/libfaad.c:258: undefined reference to `NeAACDecDecode'
/home/rylan/ffmpeg/libavcodec/libfaad.c:260: undefined reference to `NeAACDecGetErrorMessage'
/home/rylan/ffmpeg/libavcodec/libfaad.c:274: undefined reference to `NeAACDecOpen'
/usr/bin/ld: Dwarf Error: Offset (5564) greater than or equal to .debug_str size (477).
/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_frame':
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:160: undefined reference to `lame_encode_buffer'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:152: undefined reference to `lame_encode_buffer_interleaved'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:170: undefined reference to `lame_encode_flush'
/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_close':
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:212: undefined reference to `lame_close'
/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_init':
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:48: undefined reference to `lame_init'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:50: undefined reference to `lame_set_in_samplerate'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:51: undefined reference to `lame_set_out_samplerate'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:52: undefined reference to `lame_set_num_channels'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:54: undefined reference to `lame_set_quality'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:56: undefined reference to `lame_set_quality'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:59: undefined reference to `lame_set_mode'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:60: undefined reference to `lame_set_brate'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:62: undefined reference to `lame_set_brate'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:63: undefined reference to `lame_set_VBR'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:64: undefined reference to `lame_set_VBR_q'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:66: undefined reference to `lame_set_bWriteVbrTag'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:67: undefined reference to `lame_set_disable_reservoir'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:68: undefined reference to `lame_init_params'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:71: undefined reference to `lame_get_framesize'
/home/rylan/ffmpeg/libavcodec/libmp3lame.c:79: undefined reference to `lame_close'
/usr/bin/ld: Dwarf Error: Offset (5737) greater than or equal to .debug_str size (873).
/usr/local/lib/libavcodec.a(libopenjpeg.o): In function `libopenjpeg_decode_frame':
/home/rylan/ffmpeg/libavcodec/libopenjpeg.c:83: undefined reference to `opj_create_decompress'
/home/rylan/ffmpeg/libavcodec/libopenjpeg.c:90: undefined reference to `opj_set_event_mgr'
/home/rylan/ffmpeg/libavcodec/libopenjpeg.c:93: undefined reference to `opj_setup_decoder'
/home/rylan/ffmpeg/libavcodec/libopenjpeg.c:94: undefined reference to `opj_cio_open'
/home/rylan/ffmpeg/libavcodec/libopenjpeg.c:102: undefined reference to `opj_decode_with_info'
/home/rylan/ffmpeg/libavcodec/libopenjpeg.c:103: undefined reference to `opj_cio_close'
/home/rylan/ffmpeg/libavcodec/libopenjpeg.c:166: undefined reference to `opj_image_destroy'
/home/rylan/ffmpeg/libavcodec/libopenjpeg.c:167: undefined reference to `opj_destroy_decompress'
/home/rylan/ffmpeg/libavcodec/libopenjpeg.c:81: undefined reference to `opj_create_decompress'
/home/rylan/ffmpeg/libavcodec/libopenjpeg.c:97: undefined reference to `opj_destroy_decompress'
/home/rylan/ffmpeg/libavcodec/libopenjpeg.c:106: undefined reference to `opj_destroy_decompress'
/usr/local/lib/libavcodec.a(libopenjpeg.o): In function `libopenjpeg_decode_init':
/home/rylan/ffmpeg/libavcodec/libopenjpeg.c:54: undefined reference to `opj_set_default_decoder_parameters'
/usr/bin/ld: Dwarf Error: Offset (5853) greater than or equal to .debug_str size (852).
/usr/local/lib/libavcodec.a(libtheoraenc.o): In function `encode_frame':
/home/rylan/ffmpeg/libavcodec/libtheoraenc.c:201: undefined reference to `theora_encode_YUVin'
/home/rylan/ffmpeg/libavcodec/libtheoraenc.c:220: undefined reference to `theora_encode_packetout'
/usr/local/lib/libavcodec.a(libtheoraenc.o): In function `encode_close':
/home/rylan/ffmpeg/libavcodec/libtheoraenc.c:250: undefined reference to `theora_encode_packetout'
/home/rylan/ffmpeg/libavcodec/libtheoraenc.c:251: undefined reference to `theora_clear'
/usr/local/lib/libavcodec.a(libtheoraenc.o): In function `encode_init':
/home/rylan/ffmpeg/libavcodec/libtheoraenc.c:89: undefined reference to `theora_info_init'
/home/rylan/ffmpeg/libavcodec/libtheoraenc.c:124: undefined reference to `theora_encode_init'
/home/rylan/ffmpeg/libavcodec/libtheoraenc.c:130: undefined reference to `theora_info_clear'
/home/rylan/ffmpeg/libavcodec/libtheoraenc.c:142: undefined reference to `theora_encode_header'
/home/rylan/ffmpeg/libavcodec/libtheoraenc.c:148: undefined reference to `theora_comment_init'
/home/rylan/ffmpeg/libavcodec/libtheoraenc.c:149: undefined reference to `theora_encode_comment'
/home/rylan/ffmpeg/libavcodec/libtheoraenc.c:155: undefined reference to `theora_encode_tables'
/home/rylan/ffmpeg/libavcodec/libtheoraenc.c:161: undefined reference to `theora_comment_clear'
/usr/bin/ld: Dwarf Error: Offset (5763) greater than or equal to .debug_str size (485).
/usr/local/lib/libavcodec.a(libvorbis.o): In function `oggvorbis_encode_frame':
/home/rylan/ffmpeg/libavcodec/libvorbis.c:148: undefined reference to `vorbis_analysis_buffer'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:158: undefined reference to `vorbis_analysis_wrote'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:165: undefined reference to `vorbis_analysis_blockout'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:166: undefined reference to `vorbis_analysis'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:167: undefined reference to `vorbis_bitrate_addblock'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:169: undefined reference to `vorbis_bitrate_flushpacket'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:161: undefined reference to `vorbis_analysis_wrote'
/usr/local/lib/libavcodec.a(libvorbis.o): In function `oggvorbis_encode_close':
/home/rylan/ffmpeg/libavcodec/libvorbis.c:205: undefined reference to `vorbis_analysis_wrote'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:207: undefined reference to `vorbis_block_clear'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:208: undefined reference to `vorbis_dsp_clear'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:209: undefined reference to `vorbis_info_clear'
/usr/local/lib/libavcodec.a(libvorbis.o): In function `oggvorbis_encode_init':
/home/rylan/ffmpeg/libavcodec/libvorbis.c:91: undefined reference to `vorbis_info_init'
/usr/local/lib/libavcodec.a(libvorbis.o): In function `oggvorbis_init_encoder':
/home/rylan/ffmpeg/libavcodec/libvorbis.c:58: undefined reference to `vorbis_encode_setup_vbr'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:64: undefined reference to `vorbis_encode_setup_managed'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:78: undefined reference to `vorbis_encode_ctl'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:82: undefined reference to `vorbis_encode_setup_init'
/usr/local/lib/libavcodec.a(libvorbis.o): In function `oggvorbis_encode_init':
/home/rylan/ffmpeg/libavcodec/libvorbis.c:96: undefined reference to `vorbis_analysis_init'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:97: undefined reference to `vorbis_block_init'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:99: undefined reference to `vorbis_comment_init'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:100: undefined reference to `vorbis_comment_add_tag'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:102: undefined reference to `vorbis_analysis_headerout'
/home/rylan/ffmpeg/libavcodec/libvorbis.c:124: undefined reference to `vorbis_comment_clear'
collect2: ld returned 1 exit status
make[4]: *** [xineplug_decode_ff.la] Error 1
make[4]: Leaving directory `/home/rylan/xine-lib-1.1.16.3/src/combined/ffmpeg'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/rylan/xine-lib-1.1.16.3/src/combined/ffmpeg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/rylan/xine-lib-1.1.16.3/src/combined'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rylan/xine-lib-1.1.16.3/src'
make: *** [all-recursive] Error 1
[rylan@stefanlinux xine-lib-1.1.16.3]$
I have managed to successfully compile Mplayer on the same machine, it works fine.
I've never seen the
Code:
/usr/bin/ld: Dwarf Error: Offset (5588) greater than or equal to .debug_str size (588).
error - this means ld fails, right?
Any idea why or how to fix it?
Alternatively, since it seems it is my external ffmpeg install causing the problem, how can I force xinelib to use its internal ffmpeg?
ANY help appreciated!
Thanks,
EDIT: This has been fixed. The fix was to rename the FFMPEG pkgconfig files (avcodec.pc and avutil.pc and all the other av*.pc files) in /usr/lib/pkgconfig so that xine-lib 's configure couldn't find them. This would make xine-lib's configure use its own internal FFMPEG - this made the above linker error go away. Yay!
Last edited by rylan76; 06-21-2009 at 12:39 PM.
Reason: RESOLVED
Ok it resolved, but it was the Wrong way i belive, i have come to the same problems because i want to compile xine lib with the ffmpeg and not the internal one tha unfortunately is not corresponding to my needs (dont play al the moves i have because of missing decoders, or something like that)
i compiled it again if the internal ffmpeg, just adding this
./configure --with-external-ffmpeg=no
just do this and your done, because u may need other things that uses de information on the pkg-config and wont find, and so u dont have to rename than again
[Sorry for the bad English, im Brazilian ]
The devel versions of library packages also install the headers, which define undefined symbols.
Another possibility is using the correct library versions. Some symbols & functions may have changed. If the source uses a different version of a library, it may use functions, that don't exist in your libraries.
If you want to compile libxine on Fedora, consider using the source rpm from your Fedora or RPMFusion repository. That will
reduce number of problems in mismatched libraries or other differences that can trip you up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.