Trouble compiling on SuSE 9.2
Hi there.
I'm trying to compile the latest Qemu version on SUSE LINUX 9.2, but it barfs out with the following message at the end:
ar rcs libqemu.a exec.o translate-all.o cpu-exec.o translate.o op.o helper.o helper2.o translate-copy.o disas.o i386-dis.o
gcc -static -Wl,-T,/tmp/qemu/i386-vl.ld -o qemu-fast vl.o osdep.o block.o readline.o monitor.o pci.o console.o block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o block-dmg.o ide.o ne2000.o pckbd.o vga.o sb16.o dma.o audio.o noaudio.o wavaudio.o sdlaudio.o ossaudio.o fmodaudio.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o cirrus_vga.o mixeng.o apic.o parallel.o gdbstub.o sdl.o slirp/cksum.o slirp/if.o slirp/ip_icmp.o slirp/ip_input.o slirp/ip_output.o slirp/slirp.o slirp/mbuf.o slirp/misc.o slirp/sbuf.o slirp/socket.o slirp/tcp_input.o slirp/tcp_output.o slirp/tcp_subr.o slirp/tcp_timer.o slirp/udp.o slirp/bootp.o slirp/debug.o slirp/tftp.o libqemu.a -lm -lz /usr/local/lib/libfmod-3.74.so -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm -ldl -lasound -L/usr/X11R6/lib -lX11 -lXext -laa -L/usr/lib -Wl,-rpath,/usr/lib -laa -lm -L/usr/X11R6/lib -lX11 -lgpm -lslang -lutil
/usr/lib/libSDL.a(SDL_x11gl.o)(.text+0x337): In function `X11_GL_LoadLibrary':
: 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 slirp/misc.o(.text+0xca2): In function `getouraddr':/tmp/qemu/slirp/misc.c:96: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc versionused for linking /usr/X11R6/lib/libX11.a(x11trans.o)(.text+0xc8f): In function `_X11TransSocketINETConnect':
: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/libSDL.a(SDL_alsa_audio.o)(.text+0x54e): In function `ALSA_OpenAudio':
: undefined reference to snd_pcm_hw_params_set_rate_near@ALSA_0.9' /usr/lib/libSDL.a(SDL_alsa_audio.o)(.text+0x58a): In function ALSA_OpenAudio':
: undefined reference to snd_pcm_hw_params_set_period_size_near@ALSA_0.9' /usr/lib/libSDL.a(SDL_alsa_audio.o)(.text+0x5b5): In function ALSA_OpenAudio':
: undefined reference to snd_pcm_hw_params_set_periods_near@ALSA_0.9' /usr/lib/libSDL.a(SDL_alsa_audio.o)(.text+0x717): In function ALSA_OpenAudio':
: undefined reference to `snd_pcm_hw_params_get_channels@ALSA_0.9'
collect2: ld returned 1 exit status
make[1]: *** [qemu-fast] Fejl 1
make[1]: Leaving directory `/tmp/qemu/i386'
make: *** [all] Fejl 1
I have all the SDL devel and ALSA devel packages installed. libsdl.a has these unresolved symbols. libasound.a has symbols that almost match, save the @ALSA_0.9 part. Would recompiling SDL from source get rid of this non-existing dependency?
/Martin.
Hi!
Quoted 6 lines · Martin Moeller
I'm trying to compile the latest Qemu version on SUSE LINUX 9.2, but it barfs out with the following message at the end:
ar rcs libqemu.a exec.o translate-all.o cpu-exec.o translate.o op.o helper.o helper2.o translate-copy.o disas.o i386-dis.o gcc -static -Wl,-T,/tmp/qemu/i386-vl.ld -o qemu-fast vl.o osdep.o
[...]
Quoted 4 lines
I have all the SDL devel and ALSA devel packages installed. libsdl.a has these unresolved symbols. libasound.a has symbols that almost match, save the @ALSA_0.9 part. Would recompiling SDL from source get rid of this non-existing dependency?
Yes, if you use SDL 1.2.8. SDL 1.2.7 as shipped with 9.2 was buggy in the sense that it used the old ALSA PCM API which cannot be linked statically because it uses versioned symbols. This is fixed in SDL 1.2.8.
CU
Uli
Torsdag 27 januar 2005 13:56 skrev Ulrich Hecht:
Quoted 2 lines
Hi!
[SDL 1.2.7 Compile trouble]
Quoted 7 lines
[...]
Quoted 4 lines
I have all the SDL devel and ALSA devel packages installed. libsdl.a has these unresolved symbols. libasound.a has symbols that almost match, save the @ALSA_0.9 part. Would recompiling SDL from source get rid of this non-existing dependency?
Quoted 5 lines
Yes, if you use SDL 1.2.8. SDL 1.2.7 as shipped with 9.2 was buggy in the sense that it used the old ALSA PCM API which cannot be linked statically because it uses versioned symbols. This is fixed in SDL 1.2.8.
I have rebuilt with the src.rpm from libsdl.org in version 1.2.8 and all is now well. Thanks!
I tried to not make 1.2.7 use the old API, but apparently not well enough. No matter. 1.2.8 works well...
/Martin.
Quoted 8 lines
CU
Uli_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel