Skip to contentSkip to conversation

configure: Fix build with ALSA audio driver

PATCH In review Stefan Weil 3 participants 3 messages Jul 15, 2012 – Jul 18, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: Fix build with ALSA audio driver

Since commit 417c9d72d48275d19c60861896efd4962d21aca2, all configure tests normally run with -Werror.

Some of these tests now fail because they raised a compiler warning.

Here a build breakage for ALSA (configure --audio-drv-list=alsa) is fixed.

---

One of the buildbot jobs should be configured with all sound options:

--audio-card-list=ac97,es1370,sb16,cs4231a,adlib,gus,hda --audio-drv-list=alsa,sdl,oss,esd,pa --enable-mixemu

That would have detected this bug (and more potential bugs in the future).

Regards

Stefan W.

 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 0a3896e..f745cc2 100755
@@ -1888,7 +1888,7 @@ for drv in $audio_drv_list; do
     case $drv in
     alsa)
     audio_drv_probe $drv alsa/asoundlib.h -lasound \
-        "snd_pcm_t **handle; return snd_pcm_close(*handle);"
+        "return snd_pcm_close((snd_pcm_t *)0);"
     libs_softmmu="-lasound $libs_softmmu"
     ;;
 
Signature · 1 line
1.7.10
#1 lore raw
Quoted 7 lines · Stefan Weil

One of the buildbot jobs should be configured with all sound options:

--audio-card-list=ac97,es1370,sb16,cs4231a,adlib,gus,hda --audio-drv-list=alsa,sdl,oss,esd,pa --enable-mixemu

That would have detected this bug (and more potential bugs in the future).

Daniel, please could you add these ./configure options to the qemu.git buildbot?

I have tested on the yuzuki buildbot with Stefan Weil's patch applied. Yuzuki has the library headers installed so we can build it all and get better coverage.

Thanks,
Stefan

#2 lore raw

Hi,

Quoted 11 lines · Stefan Hajnoczi
Quoted 8 lines · Stefan Weil

One of the buildbot jobs should be configured with all sound options:

--audio-card-list=ac97,es1370,sb16,cs4231a,adlib,gus,hda --audio-drv-list=alsa,sdl,oss,esd,pa --enable-mixemu

That would have detected this bug (and more potential bugs in the future).

Daniel, please could you add these ./configure options to the qemu.git buildbot?

I'll apply that tomorrow or the day after tomorrow once the build regression from last night got fixed. Otherwise we would not get notified if other build factories break due to this change ...

Quoted 4 lines

I have tested on the yuzuki buildbot with Stefan Weil's patch applied. Yuzuki has the library headers installed so we can build it all and get better coverage.

Best Regards,
Daniel

Signature · 8 lines
Daniel Gollub
Linux Consultant & Developer
Tel.: +49-160 47 73 970 
Mail: [email protected]

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537