LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-21-2009, 11:57 AM   #1
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Xinelib compile failure Fedora 11 - /usr/bin/ld: Dwarf Error


Hi guys

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
 
Old 07-18-2009, 12:25 PM   #2
tiago_brasil
LQ Newbie
 
Registered: Jul 2009
Location: Uberlandia
Distribution: Slackware, Debian, CentOs
Posts: 2

Rep: Reputation: 0
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 ]
 
Old 07-18-2009, 12:27 PM   #3
tiago_brasil
LQ Newbie
 
Registered: Jul 2009
Location: Uberlandia
Distribution: Slackware, Debian, CentOs
Posts: 2

Rep: Reputation: 0
Cool

sorry, when i said
i compiled it again if the internal ffmpeg, just adding this
./configure --with-external-ffmpeg=no
i actually wanted to say

i compiled it again WITH the interal ffmpeg, just adding ...etc
 
Old 07-18-2009, 12:49 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
  


Reply

Tags
compile, error, failure, fedora, ffmpeg, ld, link, linker, xine



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dwarf error:cannot handle dwarf error rjeyakodi Linux - Software 0 06-11-2009 11:27 PM
RPM dependency failure: /usr/bin/env instead of /bin/env anoosh3000 Linux - Software 1 04-10-2009 05:34 AM
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 12:08 AM
fedora 7 error: /usr/bin/ld: cannot find -lXext immortaltechnique Linux - Software 1 02-22-2008 04:02 AM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration