SDL / QEMU link failure

I am trying to compile QEMU from source. I can not seem to find any
notes about people who have had this problem, so I’m emailing this list
in the hopse someone may have a suggestion.

I have tried this with the SDL-devel-1.2.7-1 RPM installed and with SDL
from source (which is what the error below involves). Neither appears to
work.

Thoughts?

(I am not subscribed to this list, so please CC: me in any response)

The error:---------------------------------
gcc -static -Wl,-T,/home/hedwig/stc/qemu/i386-vl.ld -o qemu-fast vl.o
osdep.o block.o monitor.o pci.o ide.o ne2000.o pckbd.o vga.o sb16.o
dma.o oss.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o gdbstub.o
sdl.o libqemu.a -lm -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL
-lpthread -lm -ldl -lasound -L/usr/X11R6/lib -lX11 -lXext -lutil
/usr/local/lib/libSDL.a(SDL_loadso.o)(.text+0x6e): In function
SDL_LoadObject': /home/hedwig/stc/SDL-1.2.7/src/SDL_loadso.c:60: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/X11R6/lib/libX11.a(x11trans.o)(.text+0x43b): In function_X11TransSocketOpen’:
: warning: Using ‘getaddrinfo’ in statically linked applications
requires at runtime the shared libraries from the glibc version used for
linking
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/…/…/…/libasound.a(pcm_shm.o)(.text+0x1919):
In function _snd_pcm_shm_open': : warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/X11R6/lib/libX11.a(x11trans.o)(.text+0xc8a): In function_X11TransSocketINETConnect’:
: warning: Using ‘getservbyname’ in statically linked applications
requires at runtime the shared libraries from the glibc version used for
linking
/usr/local/lib/libSDL.a(SDL_alsa_audio.o)(.text+0x511): In function
ALSA_OpenAudio': /home/hedwig/stc/SDL-1.2.7/src/audio/alsa/SDL_alsa_audio.c:284: undefined reference tosnd_pcm_hw_params_set_rate_near at ALSA_0.9’
/usr/local/lib/libSDL.a(SDL_alsa_audio.o)(.text+0x542):/home/hedwig/stc/SDL-1.2.7/src/audio/alsa/SDL_alsa_audio.c:294:
undefined reference to snd_pcm_hw_params_set_period_size_near at ALSA_0.9' /usr/local/lib/libSDL.a(SDL_alsa_audio.o)(.text+0x562):/home/hedwig/stc/SDL-1.2.7/src/audio/alsa/SDL_alsa_audio.c:296: undefined reference tosnd_pcm_hw_params_set_periods_near at ALSA_0.9’
/usr/local/lib/libSDL.a(SDL_alsa_audio.o)(.text+0x6b8):/home/hedwig/stc/SDL-1.2.7/src/audio/alsa/SDL_alsa_audio.c:274:
undefined reference to snd_pcm_hw_params_get_channels at ALSA_0.9' collect2: ld returned 1 exit status make[1]: *** [qemu-fast] Error 1 make[1]: Leaving directory/home/hedwig/stc/qemu/i386’
make: *** [all] Error 1

SDL Info:

[stc at hedwig stc]$ uname -a
Linux hedwig 2.6.4-54.5-smp #1 SMP Fri May 7 21:30:47 UTC 2004 i686 i686
i386 GNU/Linux

[stc at hedwig stc]$ which sdl-config
/usr/local/bin/sdl-config

[stc at hedwig stc]$ sdl-config --version
1.2.7

[stc at hedwig stc]$ locate libSDL
/usr/lib/libSDL-1.2.so.0
/usr/lib/libSDL-1.2.so.0.7.0
/usr/lib/libSDL_image-1.2.so.0
/usr/lib/libSDL_image-1.2.so.0.1.2
/usr/lib/libSDL_mixer-1.2.so.0
/usr/lib/libSDL_mixer-1.2.so.0.2.3
/usr/lib/libSDL_mixer.a
/usr/lib/libSDL_mixer.la
/usr/lib/libSDL_mixer.so
/usr/lib/libSDL_net-1.2.so.0
/usr/lib/libSDL_net-1.2.so.0.0.5
/usr/lib/libSDL_net.a
/usr/lib/libSDL_net.la
/usr/lib/libSDL_net.so
/usr/lib/libSDL_ttf-2.0.so.0
/usr/lib/libSDL_ttf-2.0.so.0.6.0
/usr/lib/libSDL_ttf.a
/usr/lib/libSDL_ttf.la
/usr/lib/libSDL_ttf.so
/usr/local/lib/libSDL-1.2.so.0
/usr/local/lib/libSDL-1.2.so.0.7.0
/usr/local/lib/libSDL.a
/usr/local/lib/libSDL.la
/usr/local/lib/libSDL.so
/usr/local/lib/libSDLmain.a

gcc -static -Wl,-T,/home/hedwig/stc/qemu/i386-vl.ld -o qemu-fast vl.o
osdep.o block.o monitor.o pci.o ide.o ne2000.o pckbd.o vga.o sb16.o
dma.o oss.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o gdbstub.o
sdl.o libqemu.a -lm -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL
-lpthread -lm -ldl -lasound -L/usr/X11R6/lib -lX11 -lXext -lutil
^^^^^^^^

/home/hedwig/stc/SDL-1.2.7/src/audio/alsa/SDL_alsa_audio.c:284:
undefined reference to snd_pcm_hw_params_set_rate_near at ALSA_0.9' /usr/local/lib/libSDL.a(SDL_alsa_audio.o)(.text+0x542):/home/hedwig/stc/SDL-1.2.7/src/audio/alsa/SDL_alsa_audio.c:294: undefined reference tosnd_pcm_hw_params_set_period_size_near at ALSA_0.9’
/usr/local/lib/libSDL.a(SDL_alsa_audio.o)(.text+0x562):/home/hedwig/stc/SDL-1.2.7/src/audio/alsa/SDL_alsa_audio.c:296:
undefined reference to snd_pcm_hw_params_set_periods_near at ALSA_0.9' /usr/local/lib/libSDL.a(SDL_alsa_audio.o)(.text+0x6b8):/home/hedwig/stc/SDL-1.2.7/src/audio/alsa/SDL_alsa_audio.c:274: undefined reference tosnd_pcm_hw_params_get_channels at ALSA_0.9’
collect2: ld returned 1 exit status
make[1]: *** [qemu-fast] Error 1
make[1]: Leaving directory `/home/hedwig/stc/qemu/i386’
make: *** [all] Error 1

Looks like you do not have ALSA development libraries installed.On Wed, Jun 02, 2004 at 12:22:21PM -0700, Steve Carstensen wrote:


Ryan Underwood,
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040821/6870410c/attachment.pgp