Bug#563885: libsdl1.2debian-alsa: "undefined reference" to deprecated	ALSA calls
    John Lindgren 
    john.lindgren at tds.net
       
    Wed Jan  6 03:38:34 UTC 2010
    
    
  
Package: libsdl1.2debian-alsa
Version: 1.2.13-5
Severity: important
If a try to compile a simple application that uses SDL's sound feature,
such as the following:
        #include <SDL.h>
        
        int main (void)
        {
            SDL_OpenAudio (NULL, NULL);
            return 0;
        }
        
I get the following errors:
        $ gcc -Wall -O2 `sdl-config --cflags --libs` sdl-audio.c 
        /usr/lib/libSDL.so: undefined reference to `snd_pcm_hw_params_set_period_size_near at ALSA_0.9'
        /usr/lib/libSDL.so: undefined reference to `snd_pcm_hw_params_set_periods_near at ALSA_0.9'
        /usr/lib/libSDL.so: undefined reference to `snd_pcm_hw_params_set_rate_near at ALSA_0.9'
        /usr/lib/libSDL.so: undefined reference to `snd_pcm_hw_params_get_channels at ALSA_0.9'
        collect2: ld returned 1 exit status
        
If I uninstall libsdl1.2debian-alsa and install libsdl1.2debian-oss, the
program builds without any errors.
Searching the internet, I found the following email thread which
suggests that the ALSA backend for SDL needs to be updated to keep up
with changes in the ALSA API:
        http://lists.libsdl.org/pipermail/sdl-libsdl.org/2008-July/065733.html
        http://lists.libsdl.org/pipermail/sdl-libsdl.org/2008-July/065736.html
        
John Lindgren
-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libsdl1.2debian-alsa depends on:
ii  libasound2                    1.0.21a-1  shared library for ALSA applicatio
ii  libc6                         2.10.2-2   GNU C Library: Shared libraries
ii  libdirectfb-1.2-0             1.2.8-5    direct frame buffer graphics - sha
ii  libsvga1                      1:1.4.3-29 console SVGA display libraries
libsdl1.2debian-alsa recommends no packages.
libsdl1.2debian-alsa suggests no packages.
-- no debconf information
    
    
More information about the Pkg-sdl-maintainers
mailing list