[vlc-devel] Undefined Symbols
    Francois Cartegnie 
    fcvlcdev at free.fr
       
    Thu Apr 15 22:19:32 CEST 2010
    
    
  
Sun cc & ld is: Solaris Link Editors: 5.10-1.497
1 - I get 2 unresolved symbols when compiling the /bin directory:
Undefined                       first referenced
 symbol                             in file
stats_Update                        ../src/.libs/libvlc.so
stats_Get                           ../src/.libs/libvlc.so
ldd ../src/.libs/libvlc.so
correctly points
        libvlccore.so.4 =>       
/export/home/vlcuser/vlc/src/.libs/libvlccore.so.4
and
nm ../src/.libs/libvlccore.so.4
correctly shows 
[498]   |   1247908|     380|FUNC |LOCL |2    |11     |stats_Get
[222]   |   1247824|      76|FUNC |LOCL |2    |11     |stats_Update
(2) being STV_HIDDEN.
This happens when compiling:
- debug disabled + no-optimizations
- debug enabled
Does not happen when:
- debug disabled + optimizations
So I guess some symbols are expected when they normally shouldn't (because 
names are not exported and those entries are fp/callback purpose only).
Linker bug ?
I could only solve this by editing vlc-config's bin/vlc entries and add a "-z 
nodeps" to ignore the missing symbols.
2 - This also raised the fact that .libs/vlc-cache-gen is not built using vlc-
config's ld flags (only cflags). Something omitted ?
Francois
    
    
More information about the vlc-devel
mailing list